Subject: | |
From: | |
Reply To: | |
Date: | Tue, 11 Jan 2011 01:53:07 -0800 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
At 01:52 p -0500 01/10/2011, Bill Steele didst inscribe upon an
electronic papyrus:
>On Jan 9, 2011, at 7:05 AM, Walter Ian Kaye wrote:
>
>> At 06:09 p -0500 12/06/2010, Bill Steele didst inscribe upon an
> > electronic papyrus:
>>
> >> But it turns out it did work with alias, once I found the right
>>> finicky syntax. You can't say "foo as alias." Has to be "alias foo."
>>
>>
>> What was foo? Was it a path string or a filespec?
>>
>> (I've been doing 'alias pathstring' since System 7.)
>>
>>
>> -boo
>
>A path as string, resulting from patching a folder name to some new filename.
Well that's why it didn't work. :) You may as well have been trying
to coerce "I'm Henry the Eighth, I am" into an alias. :D
Perl sees "disk/folder/filename" as a file, but to AppleScript it's
merely a text string and nothing more. It's always been so.
set fss to file "disk:folder:filename" --FSSpec
set fa to alias "disk:folder:filename"
set fa to fss as alias
set fu to fss as «class furl» --File URL
-boo
writing a CMS in Perl
|
|
|