• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problems with speed & "Info For"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Scripting Additions: Embracing the Horror of Unix
  • Next by Date: Re: ACGI form parsing in OSX?
  • Previous by thread: Re: Problems with speed & "Info For"
  • Next by thread: Stumped with list folder in Mac OS X
  • Index(es):
    • Date
    • Thread