On 24 maj 2008, at 18.33, Mr. Gecko wrote:

How would I do that?

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



I have been looking for a while and I found aevtquit but I can't find out how to send.
On May 24, 2008, at 11:13 AM, Tommy Nordgren wrote:


On 24 maj 2008, at 17.49, Mr. Gecko wrote:

How would I quit iTunes. There is a way to launch it with NSWorkspace but how about quit?
_______________________________________________
        Send a quit AppleEvent
------------------------------------------------------
"Home is not where you are born, but where your heart finds peace" -
Tommy Nordgren, "The dying old crone"
[EMAIL PROTECTED]



_______________________________________________

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/tommy.nordgren%40comhem.se

This email sent to [EMAIL PROTECTED]

----------------------------------
Skinheads are so tired of immigration, that they are going to move to a country that don't accept immigrants!
Tommy Nordgren
[EMAIL PROTECTED]



_______________________________________________

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