Page 1 of 1

Show File in Finder

Posted: Tue Jul 17, 2012 3:40 pm
by jamirokwai
Hiya,

if you need or like to show a certain file in Finder, you can use this small snippet:

Code: Select all

Dest$ = "/Users/joe/Desktop/" ; will show my personal Desktop :-)
RunProgram("open", "-R " + Dest$, "")

Re: Show File in Finder

Posted: Tue Jul 17, 2012 5:25 pm
by WilliamL
nice (and easy), good tip :)

Re: Show File in Finder

Posted: Fri Mar 08, 2013 9:55 pm
by gekkonier
This wont work if the path contains spaces. Try better this one:

Code: Select all

RunProgram("open", "-R " + Chr(34) + dest.s + Chr(34), "")