• 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: A choose application question (and C'thulhu)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A choose application question (and C'thulhu)


  • Subject: Re: A choose application question (and C'thulhu)
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 30 Mar 2001 01:19:25 -0800

On 3/30/01 12:24 AM, "Serge Belleudy-d'Espinose" <email@hidden> wrote:

> I use choose application in an app, and I would like to know if it's possible
> to remember the app chosen between launches.
>
> I've tried the straightforward
>
> property xApp : choose application
>
> and several variations, but it doesn't work.

--------------
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
------------------


You can then refer to it throughout as 'application xAppFile' or you can set
xApp to it.

'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.

--
Paul Berkowitz


  • Follow-Ups:
    • Re: A choose application question
      • From: Chris Nebel <email@hidden>
    • Re: A choose application question (and C'thulhu)
      • From: "Serge Belleudy-d'Espinose" <email@hidden>
References: 
 >A choose application question (and C'thulhu) (From: "Serge Belleudy-d'Espinose" <email@hidden>)

  • Prev by Date: A choose application question (and C'thulhu)
  • Next by Date: Re: OS X command line?
  • Previous by thread: A choose application question (and C'thulhu)
  • Next by thread: Re: A choose application question (and C'thulhu)
  • Index(es):
    • Date
    • Thread