• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: making applescript wait until shell script finishes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: making applescript wait until shell script finishes (From: Bernardo Hoehl <email@hidden>)

  • Prev by Date: Re: SSH security question... Please comment my thoughts...
  • Next by Date: Re: Specific Date-Time Formatting
  • Previous by thread: Re: making applescript wait until shell script finishes
  • Next by thread: Re: making applescript wait until shell script finishes
  • Index(es):
    • Date
    • Thread