Re: Manipulating System Clock
Re: Manipulating System Clock
- Subject: Re: Manipulating System Clock
- From: Jim Thorton <email@hidden>
- Date: Thu, 12 May 2011 06:07:12 +0900
Thanks, Zack and Ronald.
Well, that't another thing I didn't mention in my initial topic. Prompting an admin privilege would also violate one of the Apple Review Guidelines, according to Mac App Store. The reviewer said more specifically that it violates Guideline 2.27. The following is what he or she's said.
Apps that require admin access are not eligible for the Mac App Store (please see GUideline 2.27)
Jim
On May 12, 2011, at 6:00 AM, Zack Jarrett wrote:
> In an AppleScript applet that I maintain I use the following construct:
> do shell script "whatever" with administrator privileges
>
> That can be run under a non-admin account but will present a dialog asking for an admin username and password. Under an admin user account it will display the usual "type your password to allow the app to make changes" dialog.
>
> Prompting for the username/password may not be the optimal solution. Perhaps you can build that section into a try/catch and upon failure you can run the application in some mode that does not require a change to the date/time.
>
> Good luck!
>
> Zack
>
>
> On May 11, 2011, at 1:28 PM, George wrote:
>
>> do shell script "/usr/sbin/systemsetup -setdate 'mm:dd:yy' -settime 'hh:mm:ss'"
>>
>> But there's a problem for me. You can use this trick only if the application is run under an administrative account. In other words, you cannot manipulate the system clock in this manner if the app is run under the guest account or a standard account. Are there simple alternatives such that the application can change the date and the time under a non-administrative account. It's a problem for me because Mac App Store, according to Apple, requires that the app can run under non-administrative accounts.
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden