Re: Strange error message
Re: Strange error message
- Subject: Re: Strange error message
- From: Axel Luttgens <email@hidden>
- Date: Wed, 01 Jan 2003 15:16:34 +0100
Steve Thompson wrote:
This script uses the SatImage OSAX but I'm not sure that's the problem
If I write the line
set m to list resources "TEXT" from file "OS
X:Users:Steve:Library:Preference:Test File"
I get the list of resources. This would be fine if every user was
called Steve, but they're not. So I changed my script to:
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"?
set m to list resources "TEXT" from file fname
On the list resources line I get:
Folder C8KbpC+B5AB.C8KbB'C8KC7KTbpnullC
lRESOC+B5fb nullC+B5SbC+B5pSbC8KC7b!fss obj C!
C+B5_b!C8KbCC8KC7bKKK\C+B5_b!C8KbCb9C+b8C+b"ft
B'C+b"fB% wasn't found.
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).
HTH,
Axel
_______________________________________________
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.