Previous Index Next

BridgePlus.framework, SMSForder Class Methods

Category

Specialist conversion methods

Method

HFSPathFromURL:

Summary

Pass an NSURL, and the HFS path is returned. Directories will have a trailing colon; packages will not

Signature

+ (NSString *)HFSPathFromURL:(NSURL *)theUrl

Parameters

theUrl = an NSURL

Result

A string

Availability

Version 1.0.0

Notes

If possible, use BridgePlus script library’s ASify from command instead.

Sample

use scripting additions

use framework "Foundation"

use script "BridgePlus"

load framework


set aURL to Cocoaify (path to desktop)

--> (NSURL) file:///Users/shane/Desktop/

set theResult to current application's SMSForder's HFSPathFromURL:aURL

theResult as text

--> file "Macintosh HD:Users:shane:Desktop:"


Click here to open script in a script editor