Re: Path to ... as string [was Re: Complete newbie]
Re: Path to ... as string [was Re: Complete newbie]
- Subject: Re: Path to ... as string [was Re: Complete newbie]
- From: Federico <email@hidden>
- Date: Sat, 26 Apr 2003 12:41:34 +0200
Sabato, 26 apr 2003, alle 11:55 Europe/Rome, Paul Berkowitz ha scritto:
That's interesting. Is this true for all languages - Chinese, etc?
The names
of all folders created by the OS are in English, as known to the file
system?
I believe so... you can test this yourself by choosing a random
language in System Preferences :) take a look at this screenshot:
http://geek.iworks.it/Public/Misc/localized.jpg
In System Preferences, I've set as first language one I think is
Chinese (not sure, since I do not know Chinese, or other oriental
languages, and the items of the list are localized, too).
However, I think it is still useful to prove the point.
Note that for personal preference, a while back, I've removed all
'.localized' files from my home's subfolders.
I've localized 'Documents' today just for this test.
As you can see from the Finder window in the screenshot, the /Library,
/Applications, /System, /Users, /Users/Shared,
/Users/federico/Documents are all translated. Also, they are sorted by
*localized* name, not original name.
Another thing to note is that localization works on the standard
save/open dialog too: dialogs for localized apps will show localized
names, in the language the app is currently using: after changing the
language in System Preferences, I restarted the Finder only; Mail.app
was still running in italian, and on its 'save as' dialog I saw italian
folder names.
On the screenshot's background, you can see a Terminal.app window, with
the list of my home's subfolders. On the third row of the first column,
you can see that the Documents folder is listed as 'Documents', its
real name, not the localized one.
Also if i run this:
tell application "Finder" to get items of home
or this:
list folder (path to "cusr")
or this:
path to "docs"
Resulting items all have their real names.
--
Federico
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.