Locating the ~/Library/ folder

Deploying to Mac OS? Ask Mac OS specific questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Locating the ~/Library/ folder

Post by andyh1234 » Thu Nov 11, 2010 5:53 pm

Hi,

Some searches seem impossible (like looking for library in a development forum!!)

Just prepping some code for the new mac store, and we need to move some files around to comply with the file locations restrictions.

Is there a quick way to find the users Library folder, I know...

put specialFolderPath("preferences")

will get me to the ~/Library/Preferences/ folder, and can work back from there, but Im just checking to see if there is a shortcut straight to the Library folder as it doesn't seem to be documented.

Andy

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10053
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Locating the ~/Library/ folder

Post by FourthWorld » Thu Nov 11, 2010 8:08 pm

Try specialFolderPath("dlib")

From:
http://sonsothunder.com/devres/revoluti ... ile010.htm
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Re: Locating the ~/Library/ folder

Post by andyh1234 » Thu Nov 11, 2010 8:26 pm

Unfortunately 'dlib' provides the main Library folder (/Library) rather than the Library folder under the users account.

There must be a list of possible entries somewhere, anyone any ideas???

Klaus
Posts: 14206
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Locating the ~/Library/ folder

Post by Klaus » Fri Nov 12, 2010 12:38 pm

Hi Andy,

please check the url that Richard provided where you'll surely find what you are looking for!

This one:
http://www.sonsothunder.com/devres/revo ... ile010.htm


Best

Klaus

P.S.
Try this:
answer ($HOME & "/Library/")
:D

andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Re: Locating the ~/Library/ folder

Post by andyh1234 » Fri Nov 12, 2010 2:48 pm

Thanks,

$HOME & "/Library/"

was exactly what I was looking for.

Oddly enough, there doesnt seem to be a direct link to the users library folder with the specialfolder command, but the link Ricard posted has a link to just about everywhere else so it is very useful.

Thanks

Andy

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Locating the ~/Library/ folder

Post by Mark » Sun Nov 14, 2010 1:05 pm

Hi Andy,

What's wrong with using ~/library ?

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Re: Locating the ~/Library/ folder

Post by andyh1234 » Sun Nov 14, 2010 1:10 pm

Just my total lack of knowledge of mac / linux file systems!!! Sometimes the obvious just seems to elude me!

Thanks Mark!

Andy

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10053
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Locating the ~/Library/ folder

Post by FourthWorld » Sun Nov 14, 2010 5:14 pm

Mark wrote:What's wrong with using ~/library ?
Does Apple localize "Library" for non-English systems?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Locating the ~/Library/ folder

Post by Mark » Sun Nov 14, 2010 5:40 pm

Richard,

No.

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10053
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Locating the ~/Library/ folder

Post by FourthWorld » Mon Nov 15, 2010 1:48 am

Mark wrote:Richard,

No.

Mark
Weird. How many other system thing does Apple require non-English-speaking people to learn the English name for? Preferences? Fonts? Hmm....
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Locating the ~/Library/ folder

Post by Mark » Mon Nov 15, 2010 2:05 am

Richard,

For users, it is sufficient to know their own language. Developers need to know English.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Klaus
Posts: 14206
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Locating the ~/Library/ folder

Post by Klaus » Mon Nov 15, 2010 1:11 pm

Hi Richard,
FourthWorld wrote:
Mark wrote:Richard,
No.
Mark
Weird. How many other system thing does Apple require non-English-speaking people to learn the English name for? Preferences? Fonts? Hmm....
Apple also knows the difference between "Name" and "Label" and makes practical use of it! :D

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10053
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Locating the ~/Library/ folder

Post by FourthWorld » Tue Nov 16, 2010 12:57 am

Klaus wrote:Hi Richard,
FourthWorld wrote:
Mark wrote:Richard,
No.
Mark
Weird. How many other system thing does Apple require non-English-speaking people to learn the English name for? Preferences? Fonts? Hmm....
Apple also knows the difference between "Name" and "Label" and makes practical use of it! :D
I'm not sure I understand. You mean for non-English systems it uses English folder names but the Finder displays them in the native language?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Zryip TheSlug
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 163
Joined: Tue Jan 26, 2010 10:15 pm
Contact:

Re: Locating the ~/Library/ folder

Post by Zryip TheSlug » Tue Nov 16, 2010 10:15 am

FourthWorld wrote: I'm not sure I understand. You mean for non-English systems it uses English folder names but the Finder displays them in the native language?
Richard,

Yes.


Try this:

System Preferences -> International -> Drag the language you want at the top of the list -> Log out -> Log in

Your system should now display labels, menu names, etc, in another language.


Best regards,
TheSlug
http://www.aslugontheroad.com - Tutorials, demo stacks and plugins for LiveCode
Data Grid Helper - An intuitive interface for building LiveCode's Data Grids
Excel Library- Extends the LiveCode language for controlling MS Excel

Klaus
Posts: 14206
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Locating the ~/Library/ folder

Post by Klaus » Tue Nov 16, 2010 12:50 pm

Yo! :D

Post Reply