• 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: About NSAppleScriptErrorNumber = -2709
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About NSAppleScriptErrorNumber = -2709


  • Subject: Re: About NSAppleScriptErrorNumber = -2709
  • From: xiaobin <email@hidden>
  • Date: Tue, 9 Dec 2008 15:55:58 +0900

Thanks, Rob

I also read the technical Q&A and knew it works well.

But I only want to know why it doesn't work by using the apple script.
My old applications writing in pure object-c works well in the apple script.
I'm afraid that if something is damaged or others in my os, the error
may be have influence on my other Apps.
So anyone can give me a hit about the error.

Thanks

2008/12/9 Rob Keniger <email@hidden>:
>
> On 09/12/2008, at 11:54 AM, xiaobin wrote:
>
>> I am writing application A and application B using Object-C++ and
>> Object-C.
>> A include restart OS code by using apple script to tell finder to restart
>> os.
>
>
> You shouldn't do it this way. Have a look at this tech note which explains
> how it should be done:
>
> http://developer.apple.com/qa/qa2001/qa1134.html
>
> Please note the part that says "developers should only initiate a restart,
> shutdown, sleep or logout event when absolutely necessary. Also, these
> actions should only be undertaken after getting user consent."
> --
> Rob Keniger
>
>
>
> _______________________________________________
>
> 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

  • Follow-Ups:
    • Re: About NSAppleScriptErrorNumber = -2709
      • From: Rob Keniger <email@hidden>
References: 
 >About NSAppleScriptErrorNumber = -2709 (From: xiaobin <email@hidden>)
 >Re: About NSAppleScriptErrorNumber = -2709 (From: Rob Keniger <email@hidden>)

  • Prev by Date: The thread that starts by NSTask didn't clear up
  • Next by Date: Re: About NSAppleScriptErrorNumber = -2709
  • Previous by thread: Re: About NSAppleScriptErrorNumber = -2709
  • Next by thread: Re: About NSAppleScriptErrorNumber = -2709
  • Index(es):
    • Date
    • Thread