• 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: Name of this folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Name of this folder


  • Subject: Re: Name of this folder
  • From: Nigel Garvey <email@hidden>
  • Date: Mon, 12 Mar 2001 13:31:26 +0000

Paul Berkowitz wrote on Sun, 11 Mar 2001 17:47:46 -0800:

>On 3/11/01 5:09 PM, "Nigel Garvey" <email@hidden> wrote:
>>
>> Actually, with OSA Menu, while 'path to me' returns the path to the
>> compiled script, '":" as alias' (or '"" as alias') returns the path to
>> the folder of the application to which OSA Menu has passed the script -
>> normally the application that was frontmost when the script was selected
>> from the menu - which can also be very handy. (I must try writing shorter
>> sentences.)
>
>Very good. I hadn't tried that, but it resembles a lot of the behaviour of
>Leonard's OneClick which frequently wraps scripts in an uncalled "current
>application" (the front application).

I haven't tried it in OSA Menu's "Run scripts more compatibly" mode.
Presumably, the result would be the folder of the "faceless background
application". (The Extensions folder?)

>> tell (a reference to Richard23)
>> text of "Hey, Artoo. What's this application's folder?" as string
>> end tell
>> display dialog (the alias result as string)
>>
>
>:-) It seems to me you forgot a crucial element in your example:
>
>tell (a reference to Richard23)
> try
> get its contents
> on error
> text of "Hey, Artoo. If you ain't got any content, at least tell us
>this application's folder?" as string
> end try
>end tell
>display dialog (the alias result as string)

Well, no. The original actually works with Mac OSes 8.6 and 9.0.4! You
can 'tell' a reference something even though its contents don't exist.
Obviously, this has been fixed in 9.1. What a shame... ;-)

NG


  • Follow-Ups:
    • Re: Name of this folder
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Telnet
  • Next by Date: Quiting Appz but not finder
  • Previous by thread: Re: Name of this folder
  • Next by thread: Re: Name of this folder
  • Index(es):
    • Date
    • Thread