Re: How does osascript decide which app to use?
Re: How does osascript decide which app to use?
- Subject: Re: How does osascript decide which app to use?
- From: John Delacour <email@hidden>
- Date: Wed, 20 Nov 2002 17:59:24 +0000
- Mac-eudora-version: 5.3a9
At 9:32 am -0500 20/11/02, Sean McBride wrote:
>Do you mean osascript?
Yes. (Hence the subject :))
osascript simply runs AppleScript (or other)
scripts, so it will do whatever your script contains.
Exactly. But 'osascript' doesn't run the script by itself. it uses
Script Editor or Script Debugger. For example:
tell application Finder
activate
end tell
With Script Editor, save this as a compiled script, and run it with
'osascript'. On my machine, it opens Script Debugger (by Late Night
Software) and runs the script, but I would rather it use Script Debugger.
Dow do I influence this?
Well I have never seen this behaviour. If I save the script in my
home dir as "fndr" and then do
bash-2.05a$ cd
bash-2.05a$ osascript fndr
The script runs and activates the Finder without any involvement of
any other application.
And the same happens if I do this:
bash-2.05a$ osascript -e 'tell app "Finder" to activate'
or, if I save it as an application, then I can launch and run it --
not that I'd want to -- like this:
bash-2.05a$ cd
bash-2.05a$ chmod +x fndr
bash-2.05a$ ./fndr
I can't see anything in Script Debugger's prefs that would alter this
behaviour either, so I haven't a clue what's happening chez vous.
JD
_______________________________________________
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.