Coercion question
Coercion question
- Subject: Coercion question
- From: Jan Pieter Kunst <email@hidden>
- Date: Fri, 15 Jun 2001 10:07:49 +0200
Hello all,
Is it possible to coerce this:
alias "Disk:Folder:File"
to this:
{file "File" of folder "Folder" of startup disk}
Reason: I can ask for 'class of item 1 of' the second form, and get
"folder", "document file", etc., regardless of OS language (thanks JJ). With
the alias, I can ask for 'kind of' the alias, and get the kind as reported
in the Finder 'kind' column, which is language-specific and, in the case of
documents, too detailed for my use. I just want to know if something is a
document or a folder.
So I was thinking: if I can coerce the alias to the second form (don't know
what it's called), I can get the 'class' of the item. Or is there a way to
get the 'class' of an alias directly somehow?
Thanks,
JP