• 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: Stephen Jonke <email@hidden>
  • Date: Fri, 13 May 2005 10:17:17 -0400

I think you are looking for this:

  tell application "Finder"
    set theSelection to selection
    repeat with i in theSelection
      set fi to properties of i
    end repeat
  end tell

Select a file and run this and look in the Results to see the information that is available. You use the following form to get the individual bits out:

  tell application "Finder"
    set theSelection to selection
    repeat with i in theSelection
      set fi to properties of i
      set modDate to modification date of fi
      set ownerPrivs to owner privileges of fi
    end repeat
  end tell

And so forth. Note that I'm running this in Panther, but it should be the same in Tiger.

Steve


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

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

_______________________________________________ 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
References: 
 >Getting info for files in Finder selection (From: pete boardman <email@hidden>)

  • Prev by Date: Help for mail.app
  • Next by Date: Re: Getting info for files in Finder selection
  • Previous by thread: Getting info for files in Finder selection
  • Next by thread: Re: Getting info for files in Finder selection
  • Index(es):
    • Date
    • Thread