Re: Error -1700 Test
Re: Error -1700 Test
- Subject: Re: Error -1700 Test
- From: Axel Luttgens <email@hidden>
- Date: Wed, 9 Feb 2011 11:02:57 +0100
Le 9 févr. 2011 à 00:56, Luther Fuller a écrit :
> And, finally, a solution to this problem.
> At a few places in the previous version of my application, I wrote
>
> set prefsFolder to (path to preferences folder from user domain)
>
> This seems to be the cause of the problem on my users Mac.
> This line does not generate the error directly, but causes prefsFolder to be
> a faulty alias which errors when next used.
>
> While trying to test the problem, I used
>
> set prefsFolder to (path to preferences)
>
> which also caused a problem on my users Mac.
>
> The correct usage is
>
> set prefsFolder to (path to preferences from user domain)
>
> If you add "folder" or eliminate "from user domain", it may work on your Mac,
> but there is a Mac out there somewhere that will have a problem.
Hello Luther,
As far as Standard Additions have been concerned, the dictionary has always stated "path to preferences".
The fact that the extraneous word "folder" appears to be sometimes silently ignored is just plain annoying (tested here on a french 10.6.6, and it is indeed ignored); I'm of the opinion it would be better to get a big complaint at compile time...
Wrt domain, the default for "preferences" seems to always (well, since Mac OS X of course) have been the user one.
But yes, it is anyway a good idea to be explicit for such matters.
> [...]
>
> Should I pass this email along to Apple as a bug report?
Now, from your other mail:
> No puede obtenerse alias "username:Library:Preferences:" of application "Finder".
Could you ask your user to provide the full path of his home directory?
Is he making use of FileVault?
I guess those informations might be useful for a possibly better bug report.
HTH,
Axel
_______________________________________________
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