• 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: "info for"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "info for"


  • Subject: Re: "info for"
  • From: Paul Berkowitz <email@hidden>
  • Date: Fri, 24 May 2002 22:58:04 -0700

On 5/24/02 10:35 PM, "Timothy Bates" <email@hidden> wrote:

> This works and copes with the (years old) inability of the finder to return
> a single item alias list. Someone will no doubt reply with a work around
> that avoids the try block, but I like to have aliases or strings to work
> with.
>
> tell application "Finder"
> try
> set theSelection to the selection as alias list
> on error
> set theSelection to {the selection as alias}
> end try
>
> end tell
>
> repeat with anItem in theSelection
> info for (anItem as file specification)
> end repeat

There's no more 'file specification' in OS X. That bit will stop working one
of these days. Better just to leave it as


repeat with it from 1 to (count theSelection)
set anItem to item i of theSelection
info for anItem
end repeat

You can get info for an alias perfectly well. You may just need to evaluate
the list item as here.

--
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.

References: 
 >Re: "info for" (From: Timothy Bates <email@hidden>)

  • Prev by Date: Re: "info for"
  • Next by Date: Saving lists of records to a text file
  • Previous by thread: Re: "info for"
  • Next by thread: Re: "info for"
  • Index(es):
    • Date
    • Thread