NSAppleScript * script = [[[NSAppleScript alloc] initWithSource:@"tell application \"iTunes\" \n quit \nend tell"] autoRelease];
[script executeAndReturnError: nil];

That is slow because it has to compile. but if I can't get this apple event to work than I might do that

I would hope that the frequency with which you tell iTunes to quit is low enough that the overhead of compiling the script would be negligible :)
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to