Re: alias is folder?
Re: alias is folder?
- Subject: Re: alias is folder?
- From: matt neuburg <email@hidden>
- Date: Sun, 27 Apr 2003 19:12:09 -0700
On 4/27/03 at roughly 9:58 PM, thus spake Christopher Nebel
<email@hidden>:
>
Of course, it won't work unless you run in English. For example, in
>
French, the kind of myAlias is "Dossier".
Ouch! :)
>
A more reliable approach is
>
this:
>
>
tell application "Finder"
>
get class of item myAlias --> folder
>
end tell
Very nice, thank you. I'm not sure I understand why this works. I guess
what's happening is that we're coercing the alias to an item, then asking
for its lowest-level class (which is why we get folder, not item). Is that
right? If so, is there a similar way to ask if myAlias is a container? m.
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
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.