Re: A choose application question (and C'thulhu)
Re: A choose application question (and C'thulhu)
- Subject: Re: A choose application question (and C'thulhu)
- From: "Serge Belleudy-d'Espinose" <email@hidden>
- Date: Fri, 30 Mar 2001 16:14:20 +0200
At 1:19 -0800 30/03/01, Paul Berkowitz wrote:
>
property xAppFile : ""
>
>
if xAppFile = "" then
>
set xApp to choose application
>
set xAppFile to (path to xApp) as string
>
end if
>
>
tell application xAppFile to launch
Ok, your answer was correct and helpful...
but I should have mentionned that I need to link to an app on a machine that only allows program linking, not file sharing. The 'path to' answer is then unusable (not to mention that it is boggus, lacking a ':' -> 'Mac OSSystem folder...')
>
'choose application' is supposed to allow the result to be 'as alias' or 'as
>
file' (AS 1.6) but it doesn't work: the result is always 'application
>
"Something"' as a running application. Saving that result as a property
>
errors if the application isn't running the next time you run your script.
Which would be useful anyway since the purpose is to allow the selection of an app on the fly. But I wasn't able to make it work like that.
I know of at least two applications written in AS that can remember chosen network apps between launches, so it _must_ be possible...
Serge
--
\\//\//\// Serge Belleudy-d'Espinose Institut Jacques Monod
// // //
http://www.ijm.jussieu.fr/ Univ. Jussieu - Paris
//\//\//\\