Re: making applescript wait until shell script finishes
Re: making applescript wait until shell script finishes
- Subject: Re: making applescript wait until shell script finishes
- From: Jay Louvion <email@hidden>
- Date: Fri, 04 Nov 2005 18:14:12 +0100
Title: Re: making applescript wait until shell script finishes
On 4/11/05 17:50, "Bernardo Hoehl" <email@hidden> wrote:
I think you should read this:
http://developer.apple.com/technotes/tn2002/tn2065.html
That document is really a nice resource, thanks for posting it’s link.
I have an application bundle that I’ve been trying to get to work recently and have no idea why it returns a “Finder got an error: a priviledge violation occurred”...
tell application "Finder"
set SetFile to quoted form of POSIX path of ((path to me as text) & "Contents:Resources:SetFile") as string
set GetFileInfo to quoted form of POSIX path of ((path to me as text) & "Contents:Resources:GetFileInfo") as string
try
do shell script "cp " & GetFileInfo & " /sbin/GetFileInfo ; cp " & SetFile & " /sbin/SetFile ; chmod a+sx /sbin/GetFileInfo ; chmod a+sx /sbin/SetFile" user name "me" password "psswd" with administrator privileges
on error mistake
display dialog mistake
end try
end tell
The name and psswd are obviously edited when the app bundle is run. :-)
TIA,
J.
Jay Louvion
Studio Casagrande
3, rue Müller-Brun
1208 Geneva
T+4122 840 3272
F+4122 840 3271
skypeme:
jaylouvion
www.studiocasagrande.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden