Spotlight Comments No Showing Up in Get Info

I moved thousands of video files to new folders (Drag & Drop Method). Now the spotlight comments for the files are no longer showing up in the get info window. I'm devastated because the comments contained critical information about the video. Without the comments, the organization of the files is a mess. I have no idea how to fix this problem.

ok, this shows that the spotlight comment "the Kat" is retained in spotlight database as it's recorded in the kMDItemFinderComment field. then the problem is likely corruption of the .DS_store files for the folders containing those files. I really don't know why this happens and what's the proper way of dealing with this but I made the following workaround for the same problem while helping someone else in the past
http://discussions.apple.com/thread.jspa?messageID=10549447
paste the following into AppleScript Editor
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #ADD8E6;
overflow: auto;"
title="this text can be pasted into the Script Editor">
tell application "Finder"
set mlist to selection
set curfolder to item 1 of mlist
repeat with this_item in entire contents of curfolder
set ppath to quoted form of POSIX path of (this_item as alias)
set comment of this_item to (do shell script "mdls -name kMDItemFinderComment " & ppath & "| awk -F\\\"  '{print $2}'") 
end repeat
end tell</pre>
select the folder containing all those items (they can be in subfolders) and press 'run" in applescript editor.
Message was edited by: V.K.

Similar Messages

  • Album artwork doesn't show up on Get Info window?

    I downloaded iTunes 7. Now, when I open the Get Info window and go to the artwork tab, the artwork doesn't show up, even though I can see it in the regular iTunes window! Help? Anyone?

    iTunes 7 does some stupid things with the artwork. The artwork tab in Get Info is the artwork that is contained inside the music file. iTunes 7 also downloads artwork for songs but then it doesn't store it inside the song file -- it just puts in in a folder on the computer.

  • Why doesnt Bit Rate show when you Get Info

    When you downgrade the bit rate of a song in itunes for example, from 320kbps to 128kbps then click get info it will show the bit rate, but if you use your Finder locate the song file and click get info it will be missing
    why is this
    is there a way to make it show?

    Hi,
    im a cow wrote:
    When you downgrade the bit rate of a song in itunes for example, from 320kbps to 128kbps then click get info it will show the bit rate, but if you use your Finder locate the song file and click get info it will be missing
    why is this
    is there a way to make it show?
    You cannot show bit rate using finder. This value is not included in the get info box - only sample rate is shown. You should use iTunes to find the bit rate of the track which you can see in song view if you have added this from view > view options.
    If you want to see in finder, I suggest that you provide feedback to Apple.
    jim

  • Image Icon not showing in "get info" for OS 10.9.4

         I  now have PS CC 2014 and the image icons are showing the "generic" .jpg and .psd files in the "get info" finder window, but on my desktop the images are showing their
         proper image icon.
         I was previously using PS CS 5 and the icons are showing up in the "get info" window, but with PS CC 2014 these icons are showing up as generic.
         To be clear the images I saved using PS CS 5 are showing the icons vs. the images I saved in CC 2014 where the icons are not showing in the "get info" window.
         I've compared preference settings with PS 2014 and PS 5 but their basically about the same.
         I'm including 2 images so you can see what I'm explaining. IMG_1627 is a PS CC2014 created image and Arturo is a PS 5 image.
         I did read about other PS users having similar issues but it looked to be unresolved.
         You may think what's the big deal, but I use these image icons to label my folders. A "trick" I've doing for over decade which helps keep my folders visually on track for me.
         Is anyone out there able to solve this issue??  

    I do on occasion get jpgs and pngs that won't render a thumbnail or preview in MacOS.  I have 10.9.5
    I don't have this problem, although I just have CC and CC 2014 on my Macbook.
    I would open those up in Preview.app and try a Save As... and I would get the thumbnail and thumbnail preview back.
    Not really the best idea,but you can see if it helps.
    These  are my file saving options, perhaps there is something there you can try.
    Gene

  • Picture not showing in "Get Info" for Podcast

    I've just created a podcast and uploaded it. The audio works just fine, but for some reason the image that I want to associate with the file doesn't show up in "Get Info". Anyone know what may be causing this?
    The .xml for the podcast follows:
    <?xml version="1.0" encoding="utf-8"?>
    <rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
    <channel>
    <title>Teaching American History Podcast</title>
    <link>http://www.teachingamericanhistory.org/podcasts/</link>
    <description>The Teaching American History Podcast is based on programs for teachers sponsored by the Ashbrook Center at Ashland University, Ashland, Ohio. These seminars are designed to encourage teachers to seriously examine significant events in American history in light of the principles of the American founding, and also to encourage the use of primary source materials in the classroom. The seminars, which include both lecture and discussion, are taught by leading scholars in their field from throughout the nation.</description>
    <copyright>Copyright 2006, Ashbrook Center for Public Affairs</copyright>
    <lastBuildDate>Tue, 24 Jan 2006 07:00:00 EST</lastBuildDate>
    <itunes:summary>The Teaching American History Podcast is based on programs for teachers sponsored by the Ashbrook Center at Ashland University, Ashland, Ohio. These seminars are designed to encourage teachers to seriously examine significant events in American history in light of the principles of the American founding, and also to encourage the use of primary source materials in the classroom. The seminars, which include both lecture and discussion, are taught by leading scholars in their field from throughout the nation.</itunes:summary>
    <itunes:author>Ashbrook Center for Public Affairs</itunes:author>
    <itunes:keywords>Ashbrook Center, Teaching American History, Education, History, American History</itunes:keywords>
    <image>
    <url>http://www.ashbrook.org/images/logo_head.jpg</url>
    <title>Ashbrook Center for Public Affairs</title>
    <link>http://www.teachingamericanhistory.org/podcasts/</link>
    </image>
    <itunes:category text="Education"/>
    <itunes:owner>
    <itunes:email>[email protected]</itunes:email>
    <itunes:name>Ashbrook Center for Public Affairs</itunes:name>
    </itunes:owner>
    <itunes:image href="http://www.ashbrook.org/images/logo_head.jpg"/>
    <item>
    <title>"Causes of the Civil War" (Session 1), February 12, 2005</title>
    <description>Few other questions in American history have generated more controversy than "What Caused the Civil War?" That conflict preserved the United States as one nation, indivisible and abolished the institution of slavery that for more than four score years had made a mockery of American claims to stand as a republic of liberty, a beacon of freedom for oppressed peoples in the Old Word. But these achievements came at the great cost of more than 629,000 lives and vast destruction of property that left large parts of the South a wasteland. Could this terrible war have been avoided? Who was responsible for the events that led to war? Could the positive results of the war (Union and Freedom) have been achieved without war? How have participants in the war and historians answered these questions over the five generations since the war ended? James M. McPherson is the George Henry Davis '86 Professor of History at Princeton University and is widely acclaimed as the leading historian of the Civil War. He is the author of Battle Cry of Freedom: The Civil War Era, which won the Pulitzer Prize in history in 1989, as well as many other books on Lincoln and the Civil War era. This is the first in a two-part series.</description>
    <pubDate>Tue, 24 Jan 2006 07:00:00 EST</pubDate>
    <link>http://www.teachingamericanhistory.org/podcasts/</link>
    <guid>http://www.teachingamericanhistory.org/podcasts/mcpherson05-02-12session1.mp3</guid>
    <itunes:summary>Few other questions in American history have generated more controversy than "What Caused the Civil War?" That conflict preserved the United States as one nation, indivisible and abolished the institution of slavery that for more than four score years had made a mockery of American claims to stand as a republic of liberty, a beacon of freedom for oppressed peoples in the Old Word. But these achievements came at the great cost of more than 629,000 lives and vast destruction of property that left large parts of the South a wasteland. Could this terrible war have been avoided? Who was responsible for the events that led to war? Could the positive results of the war (Union and Freedom) have been achieved without war? How have participants in the war and historians answered these questions over the five generations since the war ended? James M. McPherson is the George Henry Davis '86 Professor of History at Princeton University and is widely acclaimed as the leading historian of the Civil War. He is the author of Battle Cry of Freedom: The Civil War Era, which won the Pulitzer Prize in history in 1989, as well as many other books on Lincoln and the Civil War era. This is the first in a two-part series.</itunes:summary>
    <itunes:explicit>no</itunes:explicit>
    <itunes:duration>01:41:33</itunes:duration>
    <itunes:keywords>James McPherson, Civil War, Teaching American History, Ashbrook Center, History, American History</itunes:keywords>
    <enclosure url="http://www.teachingamericanhistory.org/podcasts/mcpherson05-02-12session1.mp3" type="audio/mpeg"/>
    <itunes:category text="Education"/>
    </item>
    </channel>
    </rss>
    <END OF XML>
    I have double-checked and the image file is online.
    Any help would be greatly appreciated!
      Windows 2000  

    Artwork for the individual episodes that show during playback comes from an ID3 tag embedded inside the MP3 file - just like a regular song.

  • Losing Comments in Get Info

    Help!! I keep losing the comments I add to the Get Info window. I read in some thread that deleting .DS_Store files will cause this. I have tons of these files but no comments. How can I stop losing the comments or restore what's in the .DS_Store files?
    eMac   Mac OS X (10.3.9)  
    eMac    

    hi there kimberly--
    there is an enlightening commentary in this link. http://discussions.apple.com/thread.jspa?messageID=2741958&#2741958. it seems the data fork files are not the most reliable, and you cannot expect to count on them. however, you could give some of biovizier's suggestions a try. [ 8 ) ]

  • Wrong Art Work shows in iTunes but is correct in both "Get Info" and Internet Explorer

    I am using Window 7 ultimate; itunes 11.0.2.25.  I put album art on a song (right click, get info, artwork, delete anything there, add my artwork).   Now shows correct in "get info" (and also shows correct in Windows Explorer) ... but doesn't show correct in iTunes.   I have deleted and retried multiple times ... works for some song but does not work for MANY songs.  Suggestions?    Since it also shows correct in Windows Explorer not even sure how to change it manually outside of iTunes ..   it still show an OLD album cover (not even sure where it get is)

    I believe the album was only load for one of the tracks. This can happen if the album art was NOT from the Apple Store. Go into iTunes on your Mac and select the album in question. Click on each track and confirm art on the lower left hand corner. If it's blank, ctrl-click on the artwork to copy and paste it into the lower left hand corner. You can also select all tracks and paste the artwork into the lower left hand corner.
    Let us know if this works.

  • Spotlight Comments - questions, limits and opinions

    My wife and I are a little behind the curve. We updated our MacBook Pros, MacPro and PowerMac G5 to Leopard early this year in part due to the fact that my testing showed that Spotlight Comments are persistent on our home ethernet - If I put identifying comments in a file's Get Info > Spotlight Comments box while it is on my MacBook's Desktop, then move it to a "file server" (a shared drive on the PowerMac or MacPro), my wife can see and modify the Comment from her MacBook. The comments almost seem to be part of the file itself (yes, Francine, we know they really are not) unlike the volatile pre-X Finder Comments. We do not normally have any Windows machines on our network and when we do we certainly do not use one as a file server. We're pretty much vanilla Apple.
    Now, on to my questions:
    1 - if not in the file itself, where are the Spotlight Comments actually stored? If they're in a folder's .DS_Store files, then they would disappear if you nuke those files (like when trying to fix a folder that is not properly displaying its contents) and that has not been my experience. I know that you can use mdls in the Terminal to show the comment and the other useful stuff that appears in Get Info's More Info field, but can this data get separated from the file it is connected to, or is it in that mystical Resource Fork? I'm not a developer (JavaScript is about as much code as I can handle) so I don't need the gory details. I just want to know if we can nuke Comments by unintentionally deleting some invisible file.
    2 - What are the limits in Spotlight Comments? Are there any? How many characters will that field take? I am asking this since I have been trying to put info concerning an image into its Spotlight Comment field and once I close the Get Info window the Comment is gone. If I check with mdls in Terminal the image's kMDItemFinderComment field is not even created. I have been trimming off hunks of characters in the Comment and am now below 700 but it still won't take it (the file is not locked, I have full control of it, and it doesn't appear to matter what files' or folders' Comments field I try to paste it into). Is this limit documented anywhere, because I've been Googling for it all morning with no matches.
    3 - if not Spotlight Comments, then what? I see DefaultFolder has an option to write Comments as "OpenMeta Tags" but what little I could understand upon looking that up made it sound like they're Spotlight Comments that are embedded into the file itself - even files that do not normally have a spot for Comments. Putting the description in the filename is much easier in X than previously, but gets a bit unwieldy very quickly. Many (but not all) image formats can accept descriptions in things like EXIF, but doing so changes its Modification Date and screws up our sorting...
    4 - only tangentially related: how many years did it take for Apple to put in Safari a function that we made use of all the time in Netscape & IE in pre-X times: put the source URL of a download in the Comment field. Now why can't the Mozilla team put that in Firefox? It's not like I haven't posted that as a feature request multiple times...
    I know that file "tagging" is a hot topic and I do not expect a real solution here, but if someone can confirm that there is a character limit in a file's Spotlight Comment field and let us know where or if it's documented...
    Message was edited by: Notary Sojak

    UPDATE - apparently once a file's kMDItemFinderComment field is created (I got the Comment to stick once I was below 600 characters) it can take more characters. I jut replaced the successful 595 character comment with the full 735 character comment I had initially been unable to add and it is visible from all the Macs.

  • "Spotlight Comments" in Finder Get Info window doesn't accept Clipboard contents

    I wanted to paste caption and credit info from a NASA video download into the file's Spotlight Comments in the Get Info window. Done it in the past no problemo. Today it doesn't work.
    Tried pasting the copied web page content to TextEdit and converting to plain text, copy again, paste still a no-go. Tried typing in the Spotlight Comments window, that works ok. Looked at the contents of the Clipboard and the text appears there, labeled either as rtf or text depending on where the text was pasted from (web or TextEdit).
    Tried copying a couple of letters from the converted text, and they pasted ok into Spotlight Comments.
    Suggestions to make the Clipboard contents paste?
    Thanks.

    On further inspection, it appears that the contents of the old Comments field are carried forward into the Spotlight Comments field.

  • Paste clipboard's contents to selected file's Get Info (Spotlight) comments

    Hi,
    Could someone please help me in building an AppleScript that would paste the clipboard's current contents to the currently selected (in the Finder) file's Get Info (Spotlight) comments?
    I know this can be done with an Automator workflow or Folder Action, but prefer an AppleScript.
    Many thanks!

    The following script will add (a space and then the clipboard) to the comments of the currently selected file. In case there are several items selected it only deals with the first one, and there is also a dialog to edit the final content:
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">set TheClipboard to (get the clipboard)
    tell application "Finder" to try
    set TheFIle to the first item of (get the selection)
    set TheComment to the comment of TheFIle
    set TheName to text ((length of (path to home folder as text)) + 1) thru -1 of (TheFIle as text)
    if TheName ends with ":" then
    set TheType to " folder "
    else
    set TheType to " file "
    end if
    display dialog ("Change the comment for the" & TheType & return & quoted form of TheName & "?") with title "Edit Spotlight Comment" default answer (TheComment & space & TheClipboard)
    set comment of TheFIle to text returned of the result
    end try
    </pre>

  • Automator - get or display Spotlight Comments?

    I have a workflow to set [or append to] Spotlight Comments, but it would help to show the existing comments first.  How can I get an Automator workflow or application to display the Get Info windows for selected file[s]?  [Or get the comments and put into a variable.]    -Peter
    [Using Lion on a MacBook Air]

    You can use a Run AppleScript action to get the comment of an input item (e.g. from a selection or choose dialog), which can then be passed to a Set Value of Variable action (the Set Spotlight Comments for Finder Items action will accept a variable in its text field), for example:
    on run {input, parameters}
         tell application "Finder" to return comment of first item of input
    end run

  • I've cleared almost 30 gig off of my hard drive in the past 2 weeks, and it will temporarily show that in the Get Info box.  But hours later, I am still getting a disk full error and all of the memory has disappeared.

    I've cleared almost 30 gig off of my hard drive in the past 2 weeks, and it will temporarily show that in the Get Info box.  But hours later, I am still getting a disk full error and all of the memory has disappeared.  I have cleared my backup logs from Time Machine, checked the mail folder, cleaned out tons of photos and videos and it still keeps filling back up.
    In checking the log files, here is the message repeated over and over....
    Jul  4 07:18:13 Donald-Keele-Jrs-iMac-123.local CalendarAgent[213]: CoreData: error: (21) I/O error for database at /Users/donjr/Library/Calendars/Calendar Cache.  SQLite error code:21, 'unable to open database file'
    Jul  4 07:18:13 Donald-Keele-Jrs-iMac-123.local CalendarAgent[213]: Core Data: annotation: -executeRequest: encountered exception = I/O error for database at /Users/donjr/Library/Calendars/Calendar Cache.  SQLite error code:21, 'unable to open database file' with userInfo = {
                  NSFilePath = "/Users/donjr/Library/Calendars/Calendar Cache";
                  NSSQLiteErrorDomain = 21;
    Jul  4 07:18:14 Donald-Keele-Jrs-iMac-123.local cfprefsd[180]: CFPreferences: error creating file /Users/donjr/Library/Preferences/com.apple.iPhoto.plist.t3l894p: 28
    Jul  4 07:18:30 Donald-Keele-Jrs-iMac-123.local Printer Pro Desktop[275]: Empty task
    Jul  4 07:18:33 Donald-Keele-Jrs-iMac-123.local Microsoft Sync Services[8149]: [0x16697c0] |ISyncSession|Warning| com.microsoft.Entourage2008: transitioning to cancel - session cancelled by server: Client 'com.microsoft.Entourage2008' tried to start a session for the plan 45AD80C3-0D52-4CF2-8CBA-103564B6C47C and the plan no longer exists.
    Jul  4 07:18:33 Donald-Keele-Jrs-iMac-123.local Microsoft Sync Services[8149]: Warning: NSBundle NSBundle </Applications/Microsoft Office 2008/Office/Microsoft Sync Services.app/Contents/Resources/MicrosoftOfficeNotes.syncschema> (not yet loaded) was released too many times. For compatibility, it will not be deallocated, but this may change in the future. Set a breakpoint on __NSBundleOverreleased() to debug
    Jul  4 07:18:33 Donald-Keele-Jrs-iMac-123.local Microsoft Sync Services[8149]: Warning: NSBundle NSBundle </Users/donjr/Library/Sync Services/Schemas/MicrosoftOfficeNotes.syncschema> (not yet loaded) was released too many times. For compatibility, it will not be deallocated, but this may change in the future. Set a breakpoint on __NSBundleOverreleased() to debug
    Jul  4 07:18:45 Donald-Keele-Jrs-iMac-123 kernel[0]: (default pager): [KERNEL]: default_pager_backing_store_monitor - send LO_WAT_ALERT
    Jul  4 07:18:45 Donald-Keele-Jrs-iMac-123 kernel[0]: macx_swapoff SUCCESS
    Jul  4 07:19:31 Donald-Keele-Jrs-iMac-123.local Printer Pro Desktop[275]: Empty task
    Any ideas on what to do next?
    I'm running and iMac 20-inch  early 2009
    Processor  2.66 GHz Intel Core 2 Duo
    Memory  8 GB 1067 MHz DDR3
    Graphics  NVIDIA GeForce 9400 256 MB
    Software  OS X 10.8.4 (12E55)

    Step 1
    Quit Calendar. Triple-click the line below to select it:
    ~/Library/Calendars/Calendar Cache
    Right-click or control-click the highlighted line and select
    Services ▹ Reveal
    from the contextual menu. A Finder window should open with a file named "Calendar Cache" selected.
    Move the selected file to the Trash. There may be one or two other files in the same folder with names that begin in "Calendar Cache". If so, delete those files too.
    Step 2
    Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash as well:
    iPhoto ▹ Empty Trash
    Then reboot. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation. You also need enough space left over to allow for growth of your data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    To locate large files, you can use Spotlight. That method may not find large folders that contain a lot of small files.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) to explore your volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one.
    Deleting files inside an iPhoto or Aperture library will corrupt the library. Any changes to a photo library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    Install ODS in the Applications folder as usual. Quit it if it's running.
    Triple-click the line of text below to select it, then copy the selected text to the Clipboard (command-C):
    sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The application window will open, eventually showing all files in all folders. It may take some minutes for ODS to list all the files.
    I don't recommend that you make a habit of doing this. Don't delete anything while running ODS as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with ODS, quit it and also quit Terminal.

  • "more info" in Get Info showing "--" instead of actual infos for newer videos and images

    I've just noticed that when I click on "Get Info" on my newer pictures and videos, the "more info" section is now showing "--" instead of the dimensions of the images and videos. However when I go to my older files, the info is showing. Also if I search any of the newer files (those with the missing info) in Spotlight, it doesn't show up.  I've done some research and some people suggest reindexing Spotlight, but that never worked for me. In fact, even if I exclude a folder in my Privacy list, it's still showing as a result when I search them. I'm sure this is a problem with Spotlight as it stores the dimensions info, but since reindexing it is not a solution, can it be solved in some other way?

    It takes time on newer things, but might have to be opened first or something.
    If you want, you can clear the caches with OnyX (#12) and that would rebuild and repair the entire sub-system.
    ..Step by Step to fix your Mac
    Mac maintainence steps

  • Get info pane doesn't show appropriate "more info" info

    Hello. There's a problem on my "get info" pane, where normally there should be a "more info" column showing some information about "image size", "author", etc.
    But recently, for example, an image file's "more info" column doesn't show its dimension and other info, only showing "title" and "last opened". And other things are simply gone.
    Another example is MP3 files, normally there should be showing more metadata like "bitrate", "artist", "duration", etc. But now, it just shows the "title" and "last opened".
    This really bugs me because I normally used to look at some info about these things sometimes when I need to check it out when doing some picture works. So basically the main problem is "more info" doesn't show information that I needed and which it should be there, but somehow there's a problem on Mac OS X that makes it failed to show them all out.
    If anyone could tell me a way to fix it, I am very appreciated!! Thank you!!
    Here's the get info pane of both MP3 and JPEG files:
    http://cl.ly/txW
    http://cl.ly/oXv
    Message was edited by: dronex

    Generally when the "More Info" section is nearly empty it is because the file in question has not been indexed by Spotlight. As to WHY it hasn't, that is a whole 'nother question, which you may be able to answer. Perhaps you have it stored somewhere that is excluded in the Spotlight Privacy pane, or on a drive where Spotlight is disabled, or in a folder where you don't have proper permissions... and so on.
    Francine
    Francine
    Schwieder

  • Finder get info comments

    OK, I am always confused by Applescript's /natural/ syntax -- as opposed to any other script.
    All I would like to do -- at the shell, is to simply print the "get info" file comments and or have programmatic access from, say, Perl or Python. Can anybody guide or help solve this issue?
    Thank you for your help.
    David Green

    Thanks for the reply / effort James...
    After much research, I have finally found "mdls" -- a Apple shell program which outputs metadata.
    I suspect the mdls routine is far simpler and (possibly) more robust.
    I shall also follow a link which may show how to update comments from the shell -- if I wish too:
    http://discussions.apple.com/thread.jspa?messageID=1259996&#1259996
    Thanks again

Maybe you are looking for