• 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: Timothy Bates <email@hidden>
  • Date: Sat, 25 May 2002 15:35:13 +1000
  • .mxoez?+: O?W^h1]g}IB\WO2A=6#`2^rL?jAu,r8EcKz@UG.r.7[$&Ym;j8^Wp;/KAlcda MO/$} $"[ c?\#d@cuN
  • 9+kli1>@: KaeEcbn$EIG)tY@^[7y`lyrI<4S(cnqzmTD&4<tTkuNR(4dweN}SUlDX/X^c>"

> I cannot make "info for" in the Standard Additions work.

> For example, even when "selection" is a valid group of files:

> tell application "Finder"
> info for selection
> end tell

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

  • Follow-Ups:
    • Re: "info for"
      • From: Cornwall <email@hidden>
    • Re: "info for"
      • From: Paul Berkowitz <email@hidden>
References: 
 >"info for" (From: David Crowe <email@hidden>)

  • Prev by Date: "info for"
  • Next by Date: Re: "info for"
  • Previous by thread: "info for"
  • Next by thread: Re: "info for"
  • Index(es):
    • Date
    • Thread