Re: Strange error message
Re: Strange error message
- Subject: Re: Strange error message
- From: Emmanuel <email@hidden>
- Date: Wed, 1 Jan 2003 17:24:22 +0100
At 3:16 PM +0100 01/01/03, Axel Luttgens wrote:
Steve Thompson wrote:
set fname to (path to current user folder as text)
set fname to fname & "Preferences:Test File"
Shouldn't it be "Library:Preferences:Test File"?
Allow me to second Axel. I suppose you would rather use "path to
preferences from user domain".
Which looks like a bug but could be user stupidity. Can anyone tell me
whats going on here?
With the above, it seems that your script chokes while trying to
find folder "OSX:Users:Steve:Preferences:", and that the error
message shows a raw file specification instead of a path.
Some tests tend to indicate that AppleScript's usual behavior would
be to show the full path to the requested but inexistent file
("OSX:Users:Steve:Preferences:Test File") in the error message.
So, it could be a"cosmetic" bug in the OSAX (which I haven't
installed on the computer I am presently using).
That's it. The Satimage's resource suite supports that you specify a
non-existing file, assuming you want to create it. "file thePath" is
how you specify a non-existing file. In that, "put resource" works
like the Standard Additions' "write" command: it will create the file
if needed.
If your file is supposed to exist, you'll be safer with "alias
thePath", which definitely stops the script if the file does not
exist. Here, finally, the Satimage osax tries to create a file inside
a folder ("Steve/Preference") which does not exist - and, maybe a
test is missing here.
Emmanuel
_______________________________________________
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.