Aug 30, 2015 new locations or you already have some other scheme in use, set GAMCFGHOME to the desired path for gam.cfg. In gam.cfg, you specify the desired values for the other locations. If multiple users run GAM, you may want to: implement a user independent choice of direcories. How do I know if I have the correct Java version for BlueJ on MacOS X?BlueJ. Second, when BlueJ is first started it presents the user to opt-in to a more involved data collection. Then add the location where your classes are as a library path. On Windows - you may need to change the rules for them independently.
Editor's note: The list is now up to 19, thanks to a great reader tip.Inside your Home folder is a ( /Library), accessible only to you, that's used to store your personal application-support files and, in some cases, data. The files and folders in /Library are generally meant to be left alone, but if you’ve been using Mac OS X for a while, chances are you’ve delved inside.
Perhaps you wanted to tweak something using a tip from Macworld, or elsewhere on the Web. Or maybe a developer asked you to delete a preference file, or grab a log file, while troubleshooting a program. Whatever the case may have been, you simply opened your Home folder to access the Library folder.But if you’ve just, try accessing your personal Library folder that way now.
Go aheadI’ll wait.What’s that? It seems so, doesn’t it?
But rest assured, your personal Library folder is right where it’s always been, at the root level of your Home folder. But in Lion, Apple has made the folder invisible. The reason for this move is presumably that people unfamiliar with the inner workings of Mac OS X often open /Library and start rooting around, moving and deleting files, only to find later that programs don’t work right, application settings are gone, or—worse—data is missing. This is the same reason Apple has always hidden the folders containing OS X’s Unix underpinnings: /bin, /sbin, /usr, and the like.(Why hide /Library but not /Library, the similar folder located at the root level of your drive, which holds systemwide support files? Most likely because only admin users can modify /Library, and Apple assumes that a user with admin-level privileges will know what he or she is doing. Yes, I realize that’s a questionable assumption, given that the first user account on a Mac is always set up as an admin account.
But that's fodder for a different article.)While I understand Apple’s motives here—I’ve had to troubleshoot more than a few Macs on which an inexperienced user had munged the contents of /Library—there are plenty of valid reasons a user might need to access their personal Library folder. Luckily, as I mentioned, the folder is just hidden, using a special file attribute called the hidden flag. You just need to know how to access the folder or, if you prefer, unhide it.
Get path of Special folders on Mac
In Windows this is a easy way to get your Documents folder path if you not changed the default file path.
Application.DefaultFilePath
But on a Mac this will return nothing if you not set it.
Mac Excel does not have a default directory until you set one in Excel > preferences > General > Preferred File Location
But you can use MacScript like this if you want to get the path of your Documents folder or other special folders on your Mac. Change the NameFolder string to the special folder name that you want to get from the system.
You see in the code that I use a replace line for the documents and home folder in the part for Excel 2016 to get the correct path. For example you can use this line instead of the msgbox line to open a file in your documents folder if you want : Workbooks.Open SpecialFolder & 'FileName.xlsm'
There is also code on my site to test if it file exists before you try to open it, look here.
Important for Excel 2016, read this page :
We can do the same with the new AppleScriptTask function in Mac Excel 2016, see this page on my site if you want to know more about the AppleScriptTask function. You can mail me for a example.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |