Re: <<event FNDRsope>> (WAS Re: Path to app ...)
Re: <<event FNDRsope>> (WAS Re: Path to app ...)
- Subject: Re: <<event FNDRsope>> (WAS Re: Path to app ...)
- From: Nigel Garvey <email@hidden>
- Date: Tue, 4 Dec 2001 12:01:38 +0000
"Bob.Kalbaugh" wrote on Mon, 03 Dec 2001 21:52:11 -0500:
>
on 12/3/01 7:20 PM, Gnarlodious at email@hidden wrote:
>
>
> I do not have the answer, but here is a short script in my Tex-Edit
>
> "Scripts" folder, that opens its own folder. I would like to know how to
>
use
>
> it with other folders..
>
>
>
> tell application "Finder" to +event FNDRsope; "" as alias given +class
>
> fsel;:{"Scripts" as alias}
>
>
>
> Rachel http://www.gnarlodious.com
>
>
--
>
>
Cool! Looks like it'll work with any item that is in the same folder as the
>
application running the script. I successfully ran these in Script Editor.
[snip]
>
P.S. Does any one know how to make it dig deeper? Currently I'm using
>
something to the effect of:
>
>
tell application "Finder" to open alias (((":" as alias) as string) &
>
"FolderA:FileB" as alias)
On my 9.0.4 system (where application-relative addressing still works -
see Chris Nebel's post of 21:01:43 -0800 yesterday), <<event FNDRsope>>
and the Finder's 'open' work in exactly the same way - though I suppose
there must be a difference as the former doesn't compile to the latter.
Rachel's line and the following are thus equivalent:
tell application "Finder" to open "" as alias given <<class
fsel>>:{"Scripts" as alias}
"" is just an alternative to ":" in the relative addressing system, so on
msachines where it still produces the required effect, the simplest way
to dig deeper is to use relative addressing:
tell application "Finder" to open ":FolderA:FileB" as alias
(Note the colon at the beginning of the path string.)
NG