Re: User Application Support folder on OS X?
On 20 Feb 2005, at 05:34, Trevor DeVore wrote: On Feb 19, 2005, at 3:36 PM, Dave Cragg wrote: Could you first get the user's home folder, and then append what is returned from specialFolderPath("asup")? It seems that this would work given the current location of the user application support folder but I still haven't come across any docs (I haven't looked that hard yet) that discuss whether this folder can be moved in network environments, if it changes based on the language, etc. I did find the following though in the Apple docs: "Your code should never assume the path to a resource within a file-system domain, as those paths could change in the future. Apple provides public interfaces for accessing standard file-system paths. You should always use these interfaces to locate system resources. See “Searching Within the File-System Domains” for more on searching for items within the domains." I just went ahead and wrapped up FSFindFolder (I'm pretty sure this is what specialFolderPath uses on Mac) in an external for the time being and filed a feature request for an optional additional parameter to specialFolderPath that would allow you to specify the domain to search under (user,network,local,system). Just as well. I checked on my wife's account which uses Japanese. Oddly, the "Library" folder at the System level is in Japanese, but at the user level it is in English. Dave ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: User Application Support folder on OS X?
On Feb 19, 2005, at 3:36 PM, Dave Cragg wrote: Could you first get the user's home folder, and then append what is returned from specialFolderPath("asup")? It seems that this would work given the current location of the user application support folder but I still haven't come across any docs (I haven't looked that hard yet) that discuss whether this folder can be moved in network environments, if it changes based on the language, etc. I did find the following though in the Apple docs: "Your code should never assume the path to a resource within a file-system domain, as those paths could change in the future. Apple provides public interfaces for accessing standard file-system paths. You should always use these interfaces to locate system resources. See “Searching Within the File-System Domains” for more on searching for items within the domains." I just went ahead and wrapped up FSFindFolder (I'm pretty sure this is what specialFolderPath uses on Mac) in an external for the time being and filed a feature request for an optional additional parameter to specialFolderPath that would allow you to specify the domain to search under (user,network,local,system). -- Trevor DeVore Blue Mango Multimedia [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: User Application Support folder on OS X?
On 18 Feb 2005, at 21:43, Trevor DeVore wrote: In my program I have some "current user" specific stack files that get updated while using the app. On Windows I stored these in the users application data folder. On Mac I want to store them in the users Application Support folder (~/Library/Application Support). The problem is that I can't get specialFolderPath to return this folder. If you use specialFolderPath("asup") then you get the system Application Support folder (/Library/Application Support). It seems that Revolution passes the system domain to FSFindFolder by default. For the time being I've resorted to storing the stacks in the user pref folder but it pains me to do so. So does anybody know if it is possible to get system folders using shell? If not then I will have to write a little external to do this. Could you first get the user's home folder, and then append what is returned from specialFolderPath("asup")? Cheers Dave ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: User Application Support folder on OS X?
On Feb 18, 2005, at 2:00 PM, Andre Garzia wrote: I don't understand the problem, ~/Library/Application Support/ will always point to the current user app support folder, why can't you use it? That folder will always be present, and will always be on the same place... okay, specialFolderPath will not return this folder, but you will probably have different routines for both mac and win32 when it comes to finding where to store data, so you can make win32 report whatever place you want and hard code ~/Library/application support/ on the mac, can't you? There probably is someway to return that folder using 'defaults' or 'scutil' shell commands but since you know the folder in the first place, why bother finding some way to return it? Is it the same for all languages running OS X? I once hard coded a small portion of a path on Windows. In Spanish one of the folders that I hardcoded was the name of the folder in Spanish. Needless to say my path did not work on Spanish systems. That made me sad. I vowed never to hardcode a folder that the operating system provides an API to retrieve. Now if OS X is different then windows in that the folder structure is always the same regardless of language then that might be different. But can a user move their application support folder? Is it possible that the user support folder could be on a server in a networked environment? I don't know the answers to these questions but I know it won't matter if I use the API call. -- Trevor DeVore Blue Mango Multimedia [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: User Application Support folder on OS X?
On Feb 18, 2005, at 7:43 PM, Trevor DeVore wrote: On Mac I want to store them in the users Application Support folder (~/Library/Application Support). Trevor, I don't understand the problem, ~/Library/Application Support/ will always point to the current user app support folder, why can't you use it? That folder will always be present, and will always be on the same place... okay, specialFolderPath will not return this folder, but you will probably have different routines for both mac and win32 when it comes to finding where to store data, so you can make win32 report whatever place you want and hard code ~/Library/application support/ on the mac, can't you? There probably is someway to return that folder using 'defaults' or 'scutil' shell commands but since you know the folder in the first place, why bother finding some way to return it? Cheers andre -- Andre Alves Garzia 2004 Soap Dog Studios - BRAZIL http://studio.soapdog.org ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
User Application Support folder on OS X?
In my program I have some "current user" specific stack files that get updated while using the app. On Windows I stored these in the users application data folder. On Mac I want to store them in the users Application Support folder (~/Library/Application Support). The problem is that I can't get specialFolderPath to return this folder. If you use specialFolderPath("asup") then you get the system Application Support folder (/Library/Application Support). It seems that Revolution passes the system domain to FSFindFolder by default. For the time being I've resorted to storing the stacks in the user pref folder but it pains me to do so. So does anybody know if it is possible to get system folders using shell? If not then I will have to write a little external to do this. -- Trevor DeVore Blue Mango Multimedia [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution