Previous Index Next

BridgePlus.framework, SMSForder Class Methods

Category

Specialist conversion methods

Method

URLFrom:

Summary

Pass an alias, file, HFS path or POSIX path, and an NSURL will be returned

Signature

+ (NSURL *)URLFrom:(id)aliasFileOrPath

Parameters

aliasFileOrPath = alias, file, HFS path or POSIX path

Result

An NSURL

Availability

Version 1.0.0

Notes

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

Sample

use scripting additions

use framework "Foundation"

use script "BridgePlus"

load framework


set theResult to current application's SMSForder's URLFrom:(path to desktop)

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


Click here to open script in a script editor