Re: What happened to "file"?
Re: What happened to "file"?
- Subject: Re: What happened to "file"?
- From: David Hood <email@hidden>
- Date: Tue, 7 May 2002 21:00:41 +1200
On Sunday, May 5, 2002, at 11:44 AM, Paul Berkowitz wrote:
OS 10.1.4, AS 1.8.2b3
I thought that file references were supposed to behave just as they
always
did, even though they're actually set up differently "under the hood"
in OS
10.1.x?
Get a valid path to a real file on your computer, e.g.
"OS X HD:Users:yourname:Desktop:test"
Now try
set f to file "OS X HD:Users:yourname:Desktop:test"
--> ERROR: Can't get file "OS X HD:Users:yourname:Desktop:test"
This worked fine for me (for a file 2.txt on my desktop):
tell application "Finder"
set f to file "OSX:Users:david:Desktop:2.txt"
return f
end tell
which returned:
document file "2.txt" of folder "Desktop" of folder "david" of folder
"Users" of startup disk of application "Finder"
also running
OS 10.1.4, AS 1.8.2b3
so I'm not sure what's going on in your case.
Regards,
David Hood
_______________________________________________
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.