Mac Abosolute root path for menu object?
When I try to use "/" as the absolute path max auto completes and adds in my paticular hd name as well.
I want to point a menu to the absolute folder location not relative. On windows this is easy it c:\ this cannot be altered and is absolute. On Mac in theroy I should be able to use "/" which I can but it autofills in my HD name in the absolute location. If another user has a different HD name then this won't work.
Is there a way to set the absolute path regardless of root drive hd name? Thanks
Maybe the 'path' message to [thispatcher] helps?
See attached patch. You have to save, close and re-open it to get the current path.
Under normal circumstances I could use the above method or use prefix "/resources/folder" in the umenu inspector area to find folder location. The issue I have is that I cannot use any relative or absolute paths to the resources folder. The folder/s exist/s seperate from resources folder.
I did find a way of using message box (prefix "/Applications/My App/folder") loadbanged into a prefix blank umenu. Since the Inspector area of the umenu in the prefix or folder section auto fills "/Applications/My App/folder" to "Macintosh HD/Applications/My App/folder" Macintosh HD being the name of the root drive.
By using the message box we can let auto fill load "/MyHD/" into the umenu a unique root drive named MyHD without having to specify MyHD. It's not the best way because the app has to be run from an absolute install folder but at least the root drive name won't make a difference or need to be changed.
This also works on PC (prefix "/Programs/My App/folder") 64bit or (prefix "/Programs (x86)/My App/folder") 32bit.
This seems strange to me because windows file structure uses \backslash not /forwardslash. I suppose Max interprets them the same?
Thank you for the help Peter it led me to a solution for what I need.
Regards Dave
I did find a way of using message box (prefix "/Applications/My App/folder") loadbanged into a prefix blank umenu. Since the Inspector area of the umenu in the prefix or folder section auto fills "/Applications/My App/folder" to "Macintosh HD/Applications/My App/folder" Macintosh HD being the name of the root drive.
actually on macintosh the path should start with the username, isnt it?
see that the autocomplete crap goes away somehow, i bet there is a way.
in max 4 i often use umenu to store paths to files which are shwon to the user in another umenu full of only the filenames (without extension and path)
all relative paths there are loaded and found as exspected, and preserverd forever.
not sure how you get that to work under 10.11.x, but it should be at least one of many options.
I made just one application used by other people and after I could not get the relative paths to work I've put all stuff into the .app itself. For development I recreated the /Content/Resources/... path plus custom folders. At startup the patcher checked if it's status was standalone or not and set the file paths accordingly (message boxes and [combine]). I remember that I had to set a few things before compilation but generally it worked and the user didn't need files in a certain location.