<<event FNDRsope>> (WAS Re: Path to app ...)
<<event FNDRsope>> (WAS Re: Path to app ...)
- Subject: <<event FNDRsope>> (WAS Re: Path to app ...)
- From: "Bob.Kalbaugh" <email@hidden>
- Date: 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.
tell application "Finder" to <<event FNDRsope>> "" as alias given <<class
fsel>>:{"Automated Tasks" as alias}
OMM that folder happens to be in the same folder as the Script Editor
Application. And...
tell application "Finder" to <<event FNDRsope>> "" as alias
opened the Script Editor's Parent Folder (in my case the "AppleScript"
folder)
Save some form of these as part of an applet and it could be a neat way to
open items that you know for certain, share the same folder as the applet.
Heck you could even open other applications, applets or files.
So even though I cannot explain it, I hope this has helped.
--
bob.kalbaugh
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)
Thanks!
--