On Feb 6, 2011, at 11:12 AM, Luther Fuller wrote: If you are willing to run this test, let me know offline and I will send a copy of "TEST-1.app" with source code, then you can send me a copy of the report named "TEST-1 Report.txt", also offline.
Thanks for running my test. Those of you who ran the test encountered no errors. But, when my user in Madrid ran the test, he got an error in the first line, where I had not expected an error. The line of code is ...
set prefsAlias to (path to preferences folder)
This is incorrect. It should have been ...
set prefsAlias to (path to preferences)
according to the StandardAdditions dictionary. I corrected the test script and sent it to my user expecting that it would now run correctly. 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.
|