Revision: 5180
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 16, 2008 19:14 by sudarkoff
Initial Code
#define runScriptName @"checknewnow" #define runScriptType @"scpt" - (IBAction)runScript:(id)sender { /* Locate that darn thing*/ NSString *scriptPath = [[NSBundle mainBundle] pathForResource: runScriptName ofType: runScriptType]; NSURL *scriptURL = [NSURL fileURLWithPath: scriptPath]; NSAppleScript *as = [[NSAppleScript alloc] initWithContentsOfURL: scriptURL error: nil]; [as executeAndReturnError: NULL]; [as release]; }
Initial URL
http://www.borkware.com/quickies/single?id=307
Initial Description
Initial Title
Running a pre-canned AppleScript
Initial Tags
Initial Language
Objective C