specialFolderPath("Preferences") for window
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
specialFolderPath("Preferences") for window
Hi All,
Which is the equivalent of specialFolderPath("Preferences") for window and Linux
I think "home" it is correct ?
Al the best
Jean-Marc
Which is the equivalent of specialFolderPath("Preferences") for window and Linux
I think "home" it is correct ?
Al the best
Jean-Marc
https://alternatic.ch
Re: specialFolderPath("Preferences") for window
"home" would be pretty much the equivalent of the "home" folder reference on a Mac. If that is suitable then yes, you could use it. Otherwise if you are talking more like the "asup" application support folder in the user's libraray, then on Windows at least you would probably find the nearest match is to use specialFolderPath(26) or specialFolderPath(28) for the Application Data folder, whether roaming or local. I don't know what any equivalent in Linux would be.
The dictionary gives a link to the Microsoft site which tells what they are (which seems currently to be down), but Ken Ray has the specialFolderPath Codes "bible" here http://www.sonsothunder.com/devres/revo ... ile010.htm
The dictionary gives a link to the Microsoft site which tells what they are (which seems currently to be down), but Ken Ray has the specialFolderPath Codes "bible" here http://www.sonsothunder.com/devres/revo ... ile010.htm
Re: specialFolderPath("Preferences") for window
Hi Sparkout,
Thank for your quick and documented reply.
All the best
Jean-Marc
Thank for your quick and documented reply.
All the best
Jean-Marc
https://alternatic.ch
Re: specialFolderPath("Preferences") for window
Actually, specialFolderPath("preferences") works on Windows. It points to the right place in the user data folder.
On Linux it is customary to just use ~/.myapp/ (don't use specialFolderPath.) The dot makes the app folder invisible, which is usually how apps do it.
On Linux it is customary to just use ~/.myapp/ (don't use specialFolderPath.) The dot makes the app folder invisible, which is usually how apps do it.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: specialFolderPath("Preferences") for window
If that were true, it would be nice if the dictionary said so. But it certainly doesn't give me a path on Windows (7 - not tested on any other versions lately but I'm pretty sure I never got a path from attempts to try "preferences" back on my XP machine when I was green).jacque wrote:Actually, specialFolderPath("preferences") works on Windows. It points to the right place in the user data folder.
Re: specialFolderPath("Preferences") for window
Hmm...looks like you're right. I just checked some old code and I'm using specialFolderPath(26) for Windows. I hate when I do that. 

Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: specialFolderPath("Preferences") for window
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: specialFolderPath("Preferences") for window
Aye, me too, as intimated above.
Re: specialFolderPath("Preferences") for window
Hi All,
Thank for reply.
They are very useful for a windows baby and i'am one.
All the best
Jean-Marc
Thank for reply.
They are very useful for a windows baby and i'am one.
All the best
Jean-Marc
https://alternatic.ch