Spotlight comments and zip archives

There have been a few posts in this forum that point out the difficulties of using Spotlight with zip files but it is only now that I have discovered (the hard way) that zipping files into an archive actually removes (or loses) my Spotlight comments.
The Spotlight comments I lost were all on jpg and gif files. Should I therefore be considering storing metadata actually within each graphic file rather than using Spotlight?

The so-called "Spotlight Comments" in the GetInfo window are just the old Finder Comments, and are actually stored in the .DS_Store file of the folder containing the files. If you zip the folder with the files in it the comments will be preserved. However, it is just too easy to forget about this. You really want all your important metadata as part of the file itself, so if you have a graphics program that will add metadata information to the files that would be the best way to go.
Francine
Francine
Schwieder

Similar Messages

  • Raw Search Terms for "Spotlight Comment" and "Locked" Status

    Is it possible to do a raw search for a specific Spotlight Comment. I know the option exists in the Other… dialog box, but I need to find files that do not contain comments which is not choice.
    Also, is there any way to find only files that are unlocked?

    If you go to Others and select Raw Query you can use it find items with a specific comment, and items without any comment. For example, if you have the comment "testme" in the Spotlight field you would paste this into the Raw Query field:
    kMDItemFinderComment == "testme"
    and all files with that comment would be found. To find files in a folder that contain NO comment at all, you would use this:
    kMDItemFinderComment != "*"
    Be warned though: when I tried this on a folder with only 5 items in it, 4 with comments and one without. it worked, returning the lone uncommented file, but it took an amazingly long time to do so (perhaps a minute, while the search for "testme" was instantaneous).
    The "File readable" and "File writeable" functions shown in Others, which presumably are what one would use to find locked files, simply do not work. This is not surprising since the information about whether a file is locked or not does not in fact appear in a file's metadata. I guess that will be a future addition. You can use find in Terminal to search for files that are locked/unlocked. Let me know if you really want to do this.
    Francine
    Francine
    Schwieder

  • Smart Folders, Spotlight comments and Apple mail messages

    Hi,
    I have a simple question, but couldn't figure it out yet:
    I have a workflow that tags specific mail messages according to the specific mail inbox folders I assign them to (be it via incoming rules, or Act-On rules) by automatically adding specific Spotlight comments.
    My mail messages, therefore, have text in their comment boxes (if you check via GetInfo).
    When I use Spotlight, I can find mail messages by searching for the comments - this is exactly as expected.
    I however also have smart folders (searching for a specific Spotlight comment) that list other files that I tag with the same Spotlight comments - but my Smart Folders never find the mail messages with the requested tags (at most they find the folder that contains the messages if this folder is tagged - which it is generally not).
    Question: how can I make sure that the Smart Folder does indeed identify and list the mail messages that I have tagged via Spotlight comment ?
    Thanks a lot !
    D.V.
    iBook G4   Mac OS X (10.4.6)  

    Howdy,
    I cannot reproduce this problem myself...I see the same results in both the Mail spotlight and the spotlight menu bar item. I'm not sure if after installing 10.5 a new spotlight index is created, but it might be worth a shot to create a fresh index and see if that helps.
    I haven't tried this, but it was the easy way I could find to reindex.
    Open Spotlight Preferences
    In the privacy tab, add the volume you want to reindex
    After a few moments, remove that volume from the privacy list
    Allow Spotlight to reindex the volume
    Please let me know if that works for reindexing.
    +R

  • Spotlight comments and tags question

    Hi,
    It appears any spotlight comment I put on a file becomes a tag in the finder side-bar? Is there a way to stop this? Better still, is there a way to not have tags in the sidebar at all? I know you can "hide" tags, but I would rather not have it there at all.
    Thanks

    Sorry I meant remove the "all tags" option in the side bar.
    Cheers

  • Is it possible to export Spotlight Comments?  Please help.

    Hello,
    I have around 700 historic photos that have been digitized. All the photo details (dates, etc.) were entered into the Spotlight Comments field under Get Info. Unfortunately, none of the comments appear when I open the photos in Adobe Bridge CS4. Is there an easy solution to export the Spotlight Comments and use them elsewhere?
    Thank you,
    Brian

    I found this AppleScript on Google. I cannot vouch for it: I have never tried it and it is several years old. It appears to use GraphicConverter. But you can experiment with it, and see if it works for you.
    [http://forums.macosxhints.com/archive/index.php/t-76368.html]

  • Importing Spotlight Comments

    Hi Everyone,
    I have around 700 historic photos that have been digitized. All the photo details (dates, etc.) were entered into the Spotlight Comments field under Get Info. Unfortunately, none of the comments appear when I open the photos in Adobe Bridge CS4. I will now start using Bridge to add the metadata tags.  However, is there an easy solution (perhaps an Automator script) to export the Spotlight Comments and use them in Bridge?  I really don't want to retype the information, and I would be extremely grateful for any advice.
    Thank you,
    Brian

    You most probably require the help of script to do this. Better to ask your Question in that forum. Your Spotlight Comments belong to Finder both AppleScript & Shell can get access to these not too sure about JavaScript. JavaScript would be required to add this info to the correct files.

  • Automator for Exporting Spotlight Comments?

    Hello,
    I have around 700 historic photos that have been digitized. All the photo details (dates, etc.) were entered into the Spotlight Comments field under Get Info. Unfortunately, none of the comments appear when I open the photos in Adobe Bridge CS4. Is there an easy solution (perhaps an Automator script) to export the Spotlight Comments and use them elsewhere?
    Thank you,
    Brian

    Brian
    If I read you right, what you are trying to do is grab Finder metadata and convert it to photo metadata. Specifically, convert spotlight comments to Exif and IPTC - which is what a Photo app will need.
    You can't do this with Automator. The Automator dictionary has ways to set Spotlight Comments but I can see no way to get them. Further the dictionary has the ability to write to the IPTC data only of images in Aperture, not in the Finder or iPhoto.
    You might do better with that question on the Automator forum here:
    http://discussions.apple.com/forum.jspa?forumID=1261
    Have you tried the Applescript that was suggested when you posted the query last?
    As your target are file managed by Bridge, give the Adobe forums a go too.
    However, you may run into another issue here and that is that most scanners (as I presume this is how the photos were digitised) do not create Exif and IPTC data for scanned images. It may not be possible to do what you want to do.
    Regards
    TD

  • Spotlight comments not available?

    I've developed an internal website at work that uses PHP, MySQL, Applescript and PDF files to manage the workflow for print projects.
    The basic setup is that a user "publishes" a PDF from InDesign using an Applescript (which ensures the PDF is created with standard settings and file security) and the PDF is copied to the webserver into a folder for review. The applescript then puts the designer's name into the PDF's Spotlight comments.
    Someone reviews the project from a web-page, which looks in the folder and displays thumbnails of its contents. PHP runs an exec() to get the Spotlight comments, and displays the designer's name below the thumbnail, along with the date and time the PDF was "published".
    $PDFcomment = exec("osascript -e 'tell app \"Finder\" to get comment of POSIX file \"$projectsFile/$shortID/$dirShort.pdf\"'");
    The problem I'm running into is that this command is not consistently returning the Spotlight comment. Often the PHP webpage says it's empty, but when I go to the networked volume where these PDFs are stored and Get Info, I can see the correct comment.
    The comment will only appear if I use the Finder on the machine that houses the PDF and Get Info. Subsequent viewings of the PHP webpage then return the correct comment.
    How can I force the Finder to get the current Spotlight comment without having to manually check the file first?
    PowerMac G4   Mac OS X (10.4.5)  

    Running the password reset actually recreated the problem but that's ok because it helped lead me to the true cause and answer. Being a member of the wrong group can cause all sorts of annoying problems e.g. asking for authentication when deleting files, spotlight not indexing some files etc. Luckily this post http://www.macosxhints.com/article.php?story=200711291134001 had the answer. I'll sum it up here:
    I had a problem with spotlight not indexing some files especially spotlight comments. I'd tried deleting spotlight-V100 to re-index and many other things which did not work when all along it was a group membership problem.
    I had upgraded from Tiger to Leopard. The GUI tools in Leopard showed my primary group was staff and nothing looked wrong until I discovered the Unix commands thanks to your great script. I didn't run the script but it was very well commented so I knew what the commands did if I ran them in terminal.
    dscl . read /Groups/staff
    showed I wasn't in the group staff. (even though system preferences>accounts>advanced options said i was!)
    sudo dscl . append /Groups/staff GroupMembership $USER
    added me to group staff.
    sudo chgrp -R staff $HOME
    changes group ownership on all files in home to staff.
    sudo diskutil repairPermissions /
    repair disk permissions.
    Reboot.

  • Spotlight comments - max length?

    Is there a maximum number of characters that can be in a Spotlight comment entered in a Get Info window, or perhaps are there forbidden characters?
    I have a bunch of images that I've downloaded and pasted a description into the Spotlight comments. Now it's been several days and when I tried a search that yielded no results I realized that the Spotlight comments for these files are now empty.
    A search here yielded a similar problem where comments disappeared and the solution offered was to run in Terminal "mdimport -n (FILENAME)". This did nothing for our missing comments.
    Can anyone suggest what my be going on and hopefully a reasonable solution?
    Message was edited by: Notary Sojak

    Hello,
    Check this out: Organize files with Spotlight comments
    And here: http://www.russellbeattie.com/notebook/1008443.html
    Carolyn

  • How to copy a files spotlight comments for an entire folder and place them in a different file with that same name

    I have the same question in a different discussion but I already marked it as solved because one of the questions was answered. Here's the linke to the other discussion if your interested https://discussions.apple.com/thread/5970421 
    I have movie covers saved as a jpeg for every movie my family and I own. There is about 700 and they each have a comment of the main actors, release dates, and descriptions. This makes it easy to find what to watch.Is there an applescript, automator, program I can download,  or program code supported in xcode that will do the following set of inscructions?
    Take the name of the picture file and spotlight comment, copy and paste it to a movie file's comments to a file with the same name but obviously has different extention. For an example
    In a Pictures folder
    Name: Dark Knight, The.jpeg       Comment: (2008) Genre: Action...             <- copy comment
    In a Movie Folder
    Name: Dark Knight, The.m4v       Comment:                                               <- paste
    and do this for all 700 files

    Clendenen02 wrote:
    where should I run the code? in the terminal, or an applescript, or should put it in xcode and run it from there or the terminal.
    What MrHoffman said.
    But if it's easier, you can wrap it in Automator and have Automator ask for the Folders: (Test on a sample of your files before running on all 700 files)
    (do you really own 700 movies??)
    The Workflow is:
    Put this in the Run Shell Script Action (and pass input as arguments":
    PicDir=$1
    MovDir=$2
    for f in $PicDir/*
    do
         if [ ! -d "$f" -a "${f##*.}" = "jpeg" ]; then
              comment=$(mdls -raw -name kMDItemFinderComment "$f")
              if [[ $comment != "(null)" ]]; then
                   picname=${f##*/}
                   movname=${picname%.*}.m4v
                   if [[ -e "$MovDir"/$movname ]]; then
    osascript <<-EOF
    tell application "Finder"
    set comment of file (POSIX file "$MovDir/$movname") to  "$comment"
    end tell
    EOF
                   fi
              fi
         fi
    done
    (BTW, I know that this is a bit of sloppy scripting (wraping an osascript in a Bash Script wrapped in Automator, but it does what you need)

  • How to copy a files name and spotlight comments to a text file for an entire folder

    I have movie covers saved as a jpeg for every movie my family and I own. There is about 700 and they each have a comment of the main actors, release dates, and descriptions. This makes it easy to find what to watch. I want my parents to have all of this info but they have a windows laptop so the comments don't transfer with the file and can't be searched like you can on a mac. Is there an applescript, automator, program I can download,  or program code supported in xcode that will do at least one of the following things?
    1)Take the name of the picture file and spotlight comment, copy and paste it into a text document like word that looks like this...
    File Name1- Spotlight Comment for file 1
    File Name 2- Spotlight Comment for file 2
    . for all 700 files in a folder
    2) It would be equally helpful if there was something that would take the name of the picture file and spotlight comment, copy and paste it to a movie file's comments with the same name but obviously has different extention. For an example
    In a Pictures folder
    Name: Dark Knight, The.jpeg       Comment: (2008) Genre: Action...             <- copy comment
    In a Movie Folder
    Name: Dark Knight, The.m4v       Comment:                                               <- paste 
    and do this for all 700 files
    3) Is there a free photo program that works on mac and windows that I can put all my movie pictures in and have a description like I did with the comments? It would also need a place that to search the description for keywords. So Basically an itunes for pictures that works on both mac and windows. If so I still need a way to get the spotlight comments to the description.
    4) I feel like this would make things more difficult, but if not I can put all of the .m4v files in itunes so instead of pasting all the comments back into a file in finder paste them in a description in itunes
    5) At the very least a code that I can run one by one for every file that will paste the comments into the same document
    Note: When I say spotlight comments I mean the comment box that is available when you click on get info of a file. The pictures are in the pictures section of finder in a folder called Movie Pictures. The movie files are on an external hard-drive in a file called Movies. Also I am slightly familiar with applescript and automater in that I have used both to create keyboard shortcuts and simple voice commands. I have programmed in c++ and C too. So If you give me a code for applescript I do know what to do with it.
    Thanks to anyone who takes the time to read all of this and extra thanks to anyone who tries to help.

    Clendenen02 wrote:
    2) It would be equally helpful if there was something that would take the name of the picture file and spotlight comment, copy and paste it to a movie file's comments with the same name but obviously has different extention. For an example
    In a Pictures folder
    Name: Dark Knight, The.jpeg       Comment: (2008) Genre: Action...             <- copy comment
    In a Movie Folder
    Name: Dark Knight, The.m4v       Comment:                                               <- paste 
    and do this for all 700 files
    This Bash script will do it.
    Edit "PicDir" and "MovDir" to the location of your Folders
    (Note: The comment is written to the m4v file using xattr, so the Spotlight comment field appears blank in Finder, but the comment metadata is still indexed by Spotlight (If you add a Spotlight comment from Finder, it is stored both as an extended attribute and in a .DS_Store file)
    #!/bin/bash
    PicDir=$HOME/Desktop/Pictures
    MovDir=$HOME/Desktop/Movies
    for f in $PicDir/*
    do
         if [ ! -d "$f" -a "${f##*.}" == "jpeg" ]; then
              comment=$(mdls -raw -name kMDItemFinderComment "$f")
              if [[ $comment != "(null)" ]]; then
                   picname=${f##*/}
                   movname=${picname%.*}.m4v
                   if [ -e "$MovDir"/$movname ]; then
                         xattr -w com.apple.metadata:kMDItemFinderComment "\"$comment\"" "$MovDir"/$movname
                   fi
              fi
         fi
    done

  • I have an iPhone 5S and I can't open photos that are emailed to me. It just says zip archive when I click on the jpg. Help?

    I Have an iPhone 5S and I can't open photos that emailed to me. It just says Zip archive when I click on the JPG file to download it.  Help?

    whoever is emailing you the photos is sending them as a .zip file not a .jpg most likely because there is more than one photo. unfortunately iPhone does not have a .zip file reader so whoever is emailing the photos has to make sure they are not zip ing them and resend them as .jpg files. (usually gmail tries to convert several images into .zip files)

  • Drop files out of zip archiv and deliver?

    Is it possible to drop a special filetype (exe) or filenames out of an zip archiv? After deleting the unwanted "archiv-members", the archiv should be delivered.
    I need this requirement for specific recipients, not as a "global setting".

    While it is possible to drop an archive file if the contents contain a certain attribute ( .exe file, filename, etc... ), at this time I am not aware of any way to remove a *single* portion of that archive and deliver the rest of the contents.
    I would envision the difficulty would lie in re-assembling the archive correctly, so the recipient did not receive a "broken" file.
    -whardison

  • Archiving Options for BPEL Instances, Comments and Attachments.

    Hi
    We have a SOA11g BPEL and Human Tasks custom application running for past one and half year, and we have lot of instances completed in the BPEL flow.
    Are they any default options in SOA Suite where the instances get archived after specific period? If not what are the options to archive the Completed instance and respective Comments and Attachments. And to view them when required from the BPM worklist application.
    Thanks
    Kumar

    Hi,
    This somewhat date back to the way iChat's Saved Chats were once Stored.
    At iChat 5 (in Snow Leopard) you could choose to see the last chat - (when opening an new chat with a person you had chatted with before) or parts of the Last Chat in terms of the Last so many IMs.
    Example Pic of iChat 5's Prefs
    Since then the management choices of the Save Chats has changed in both iChat 6 and Messages.
    Messages stores Chats two ways if they are iMessages.
    You can elect to Save them in Messages > Preferences > Messages.
    It also store the chat.db and other databases items which includes the Attachment items
    The chat.db is the bit that fill in the "history" if you iMessage the same person even if you are not saving the Chat in a formal sense in the App's Preferences.
    This is irrespective if your delete the Conversation from the Messages main window.
    How big these Databases get obviously depends on your iMessages usage.
    Striker's link seems to be about a similar issue on an iPhone (I presume it transfers to other iOS devices) but I am not sure that it is relevant in this situation.
    Edit.
    I should have been clear that you cannot change the database behaviour.
    9:49 pm      Sunday; October 6, 2013
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.4)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously
    Message was edited by: Ralph Johns (UK)

  • File Info window and Spotlight comments

    I typed somme comments in File Info Window, box titled Spotlight comments.
    All these comments are gone after System restart (Snow Leopard 10.6.8) and I am unable to read them again. But STRANGE... when I do a Spotlight research with one word I typed in Spotlight comments, the file name is displayed and I can open its Info Window, but no luck the Spotlight comments are still empty.
    The chain I typed are still there in the file info but hidden to my eyes, is there a mean to retrieve these comments?
    Best regards and thanks, please excuse me language as I'm wrting from France.
    JfS

    I typed somme comments in File Info Window, box titled Spotlight comments.
    All these comments are gone after System restart (Snow Leopard 10.6.8) and I am unable to read them again. But STRANGE... when I do a Spotlight research with one word I typed in Spotlight comments, the file name is displayed and I can open its Info Window, but no luck the Spotlight comments are still empty.
    The chain I typed are still there in the file info but hidden to my eyes, is there a mean to retrieve these comments?
    Best regards and thanks, please excuse me language as I'm wrting from France.
    JfS

Maybe you are looking for

  • Get the values that an user write in textbox with typed_context

    Thanks for your time I want to verificate, the values (product configuration) that an user have introduced, I have written this code to get the values and verificate this.   DATA:       lr_info   TYPE REF TO cl_crm_bol_entity.   lr_info ?= ME->typed_

  • Printing from Outlook 2011 stopped working

    I am helping a friend who uses Microsoft Office 2011 on an iMac running 10.7.2. He is suddenly unable to print from Outlook. Choosing Print... from the File menu or clicking a print button produces no result at all - the normal print dialogue box doe

  • CE7.1 portal and Portal 7.0 difference

    Hi, I am trying to search on the diff between portal that comes with CE7.1 and Portal 7.0. What comes in EP Core? KMC? Please help, Alpana

  • A verry weird problem!!

    could someone please have a look here... the problem is, the contact us page... it works fine by its self, even when its loaded into a movieClipLoader... but whe it opens from the site it doesnt display the Imput Text... I thought it was because of t

  • How can I change Dreamweaver editor backgrounds in CS5.5

    I've recently upgraded from DW8 and have two small problems with the user interface. 1) I can't easily read the inactive document tabs on the documents bar (or whatever it is called) because the text is black and the background is dark gray.  Is ther