• 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: Why isn't there a constant called finder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why isn't there a constant called finder?


  • Subject: Re: Why isn't there a constant called finder?
  • From: Sun Real <email@hidden>
  • Date: Mon, 25 Jun 2001 15:39:13 +1000

Deivy Petrescu's message of 25/6/01 2:48 AM contained:

>I think it was too late and I was not thinking....
>This works:
>
>property finder : application "Finder"
>
>using terms from application "Finder"
> tell finder
> open disk "MacOS 9" --disk becomes blue which means variable.
> end tell
>end using terms from
>
>Which makes it very clear that property: application "Finder" is a
>great short cut.
>Instead of writing
>Tell app "Finder"
>end tell
>we can short cut this to:
>
>property: application "Finder"
>using terms from application "Finder"
> tell finder
> end tell
>end using terms from
>
>I think we are into something here... copyright, patent ???

;-P I actually thought you were serious for a moment - good one!

Since OS9, the use of aliases to apps in the Scripting Additions folder
has been supported. I put aliases to all my frequently scripted apps in
there with abbreviated names. For Finder tells I type this:

tell app "F" to set sdName to name of startup disk


Not that this addresses Michelle's original query, but it does save
typing. It can also be used to target different versions of the same app
on one machine, but that is not always reliable OMM (9.0.4/1.4).

Cheers,

Richard Morton
-- Great Lies of the Music Business: "The club will provide PA and
lights"


  • Prev by Date: Re: Compile a string?
  • Next by Date: [ANN] Tanaka's osax 2.0.1
  • Previous by thread: Re: Why isn't there a constant called finder?
  • Next by thread: Acrobat Printing
  • Index(es):
    • Date
    • Thread