This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0xa421Bf037B6CC94A7AFce13B63D403233Ed3d67B |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Swift version of https://developer.apple.com/library/mac/technotes/tn2084/_index.html | |
@IBAction func testButtonPushed(sender: AnyObject) { | |
let URL = NSBundle.mainBundle().URLForResource("SendFinderMessage", withExtension: "scpt")! | |
var errors: NSDictionary? | |
let script = NSAppleScript(contentsOfURL: URL, error: &errors)! | |