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

Re: Question about "info for" command


  • Subject: Re: Question about "info for" command
  • From: "Marc K. Myers" <email@hidden>
  • Date: Thu, 14 Jun 2001 13:52:12 -0400
  • Organization: [very little]

> Date: Thu, 14 Jun 2001 10:10:08 +0200
> Subject: Question about "info for" command
> From: Jan Pieter Kunst <email@hidden>
> To: Applescript lijst <email@hidden>
>
> tell application "Finder"
> set x to folder of (info for selection)
> end tell
>
> --> returns an error message??

You've got a conflict between the Finder (which knows what a folder is)
and the "info for" scripting addition command. Try it this way:

tell application "Finder" to set theFile to (item 1 of the selection) as alias
set x to folder of (info for theFile)

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[6/14/01 1:52:01 PM]


  • Prev by Date: Re: newbie question
  • Next by Date: Re: How to 'load' osaxen
  • Previous by thread: Re: Question about "info for" command
  • Next by thread: Re: Question about "info for" command
  • Index(es):
    • Date
    • Thread