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: Ubence Quevedo <email@hidden>
- Date: Sat, 12 May 2007 16:50:04 -0700
Ok, so I did:
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.
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?
Thanx for the suggestion...
-Ubence
On May 12, 2007, at 02:50 PM, Philip Aker wrote:
On 2007-05-12, at 12:47:00, Ubence Quevedo wrote:
There was a great hint posted at Mac OS X Hints regarding an apple
script that would mount a disk image, launch an application, and
when the application was done, it would dismount the image [also
optionally change the screen resolution with cscreen].
Here is the link to the hint:
http://www.macosxhints.com/article.php?story=2007011608181916
I took the original hint and modified it so it would meet my
needs. I didn't have any problems what-so-ever with the script
until now.
Has do shell script broke for certain actions? It seems recently,
or least after one of the number of updates that Apple has
released in the last month or two,
There are increasing security constraints in the more recent updates.
I suggest you use the "administrator privileges" and "password"
parameters to 'do shell script' in order to eliminate that area as
being an obstacle.
Other than that, I don't know the solution offhand.
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