• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Error -1700 Test
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error -1700 Test


  • Subject: Re: Error -1700 Test
  • From: KOENIG Yvan <email@hidden>
  • Date: Wed, 9 Feb 2011 12:06:25 +0100


Le 8 févr. 2011 à 22:48, Stan Cleveland a écrit :


On Feb 8, 2011, at 1:29 PM, Luther Fuller wrote:

<snip>
I just got a reply from my user and he reports that the test script again reported an error. The error is created by the corrected line, above. To be explicit ...
No puede obtenerse alias "username:Library:Preferences:" of application "Finder".
translation
Cannot get alias "username:Library:Preferences:" of application "Finder".

This prompts questions:
1. Why is this (correct) line erroring on my users Mac ?
2. Why do both of these lines run correctly on our Macs ?
3. Why does the incorrect code compile as if correct on my Mac ?

Any answers (or guesses) would be appreciated.

Hi Luther,

These are definitely both guesses on my part.

Re your first question is it possible that Spanish systems have a "Preferencias" folder and that the standard additions "path to" command is not localized, so always expects "Preferences"?

Re your last two questions, might AS be silently coercing "preferences folder" to "preferences".


I ran the original test script on a system set to French then to a system set to Spanish.

"Preferences" was not localized and, when the name of a System folder is localized, it doesn't matter.
Applescript doesn't work with the localized named but with the original English names.

For instance, in French Library is displayed as Bibliothèque in the Finder but
path to library folder
returns :

alias "Macintosh HD:Library:"

Same thing for the System folder which is spelled Système in the Finder

path to system folder
returns
alias "Macintosh HD:System:"

On my French system,
path to library folder from user domain
returns :

alias "Macintosh HD:Users:yvankoenig:Library:"

path to library folder from local domain
returns :
alias "Macintosh HD:Library:"

Yvan KOENIG (VALLAURIS, France) mercredi 9 février 2011 12:06:20


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Error -1700 Test
      • From: Luther Fuller <email@hidden>
References: 
 >Error -1700 Test (From: Luther Fuller <email@hidden>)
 >Re: Error -1700 Test (From: Luther Fuller <email@hidden>)
 >Re: Error -1700 Test (From: Stan Cleveland <email@hidden>)

  • Prev by Date: Re: Error -1700 Test
  • Next by Date: Re: SpamCop script which worked in Tiger suddenly dropping some attachments in Leopard
  • Previous by thread: Re: Error -1700 Test
  • Next by thread: Re: Error -1700 Test
  • Index(es):
    • Date
    • Thread