Re: alias is folder?
Re: alias is folder?
- Subject: Re: alias is folder?
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 26 Apr 2003 18:21:20 -0700
On 4/26/03 5:58 PM, "John Delacour" <email@hidden> wrote:
>
At 5:34 pm -0700 26/4/03, Paul Berkowitz wrote:
>
>
> tell application "Finder" to (kind of item (someAlias as Unicode text) is
>
> "Folder")
>
>
>
Why do you need to do the coercion to text and then the coercion to
>
item? You can work directly with the alias as in:
>
>
>
tell app "Finder" to kind of (path to "cusr") is "Folder"
>
-- => true
True. I have had a disinclination to use alias in Finder tell block ever
since Chris Espinosa told me I shouldn't, but it certainly makes the line
simpler here. A coercion occurs here too, of course - from alias to Finder
object (probably item), in order that 'kind' can be evaluated.
--
Paul Berkowitz
_______________________________________________
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.