% sdef /Applications/iTunes.app | sdp -fh --basename iTunesMakes iTunes.h
#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]; }(Thanks to of Chris "The_Tick" Forsythe)