Re: osascript - path to me
Re: osascript - path to me
- Subject: Re: osascript - path to me
- From: Christopher Nebel <email@hidden>
- Date: Fri, 17 May 2002 16:58:21 -0700
On Friday, May 17, 2002, at 10:34 AM, Joakim Jardenberg wrote:
One of the many things that missbehave when I try to run a perfectly
functional script thru osascript is (path to me)
It returns Application isn't running. (-600)
Ok, makes sense, kind of. But still - how do I get my script to learn
where it is?
Ah, the implicit PATH bug rears its ugly head again. The API 'path to
me' uses genuinely doesn't know where the executable is in this case
(though -600 is a rather weird error code) because all it knows is the
name "osascript".
If you run osascript using the full path (i.e., /usr/bin/osascript), it
should work.
--Chris Nebel
AppleScript Engineering
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.