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: "Sean McBride" <email@hidden>
- Date: Wed, 20 Nov 2002 09:32:18 -0500
John Delacour (email@hidden) wrote:
>
>I have a 'complied script', type 'osas', and creator 'ToyS' (Script
>
>Editor). If I do get Info with the Finder the file is set to 'open with'
>
>"Script Editor". Yet 'osascript' insists on opening the script with
>
>Script Debugger.
>
>
>
>How does osascript decide which app to use? And how can I change its mind?
>
>
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?
Thanks!
_______________________________________________
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.