Re: Problems with speed & "Info For"
Re: Problems with speed & "Info For"
- Subject: Re: Problems with speed & "Info For"
- From: "Bob.Kalbaugh" <email@hidden>
- Date: Thu, 31 Jan 2002 15:40:08 -0500
on 1/31/02 11:43 AM, Brian Johnson at email@hidden wrote:
>
On Wed, 30 Jan 2002, Kai Edwards wrote:
>
>
[snip]
>
> One vanilla possibility that springs to mind is:
>
>
>
> tell application "Finder"
>
> kind of theItem
>
> end tell
>
[snip]
>
>
I had not thought of this! so last night I did some experiments. I thought
>
the esults might be worth sharng:
>
>
1 - kind of afile -> (depends of file) --(duh)
>
2 - kind of alias-to-afile -> alias -- good!
>
3 - kind of afolder -> folder -- awright!
>
4 - kind of alias-to-afolder -> folder -- ... sigh
>
Brian
Regarding number 4. It just doesn't sound right. Aliases are files and
Finder should report the kind as "alias" regardless, whether they point to a
folder or not. What method are you using to evaluate the alias? Are you by
any chance using *choose folder* for selecting the alias? If so, try using
choose file instead. OTOH...
With an alias to a folder selected in the finder:
tell application "Finder"
set theItem to the selection as alias
set whatKind to kind of theItem
end tell
display dialog whatKind
--> alias
That's what I get with MacOS 9.0/AS 1.4
--
Bob.Kalbaugh