Re: do shell script hanging for no reason after recent OS updates...?
Re: do shell script hanging for no reason after recent OS updates...?
- Subject: Re: do shell script hanging for no reason after recent OS updates...?
- From: Philip Aker <email@hidden>
- Date: Sat, 12 May 2007 18:19:55 -0700
On 2007-05-12, at 16:50:04, Ubence Quevedo wrote:
do shell script ("hdiutil attach /Users/Shared/Disk_Images/640x480/
discovery_airport.dmg -mount required -noverify 2>&1>/tmp/
volumepath_") & ProcessNumber user name "uquevedo" password
"########" with administrator privileges
I get an error message regarding a security violation.
I do use an hdiutil script on a regular basis but haven't encountered
any security violation errors with it. However it is for disk
creation before mounting and therefore I'm sure to have privileges.
I'm running it directly from Xcode and not via 'do shell script' though.
However I ran the script without the additional security
parameters, and kill -9'd the first hung process number, and I got
a dialog box from the applescript stating multiple times:
Are you sure you want to open the disk image? (Y/N)
Is there a way that I can answer Y in the script to see if this
will help?
I have Disk Utility preferences set to auto-open for both (those "are-
you-sure dialogs" drive me nuts).
You can have a "Disk Images" preference pane in System Preferences by:
/System/Library/PrivateFrameworks/DiskImages.framework/Versions/A/
Resources/DiskImages.prefPane
and then script it via "System Events" UI scripting if necessary.
Philip Aker
email@hidden
_______________________________________________
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