Previous | Index | Next |
AppleScript to Cocoa conversion methods
CocoaifyFrom:
Converts any contained AS dates to NSDates and any aliases, files or bookmarks to NSURLs.
Typical use: set theArray to current application's SMSForder's Cocoaify:listOfDates
Bridge does the conversion under 10.11 and later.
Used by script library’s Cocoaify command.
+ (id)CocoaifyFrom:(id)anASItem
anASItem = an AppleScript item
A Cocoa object
Version 1.0.0
If possible, use BridgePlus script library’s Cocoaify command instead.
use scripting additions
use framework "Foundation"
use script "BridgePlus"
load framework
set theResult to current application's SMSForder's CocoaifyFrom:"Some string"