• 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: Dave Lyons <email@hidden>
  • Date: Fri, 4 Nov 2005 20:20:30 -0800

Two suggestions:

(1) Take out the "tell Finder" part...you aren't doing anything specific to Finder. -- In fact, maybe that's the entire problem. I don't know why (so I'm not saying this is a bug...there may be a good reason), but experiment shows you can't "do shell script ... with administrator privileges" inside of a "tell Finder":

tell application "Finder" to do shell script "ls" with administrator privileges

(2) If it still fails, then (just for debugging), take out the "try ... on error" stuff. Then, with the "do shell script" split up into separate steps, you can see exactly which one is failing.

Cheers,

--Dave

On Nov 4, 2005, at 7:06 PM, Jay Louvion wrote:

 On 5/11/05 1:44, "Luther Fuller" <email@hidden> wrote:

> Jay Louvion asked ...
>> 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≤...
>
> I'm curious. Did you get a -5000 error? And was the user creating the
> bundle the same as the user launching the bundle?


Nope. The error returned (I only cought the error message, not the number) was as described before “Finder got an error: a priviledge violation occurred”

Same user (me). But I don’t quite see what that would have to do with it (nothing in the script refers to me (path, etc.) , apart from the name and psswd, which where mine)…

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


  • Follow-Ups:
    • Re: making applescript wait until shell script finishes
      • From: Christopher Nebel <email@hidden>
    • Re: making applescript wait until shell script finishes
      • From: Jay Louvion <email@hidden>
References: 
 >Re: making applescript wait until shell script finishes (From: Jay Louvion <email@hidden>)

  • Prev by Date: Re: simple applescript problem
  • Next by Date: Any applescript to do this?
  • 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