Re: What happened to "file"?
Re: What happened to "file"?
- Subject: Re: What happened to "file"?
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 07 May 2002 11:32:15 -0700
Hey! I just found a way! It's sort of nuts:
POSIX file "/Users/berkowit/Documents/Pascal/Contacts Export EvX.txt"
compiles to
file "OS X HD:Users:berkowit:Documents:Pascal:Contacts Export EvX.txt"
but this time it has the same Gargantuan Geneva 12 font that 'alias' forms
compile to, not the usual string font. NOW, when you run it, it doesn't
error!
Who would have thought that the whole thing depended on what font you used?
What exactly is AppleScript up to here?
--
Paul Berkowitz
>
From: Paul Berkowitz <email@hidden>
>
Date: Tue, 07 May 2002 10:13:03 -0700
>
To: Applescript-Users <email@hidden>
>
Subject: Re: What happened to "file"?
>
>
Evidently. But it wasn't supposed to be like this, I don't think. Although
>
it's something that developers of applications need to be aware of, we
>
AppleScripters were supposed to be able to go on using file references as
>
before, I thought (as long as you don't actually say 'as file
>
specification'.). They would be coerced by AppleScript to the typeFileURL.
>
That's what I thought I was told last summer, when the change took place for
>
OS 10.1.0. I guess there's no real need for 'file' as long as 'alias' works
>
and 'open for access file whatever' to make a new file works, which they
>
both do. And 'save to' as implemented in the Standard Suite of applications
>
coerces from string paths, which is what it always did (it erroneously used
>
to say 'alias', and 'file' would work except for applications that had their
>
own 'file' keyword, but 'string' is now the correct type.)
>
>
Maybe I just got it wrong, but I thought 'file' was still supposed to work.
>
One less type to worry about, except for legacy scripts brought over from OS
>
8/9 which will now break.
>
>
--
>
Paul Berkowitz
>
>
> From: Paul Skinner <email@hidden>
>
> Date: Tue, 7 May 2002 10:47:43 -0400
>
> To: Applescript-Users <email@hidden>
>
> Cc: Paul Berkowitz <email@hidden>
>
> Subject: Re: What happened to "file"?
>
>
>
> 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.
>
>
>
> 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...
>
> --
>
> Paul Skinner
>
> _______________________________________________
>
> 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.
>
_______________________________________________
>
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.
_______________________________________________
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.