Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About NSAppleScriptErrorNumber = -2709




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >About NSAppleScriptErrorNumber = -2709 (From: xiaobin <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.