Re: Error message: NOT super-user
Re: Error message: NOT super-user
- Subject: Re: Error message: NOT super-user
- From: "I. Savant" <email@hidden>
- Date: Sat, 8 Sep 2007 18:25:30 -0400
How about: @"string with \"quotes\" in it"
--
I.S.
On Sep 8, 2007, at 6:15 PM, Ricardo Diaz wrote:
Nevermind, I used:
char quote = '"';
NSString *script = [NSString stringWithFormat:@"tell application
%cSystem Events%c to shut down", quote, quote];
shutdown = [[NSAppleScript alloc] initWithSource:script];
id status = [shutdown executeAndReturnError:nil];
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows
Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us_______________________________________________
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
_______________________________________________
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