Re: What happened to "file"?
Re: What happened to "file"?
- Subject: Re: What happened to "file"?
- From: John W Baxter <email@hidden>
- Date: Tue, 7 May 2002 18:09:23 -0700
At 10:47 -0400 5/7/2002, Paul Skinner wrote:
>
See http://developer.apple.com/technotes/tn/tn2022.html
>
>
> The Death of typeFSSpec: moving along to typeFileURL
>
> The FSSpec data type is not suitable for encoding information about
>
> files in Mac OS X. Most importantly, FSSpecs cannot encode long or
>
> Unicode file names such as those used in the Mac OS X file system. In
>
> addition, Directory ID numbers and volume reference numbers are
>
> application specific in Mac OS X. This means that a directory ID number
>
> or volume reference number used in one application will not have any
>
> meaning for another applications.
>
>
I assume this is a symptom.
Possibly, but file "nice:path" doesn't become an FSSpec when moved to
another application (hence likely not within AppleScript. It becomes an
object specifier which tries to retrieve a file thing by name from the null
object.
On my Mac OS 9.1 machine, I also had to use the "a reference to" hack, to run
set x to a reference to file "Bainbridge:Desktop:test"
Which gives the result:
obj {
form:name,
want:type(file),
seld:"Bainbridge:Desktop:test",
from:'null'()
}
(at least when looked at with the AEPrint selection in Script Debugger).
The script failed without the a reference to (when run within Script
Debugger). It appears to be Script Debugger which doesn't want to deal
with the above. "Application" is "Script Debugger" and expected type is
the keyword item. [And not surprisingly, partial result is the empty list
(unless it's an empty record, but that's another discussion ;-)).]
>
>
On Saturday, May 4, 2002, at 07:44 PM, 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?
>
SNIP
>
> --
>
> Paul Berkowitz
>
>
>
a reference to file "Dalai:Users:paulskin:Desktop:Jumbo dots.psd"
>
-->file "Dalai:Users:paulskin:Desktop:Jumbo dots.psd" of +script;
>
>
hmmm...
--
John W. Baxter Port Ludlow, WA, USA
set emptyRecord to {behindTheCurtain: "Pay no attention to the string
behind the curtain!"}
_______________________________________________
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.