• 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: Getting info for files in Finder selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting info for files in Finder selection


  • Subject: Re: Getting info for files in Finder selection
  • From: Le Stang Jean-Baptiste <email@hidden>
  • Date: Fri, 13 May 2005 16:20:09 +0200

Well i think this is a problem between what Applescript calls a file and what the FInder calls a file, same term but different meanings :

tell application "Finder" -- Tiger 10.4.
    set theSelection to selection
    repeat with i in theSelection
        set fi to info for (i as alias)
    end repeat
end tell

++ JB

On May 13, 2005, at 11:55 AM, pete boardman wrote:


I'm trying to get something like this working:

--
tell application "Finder" -- Tiger 10.4.
    set theSelection to selection
    repeat with i in theSelection
        set fi to info for i
    end repeat
end tell
--

but I keep getting errors like "Finder got an error: File document file ... wasn't found."

This gives the same error:

--
tell application "Finder"
    set theSelection to selection
end tell
repeat with i in theSelection
    set fi to info for i
end repeat
--

I think it's class trouble, but I'm not sure how to resolve it. Is 'info for' wanting something that the Finder isn't giving it?

Pete
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (Applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
40libertysurf.fr


This email sent to email@hidden




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Getting info for files in Finder selection
      • From: pete boardman <email@hidden>
References: 
 >Getting info for files in Finder selection (From: pete boardman <email@hidden>)

  • Prev by Date: Re: Getting info for files in Finder selection
  • Next by Date: Tiger error with meta-info
  • Previous by thread: Re: Getting info for files in Finder selection
  • Next by thread: Re: Getting info for files in Finder selection
  • Index(es):
    • Date
    • Thread