Re: Coercion question
Re: Coercion question
- Subject: Re: Coercion question
- From: Pier Kuipers <email@hidden>
- Date: Fri, 15 Jun 2001 12:49:57 +0100
At 10:07 +0200 15/6/01, Jan Pieter Kunst wrote:
>
Hello all,
>
>
Is it possible to coerce this:
>
>
alias "Disk:Folder:File"
>
>
to this:
>
>
{file "File" of folder "Folder" of startup disk}
I don't think that's possible without having to tell the finder, but
this should do it:
set theAlias to "Disk:Folder:File"
tell application "Finder" to set theFile to (item theAlias) as list
--> {file "File" of folder "Folder" of startup disk of application "Finder"}
Of course your alias will have to point to an existing file.
Hope this helps,
Pier.
--
Pier Kuipers
Visual ID
* the Media Asset Management solution *
2 Whitefriars
Aungier Street
Dublin 2
Tel. +353 1 476 7059
Mobile +353 87 294 3063
Fax +353 1 478 1366
ISDN +353 1 602 0754
http://www.visualid.com