Page 1 of 1

Open up a Finder/Explorer window

Posted: Mon Nov 27, 2017 2:01 pm
by Figgy78
Hi!

Does anyone have any idea on how I would go about opening a Finder/Explorer window at a specific path from within Hollywood?

I can't seem to find the correct function for this.

Thanks!

Re: Open up a Finder/Explorer window

Posted: Mon Nov 27, 2017 7:09 pm
by PEB

Re: Open up a Finder/Explorer window

Posted: Mon Nov 27, 2017 9:35 pm
by Allanon
I think he is referring to a command to open a system explorer/finder window...

@Figgy78
You should try OpenURL() command with the path that you want to explore

For example on Windows:

Code: Select all

OpenURL("C:\")

Re: Open up a Finder/Explorer window

Posted: Wed Nov 29, 2017 9:47 am
by Figgy78
You should try OpenURL() command with the path that you want to explore
Exactly what I was looking for. Works like a dream.

I actually found this command but didn't bother to test it as I assosiate URL's with the Internet. I was schooled.

Re: Open up a Finder/Explorer window

Posted: Wed Nov 29, 2017 12:17 pm
by Figgy78
Follow up question:

This works fine in Windows, but I compiled it for MacOS and tried it, and it doesn't seem to work with Finder?

Re: Open up a Finder/Explorer window

Posted: Thu Nov 30, 2017 9:05 am
by Krzysztof
Hi,

On Mac you have to add file:// prefix, following works for me:

Code: Select all

OpenURL("file:///Users/")
Is there a way to get the path to $HOME in Hollywood?

Re: Open up a Finder/Explorer window

Posted: Thu Nov 30, 2017 9:13 am
by Figgy78
Krzysztof wrote:...On Mac you have to add file:// prefix...
Ah.. That's right! Thanks!

Re: Open up a Finder/Explorer window

Posted: Thu Nov 30, 2017 10:12 pm
by airsoftsoftwair
Krzysztof wrote:Is there a way to get the path to $HOME in Hollywood?
Check out GetSystemInfo().

Re: Open up a Finder/Explorer window

Posted: Fri Dec 01, 2017 12:11 am
by Krzysztof
Thanks!

Re: Open up a Finder/Explorer window

Posted: Fri Dec 01, 2017 12:22 pm
by Figgy78
airsoftsoftwair wrote:
Krzysztof wrote:Is there a way to get the path to $HOME in Hollywood?
Check out GetSystemInfo().
Combined with GetVersion() this is a rocking combination :)

Cheers!