Reveal file or folder in Finder?

Klaus Major klaus at major-k.de
Mon Jan 19 13:48:23 EST 2004


Hi Frank,

> Hi,
>
> Does anyone have a script that will reveal a file or folder in the 
> Finder?

Use this mix of Transcript and Applescript ;-)

on el_revealo pfad # path
   replace "/" with ":" in pfad
   put "tell application " & quote & "Finder" & quote & cr &  "activate" 
\
            & cr & "reveal " & quote & pfad & quote & cr & "end tell" 
into tScript
   do tScript as AppleScript
end el_revealo


replace "reveal" with "open" in the script and the file will open like
on a doubleclick in the finder...

> Same goes for Windows.

Yeah, i also would like to know this :-)

> Thanks in advance,
> -- Frank Leahy

Regards

Klaus Major
klaus at major-k.de
www.major-k.de



More information about the use-livecode mailing list