Previous Index Next

BridgePlus.framework, SMSForder Class Methods

Category

Specialist conversion methods

Method

fileFromURL:

Summary

Pass an NSURL, and a file («class furl») will be returned. You will need to coerce the result with "as «class furl»"

Signature

+ (NSAppleEventDescriptor *)fileFromURL:(NSURL *)theUrl

Parameters

theUrl = an NSURL

Result

A file (still needs coercing from NSAppleEventDescriptor)

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 fileFromURL:aURL

theResult as «class furl»

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


Click here to open script in a script editor