• 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 from the Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Info from the Finder


  • Subject: Re: Getting Info from the Finder
  • From: Luther Fuller <email@hidden>
  • Date: Mon, 17 May 2010 14:18:32 -0500

On May 17, 2010, at 1:39 PM, Thomas Fischer wrote:

I need to access information from the Finder's info window, but didn't find a way to access it.

I got this far:

set myFile to choose file
tell application "Finder"
set myInfo to open the information window of myFile
set the current panel of myInfo to More Info panel
end tell

This will nicely display the desired panel from the Information Window.
But I couldn't find a way to obtain its contents.
Does anybody have an idea?

Yes. Opening the Info Window / More Info shows items that you can't get with the Finder, but it looks a lot like info you can get with ...

do shell script "mdls " & (quoted form of (POSIX path of fileAlias))
--> returns all metadata for the file

or 

do shell script "mdls -name kMDItemPageHeight " & (quoted form of (POSIX path of fileAlias))
--> returns the string "kMDItemPageHeight = 792"

A little experimenting and you should be in business.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Getting Info from the Finder (From: Thomas Fischer <email@hidden>)

  • Prev by Date: Re: Getting Info from the Finder
  • Next by Date: Re: Getting Info from the Finder
  • Previous by thread: Re: Getting Info from the Finder
  • Next by thread: Re: Getting Info from the Finder
  • Index(es):
    • Date
    • Thread