Re: Adding files to iTune library in Cocoa app
Re: Adding files to iTune library in Cocoa app
- Subject: Re: Adding files to iTune library in Cocoa app
- From: "Tom Harrington" <email@hidden>
- Date: Tue, 26 Jun 2007 10:49:29 -0600
On 6/26/07, has <email@hidden> wrote:
// Compile (or load) AppleScript
NSAppleScript *scpt = [[NSAppleScript alloc] initWithSource:
@"on run {arg1, arg2}\n return arg1 & arg2\n end"];
// Send event to AppleScript
NSDictionary *error;
NSAppleEventDescriptor *resDesc = [scpt executeAppleEvent:evtDesc
error:&error];
NSAppleScript's docs indicate that -executeAppleEvent:error: can't be
used to send Apple events to other applications. In the present
context-- sending events to iTunes-- it doesn't look as though the
above approach would work. Is your framework somehow overriding this
behavior?
--
Tom Harrington
email@hidden
AIM: atomicbird1
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden