What happened to "file"?
What happened to "file"?
- Subject: What happened to "file"?
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 04 May 2002 16:44:34 -0700
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"
Then:
set f to alias "OS X HD:Users:yourname:Desktop:test"
--> alias "OS X HD:Users:yourname:Desktop:test"
it compiles with that funny gigantic font, and is OK.
I can't make 'file' work, no matter whether I set the path as international
text, Unicode text, text, or string. Nor does it work setting the file path
to a variable.
I've read the release notes for As 1.8.2b3 and for 1.8.1. The only mentions
of file references say that certain things have been fixed. There's
something about their not working in AS 1.6 when paths containd accented
characters, nothing else. I've tried it with these file paths:
set fff to file "OS X HD:Users:berkowit:Documents:Pascal:contacts.CSV"
set fff to file "OS X HD:Users:berkowit:Documents:Plea.rtf"
set fff to file "Data HD:Documents:AppleScript Scripts/Docs OSX:Scripts
X:Beep in Background"
Is 'file' no longer a valid AppleScript language term, except in 'open for
access'? Or what is the bug - what's going on?
--
Paul Berkowitz
_______________________________________________
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.