Re: administrator privileges
Re: administrator privileges
- Subject: Re: administrator privileges
- From: Shane Stanley <email@hidden>
- Date: Tue, 06 May 2014 09:30:07 +1000
On 6 May 2014, at 1:28 am, 2551 <email@hidden> wrote:
The question, then, is how to call a 'do shell script <command> with administrator privileges' and get the same behaviour that the AppleScript editor gets: i.e., the modal dialog is active and shows the calling applications name.
You call it from the application. Presumably the difference you're seeing in terms of active/inactive is because ASE is a windowed process and osascript is not.
You could call it using NSAppleScript, OSAScript, or similar. But if you're using Cocoa and NSTask, you probably shouldn't be using do shell script.
|
_______________________________________________
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