Need help about some code in Mac

BlitzMax Forums/BlitzMax Programming/Need help about some code in Mac

Godra25(Posted 2014) [#1]
1. what code to get special folder in mac ?

2. how to open a directory from app in mac.
in windows i use OpenURL(), but it doesn't work in mac.

thanks before :)


xlsior(Posted 2014) [#2]
1. what code to get special folder in mac ?


Brucey's bah.volumes module can return a number of the special folders on Mac/Windows/Linux


Brucey(Posted 2014) [#3]
2. how to open a directory from app in mac.

This seems to be the way to do it in Obj-C : http://stackoverflow.com/questions/7652928/launch-osx-finder-window-with-specific-files-selected
I don't have a wrapper for that, but it shouldn't be too hard to make one.


d-bug(Posted 2014) [#4]
2. how to open a directory from app in mac.

OpenURL("file://yourDirectoryPath/yourDirectorySubPath/aso/bla/")

Use the "file://" statement to open file and directory urls. This will open Finder instead of Safari!


Godra25(Posted 2014) [#5]
thanks to all of you guys.. i'll try it :D