Re: Error message: NOT super-user
Re: Error message: NOT super-user
- Subject: Re: Error message: NOT super-user
- From: Ricardo Diaz <email@hidden>
- Date: Sat, 8 Sep 2007 21:44:03 +0000
- Importance: Normal
Ok, I tried this:
NSAppleScript *shutdown = [[NSAppleScript alloc] initWithContentsOfURL:[NSURL URLWithString:@"shutdown.scpt" error:nil];
[shutDown executeAndReturnError:nil];
Here's shutdown.scpt:
tell application "System Events" to shut down
but it doesn't work. Am I doing something wrong?
_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx
_______________________________________________
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