Show folder of file

Mac OSX specific forum
WilliamL
Addict
Addict
Posts: 1252
Joined: Mon Aug 04, 2008 10:56 pm
Location: Seattle, USA

Show folder of file

Post by WilliamL »

Here's an odd one.

Can I have a folder opened on the desktop by the app? I'd like to be able to run my app from the 'Launchpad' and then be able to open the folder that contains all the files where that app is located. I've seen this in other apps that have 'show location of...'.
MacBook Pro-M1 (2021), Sequoia 15.4, PB 6.20
BarryG
Addict
Addict
Posts: 4173
Joined: Thu Apr 18, 2019 8:17 am

Re: Show folder of file

Post by BarryG »

WilliamL
Addict
Addict
Posts: 1252
Joined: Mon Aug 04, 2008 10:56 pm
Location: Seattle, USA

Re: Show folder of file

Post by WilliamL »

Code: Select all

RunProgram("open", "-R " + #DQUOTE$ + FileToShow$ + #DQUOTE$, "")
Works perfectly!

Thanks for the direction to the thread BarryG.
MacBook Pro-M1 (2021), Sequoia 15.4, PB 6.20
Post Reply