• 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 17:04:28 -0500

On May 17, 2010, at 4:25 PM, Thomas Fischer wrote:
what I'm looking for is the data from:

kMDItemCreator                 = \"ADOBEPS4.DRV Version 4.50\"
and
kMDItemEncodingApplications    = (
    \"Acrobat Distiller 5.0 (Windows)\"
)
which is actually part of the information that
do shell script "mdls " & (quoted form of (POSIX path of myFile))
provides.
But I still have to find an efficient way to get my hands on the parts.

Here is the link to Apple's man page for 'mdls': http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man1/mdls.1.html

Try using the -raw option. It may make getting your data easier.
More likely than not, you will have to use AppleScript's text item delimiters to get exactly what you need for some data items.

For example ...

do shell script "mdls -raw -name kMDItemEncodingApplications " & (quoted form of (POSIX path of fileAlias))

will give you just

(
    \"Acrobat Distiller 5.0 (Windows)\"
)

from your example above. You will have to use ASTIDs to remove the unwanted leading and trailing characters.

 _______________________________________________
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

  • Follow-Ups:
    • Re: Getting Info from the Finder
      • From: Thomas Fischer <email@hidden>
    • Re: Getting Info from the Finder
      • From: Tommy Bollman <email@hidden>
References: 
 >Getting Info from the Finder (From: Thomas Fischer <email@hidden>)
 >Re: Getting Info from the Finder (From: Martin Michel <email@hidden>)
 >Re: 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