reveal file/folder in Finder

Ken Ray kray at sonsothunder.com
Wed Sep 10 12:12:00 EDT 2003


You almost stated it yourself:

tell application "Finder"
  reveal <pathToFileOrFolder>
end tell

Since AppleScript wants colon-delimited paths, you can call on a useful
set of handlers from Rev that's in the Common Library:

  put revMacFromUnixPath(<unixPath>) into myPath

Hope this helps,

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/ 

> -----Original Message-----
> From: use-revolution-admin at lists.runrev.com 
> [mailto:use-revolution-admin at lists.runrev.com] On Behalf Of 
> Stephen Quinn Barncard
> Sent: Wednesday, September 10, 2003 2:14 AM
> To: use-revolution at lists.runrev.com
> Subject: reveal file/folder in Finder
> 
> 
> Does anyone have the recipe for 'revealing' a folder in the Finder 
> (OSX) from a Rev script? This used to be a snap in Apple Events. I 
> can't find the syntax anywhere....
> 
> thanks
> 
> stephen barncard _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com 
> http://lists.runrev.com/mailman/listinfo/use-> revolution
> 





More information about the use-livecode mailing list