• 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
Meta data help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Meta data help


  • Subject: Meta data help
  • From: Oakley Masten <email@hidden>
  • Date: Tue, 1 Jul 2008 09:33:01 -0700 (PDT)

On Fri, 27 Jun 2008
Martin Orpen Wrote
On  the supject: Meta data help
 
Reboot! ;-)
 
I'm using 10.5.3 and kMDItemKeywords works as expected -- so maybe 
there is a problem in 10.4 or more likely you've got a local problem 
with your Mac?
 
The script shouldn't be returning a file path, just the name of the 
field that you've requested and if it is empty then it should also 
return "(null)".
 
 
 
tell application "Finder"
    set foo to POSIX path of (choose file)
    set bar to (do shell script "mdls -name kMDItemKeywords " & quoted 
form of foo)
    if bar contains "(null)" then
        display dialog "No keywords here"
    else
        display dialog (items 23 thru -3 of bar) as string
    end if
end tell
 
--> "spot colour",
    PMS,
    TOYO,
    PANTONE
 
 
Regards
 
--
Martin Orpen
Idea Digital Imaging Ltd

It does appear to be a problem with 10.4.
I tried it at home on my 10.5.4 and it worked fine with one small exception.
It does not work on .eps files.  .tif great/.jpg great/.psd great.

Only the requested info or null was returned as you said would happen.

Not sure what to do next.  Even if we upgrade to Leopard we still need .eps files to place in Quark.  The final desired result is to place the image in Quark along with its name and the keywords.

Thanks
Oakley
 _______________________________________________
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: Meta data help
      • From: Martin Orpen <email@hidden>
  • Prev by Date: Finder Network File Copy Timeout
  • Next by Date: Re: Meta data help
  • Previous by thread: Re: Finder Network File Copy Timeout
  • Next by thread: Re: Meta data help
  • Index(es):
    • Date
    • Thread