• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Error message: NOT super-user
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error message: NOT super-user


  • Subject: Re: Error message: NOT super-user
  • From: Uli Kusterer <email@hidden>
  • Date: Sun, 9 Sep 2007 00:38:26 +0200

On 09.09.2007, at 00:08, Ricardo Diaz wrote:
Ok, how can I make a string which has double quotes in it?

Here's what I have:

NSString *script = @"tell application "System Events" to shut down";
shutdown = [[NSAppleScript alloc] initWithSource:script];
id status = [shutdown executeAndReturnError:nil];

but this doesn't take System Events as part of the string, how should I do it?

At the risk of sounding like I'm talking down at you: You'll save yourself a lot of pain if you get a good book about programming in C and learn the language completely. If you don't know how to escape quotes, chances are you're missing a lot of other important information that could make things a lot easier for you.


Cheers,
-- M. Uli Kusterer
http://www.zathras.de



_______________________________________________

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


References: 
 >Re: Error message: NOT super-user (From: Ricardo Diaz <email@hidden>)

  • Prev by Date: Re: Error message: NOT super-user
  • Next by Date: custom view won't update
  • Previous by thread: Re: Error message: NOT super-user
  • Next by thread: Re: Error message: NOT super-user
  • Index(es):
    • Date
    • Thread