Re: Getting Info from the Finder
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.
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