Collections in finder, quick add to spotlight comments

I'm wanting to optimize the way I'm using spotlight, and know that there's a field for spotlight comments when you select and item in finder and command-i... I'm wondering if there's a keyboard shortcut that can let me add spotlight comments directly, or is there a Quicksilver plug-in that might let me do that?
Also, within spotlight is there a way to configure it so that the first (or only) items to come up are the ones that I've added the relevant spotlight comments to?
Basically what I'm wanting to do is to add the metadata that would effectively make collections like in Yojimbo or Notemind... I love Yojimbo's idea, but I don't want a separate database for all my yojimbo collections... I don't want to be bound to Yojimbo and don't want it always running in the background... the finder is already a fabulous database, and between QS and spotlight you can do a million more things than Yojimbo can let me do... so I would love to get this "collections" effect inside finder without making a million aliases for my files...
Any suggestions?

Let me start with the "easy" question first: the .DS_Store files are where "Finder information" is stored. Windows users find these things a pain in neck, and usually insist they be deleted. Most of time this isn't a problem, the Mac users just get annoyed when their folder doesn't open the way it was when last closed--the principle information stored there is the view the folder was told to keep, the size of the icons and their arrangement, and so on. Every time you open a folder a .DS_Store file created if one does not already exist, and if one does the file will be updated if you change your settings for the folder, for instance switch it to List view, tell it to always open in List view, with columns for Date Modified, Size, but not Kind or Date Created. And it also keeps the information entered in Spotlight Comments. Just how Finder preserves this information if a file is moved, in Mac OS, to another folder, I don't know. But it does.
What we REALLY need is a nice little program to write to the metadata of the file. For instance, Spotlight will index keywords, which are stored in the file itself, as part of the file's metadata. I mainly work with graphics, and Photoshop allows you to add keywords to the file's metadata. Apple's iPhoto and Aperture will also add keywords, but they are not written to a file's metadata until you export them. PDFs can also have keywords assigned, you can even do it with Preview. Text documents can also have keywords added using some (most?) text editors, including TextEdit (provided the file is in RTF format). The nice thing about keyword metadata is that it goes with the file, and be accessed in any OS that allows a metadata search.
Unfortunately I don't know of any program that would allow you to select a batch of miscellaneous files and add the same keyword to all of them. It would certainly be handy though.
Francine
Francine
Schwieder

Similar Messages

  • Spotlight/Finder only searching "new" spotlight comments not old ones

    I have a bunch of files on my external hard drive that I had taken several hours to "tag" with spotlight comments a few months back. I tagged them so I could quickly find them in Finder or Spotlight by different key words and not just file names or their contents (folders wouldn't work because the keywords overlapped many of the files. Plus folders are slow). It worked beautifully. Until I stopped adding tags for those 4 months until now.
    I hadn't been using my comments at all in the past couple of months, but i had some files that I hadn't tagged so I decided to take the time to tag all the new ones. While testing to see if the comments worked, I noticed an extreme shortage of results, compared to the results i had for the same key words 4 months ago. I noticed that only the newly tagged files were showing up. I immediately checked the old files to see if the comments were still there and there they were. I restarted my MacBook Pro, thinking that maybe it was because I hadn't done so in the past few days. I noticed the little dot in the lens of they eyeglass and thought "oh boy! it'll reindex everything!" but it only indexed "new" files of course.
    So my question is: "*How did this happen?*" But more importantly: "*+How can I fix it?+*"
    I've thought that forcing spotlight to reindex my entire external hard drive would do the trick, but I cannot find any means to achieve that goal. Plus, I would rather just be able to index the files within one folder as I wouldn't have to wait an entire day of sluggish performance for that. Any ideas?

    Let me start with the "easy" question first: the .DS_Store files are where "Finder information" is stored. Windows users find these things a pain in neck, and usually insist they be deleted. Most of time this isn't a problem, the Mac users just get annoyed when their folder doesn't open the way it was when last closed--the principle information stored there is the view the folder was told to keep, the size of the icons and their arrangement, and so on. Every time you open a folder a .DS_Store file created if one does not already exist, and if one does the file will be updated if you change your settings for the folder, for instance switch it to List view, tell it to always open in List view, with columns for Date Modified, Size, but not Kind or Date Created. And it also keeps the information entered in Spotlight Comments. Just how Finder preserves this information if a file is moved, in Mac OS, to another folder, I don't know. But it does.
    What we REALLY need is a nice little program to write to the metadata of the file. For instance, Spotlight will index keywords, which are stored in the file itself, as part of the file's metadata. I mainly work with graphics, and Photoshop allows you to add keywords to the file's metadata. Apple's iPhoto and Aperture will also add keywords, but they are not written to a file's metadata until you export them. PDFs can also have keywords assigned, you can even do it with Preview. Text documents can also have keywords added using some (most?) text editors, including TextEdit (provided the file is in RTF format). The nice thing about keyword metadata is that it goes with the file, and be accessed in any OS that allows a metadata search.
    Unfortunately I don't know of any program that would allow you to select a batch of miscellaneous files and add the same keyword to all of them. It would certainly be handy though.
    Francine
    Francine
    Schwieder

  • Can't add/edit Spotlight Comments in Apple default apps

    I can't add text to the Spotlight Comments field (via Get Info) in Apple's apps installed by default. The computer just beeps when I try to type something. However, I have no such problem with 3rd party apps.
    Is this a bug or is there something I have to do to allow Spotlight Comments?
    The permissions on all Apple apps installed by Snow Leopard are "system: "Read & Write," "wheel: Read only," and "everyone: Read only."
    Thanks.
    Message was edited by: Gunny Sack

    Someone else noted that and I tried a few and couldn't edit them, even after giving myself write permissions. It might be tied to some form of code signing/protection.

  • Search by Finder "Color Label" or "Spotlight Comments"?

    Is it possible to do a search of referenced images by either their Finder Color Label, or their Spotlight Comments in Aperture?
    I suspect not, but thought I'd ask just in case I'm missing something..
    Would anyone else find this capability useful?
    G5 2x2.5Ghz/2.5GB; 15" 1.25Mhz PowerBook/1GB; 4x3.0Ghz Mac Pro/4GB   Mac OS X (10.4.1)  

    heh.. so I'm guessing that's a "No", "no", and "NO".
    Oh well.. guess I'll submit some feedback then.

  • Batch Renaming loses Spotlight Comments, Os X to blame?

    I posted this over at the Adobe forum for Bridge, however, I'm going to post it here too because part of me feels like this issue I'm experiencing is tied to a recent Os update: from Leopard to Snow Leopard.
    I'm a photo editor for a wedding photographer and have been implementing some of my own personal workflows into his pipeline. I tend NOT to rename camera-generated files, at all, unless there's an important reason to do so. Sorting an entire wedding by "Date" works perfectly for building the proper timeline for a shoot. So camera-generated file names are perfectly okay for our needs.
    When an edit is complete I'll generate JPEGs from Aperture. The resulting files will continue to carry the original RAW files names, unless there is a duplicate file name, then Aperture will add a number: "(1)" to the file, if necessary. Typically, after export, I run an Automator action that stores the file name in the Spotlight Comments. Because prior to shipping and archiving, I AM going to rename the final JPEGs sequentially: 0001_wedding, 0002_wedding, etc.
    The beauty was that with the original name stored in the Spotlight comments for the JPEG, I would easily look at 0148_wedding.jpg, see that it's spotlight comments said, "Original Name: IMG_3471" and obviously know exactly what RAW image this new JPEG started as. Worked perfectly.
    So process was: Export, Store Original Name in Spotlight Comments of JPEGs, Batch Rename (sequentially) based on date modified in Bridge CS4.
    Well now everthing's changed. We had a system drive go down. We were running 10.5.8. When the system came back from the shop, with a new drive installed, it was/is running Snow Leopard. 10.6.3? I think. Snow Leopard, no doubt.
    And now my prior workflow has been wrecked because the act of renaming, in Bridge CS4, erases all those handy Spotlight comments. However, part of me is wondering though if this issue is rooted more deeply, at the OS level? Because R-Name (Batch renaming utility) is now eradicating Spotlight comments as is an Automator action built for the same purposes. This all used to work perfectly. And the one major change that has occurred was this "upgrade" from Leopard to Snow Leopard.
    So, question is: is there something I can alter in Bridge Preferences to maintain my Spotlight Comments, when batch renaming? Is this all tied to the Snow Leopard? Is there ANY renaming utility that's not going to fall victim to whatever the hang up here is?? How can I batch rename and not destroy my lovely Spotlight Comments in the process?
    Thanks for your time!!

    Yes, this works. However, this was already part of my workflow.... and not where the trouble lies.
    After exporting jpeg images from Aperture, they carry the same name of the original RAW files, from which they came. (So, IMG_8342.jpg would have started it's life as IMG_8342.CR2.) But we dont' send them out like that. We sequentially name them 0001_image.jpg, 0002_image.jpg, etc... So after renaming, how do you find the original file again, right?
    BEFORE the renaming phase, I would run the "Store Original Names in Spotlight Comments" action. That way, I could look at the comments for a derivative .jpg—whose name has now changed—and determine the name of the ORIGINAL file.
    After renaming, the derivative file might end up being named 0361_image.jpg, but it's Spotlight comments would say, for example, Original Name:<<IMG_8485.jpg>>. Then I would know that this particular file started off as IMG_8485.CR2.
    As such, I could quickly/easily backtrack, knowing that the original RAW file was named IMG_8485.CR2
    The issue is that once you've gone thru the effort to ADD these spotlight comments, if you THEN go through a re-naming step, this erases all those Spotlight Comments. That was my problem... Getting the Spotlight Comments in place was never the issue. KEEPING them there was the problem.

  • 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

  • Automator doubling my Spotlight comment text

    I made a simple workflow to add text to the Spotlight comments field using "Get Selected Finder Items" and "Set Spotlight Comments for Finder Items" but when I use it, the text I enter is entered twice in the Spotlight field. What am I doing wrong here or is this a bug?
    Thanks,
    Edward

    Are those the only actions in the workflow? If you are doing something like using this as a Service, the workflow is automatically passed the selected items, so adding another action to get the selection will double up the items.
    Also note that this is the Tiger Automator forum - Automator in *Snow Leopard* is quite a bit different, so future questions should be posted in the Snow Leopard forum.

  • Spotlight comment via command line?

    Hi all
    Anyone knows whether it is possible to add a spotlight comment to a file/folder with a shell command? And if it is, what this command is? I tried GetFileInfo to at least read a spotlight comment, but it didn't show it.
    Tina

    "Finder" comments aren't very reliable so it probably is best to avoid them for anything important if possible. They aren't actually a part of the file, and in the case of "OS X", they are stored in the ".DS_Store" files of the folder in which the file resides. The ".DS_Store" files aren't always updated in a timely manner and if anything disrupts the association between the file and the ".DS_Store" file containing that file's comments, the comment may be lost. For example, most command line methods of copying or moving files will not transfer the "comment" unless the whole folder is processed together. There is even some ambiguity, where moving a file with 'mv' updates the Spotlight database so that it appears as if the comment moved along with the file, when in fact it hasn't.
    Anyway, regarding the original question, the only way I know of to add a comment via the command line is indirectly - i.e. using 'osascript' to get AppleScript to tell the "Finder" to do it. This obviously isn't ideal since a user with sufficient privileges to modify the ".DS_Store" file associated with the item has to be logged in and the "Finder" has to be running. eg.<pre>
    osascript -e 'tell application "Finder" to set comment of (choose file) to "blah"'</pre>

  • Spotlight's blind spot: Spotlight comments on Disk Utility disk images.

    Has anyone but me noticed that Spotlight goes blind to Spotlight Comments once the files are moved into a 256-bit encrypted read/write disck image created with Disk Utility? I don't have iPhoto, and I keep photos in too many categories for that anyway. I keep all my keywords in Spotlight comments in Finder attached to each file and create "albums" on the fly with Spotlight searches.
    But as soon as I moved the whole mess into a read/write 256-bit encrypted disk image created with "from folder" in Disk Utility....I can still see all the comments in Finder GetInfo, but Spotlight can't. I even tried adding comments to the search field list and it still sees nothing, not even when the disk image is mounted and visible in my Finder window sidebar.
    What am I missing?

    Yes, I search while the drive is mounted.
    Yes, I can drag it into and out of Spotlight's Privacy Pref's Pane. While it's in there the entire drive obviously disappears from Spotlight's searches. Once I - it from the exclude list it returns to seeing folder names only, but still finds nothing based on Spotlight Comments.
    I'm starting to think Apple left that bit of code out. Anybody know how to put it back in?

  • Spotlight comments have vanished since Lion

    I'm astonished to find that all my Spotlight comments are missing since I upgraded to Lion. For example I have a folder called Published pdfs and the spotlight comment for each file was the name of the periodical in which it appeared. All gone. Anybody have any idea what's going on? Any similar experiences? Thanks.

    OK. The easiest way is to use the TAB key to automatically expand the file path or to use quotes
    Click on the file you want and do Command-I to see its path.
    For example
    /Users/rshs/Documents/My File.txt
    You can do a couple of things:
    $ cd "/Users/rshs/Documents/"    (you can copy straight out of the Get Info; cd = change directory)
    $ mdls M [hit the TAB key  so that it expands] etc.
    Or you can just do it from the beginning using the TAB key
    $ mdls /Us[TAB]r[TAB]d[TAB]
    etc.
    Don't type the $,
    You'll see what I mean about the tab when you try it.
    If your file name has a space, you'll need to do \ then a space, but usually the TAB key will take care of it anyway. If you get a beep, you need to type a couple of extra letters:
    cat
    coat
    c[TAB] won't do anything but ca[TAB] will expand to cat
    You can TAB to expand the commands such as
    mdls
    but you'll usually need to type the first 2 or 3 letters.

  • Add Spotlight Comment from file?

    As I understand the way the *Add Spotlight Comments* works, the input is the file (or set of files) to be modified, and the added comments can either come statically from the workflow, or as user input if the workflow permits *Show Action When Run*.
    I have a moderately ugly shell script that downloads and examines a succession of files and builds a description (just a few dozen words) that I want to add automatically to those comments. At the end of my script, I've downloaded the file, and stored the comments I want in a separate temp file.
    As far as I can see, Automator can't do this: I can't specify a file as the incoming source of those new Spotlight Comments, can I?
    Assuming the answer is negative, two quick non-Automator followups:
    1) Is there any shell-script level Unix command that can manipulate the comments (without trying to hack into the .DS_Store files, that is).
    2) Can Applescript do this? And, crucially, where's the best current help for Applescript for someone that hasn't touched it in many years?

    Automator can do it, although some of the actions may not be obvious. Text (for example, the results of your ugly shell script) can be placed into a variable for later use, but you can also get it from a file. If your description/comment is in a plain text file, you can use the Combine Text Files action to get the text, then place it in a variable that can be used with the Set Spotlight Comments for Finder Items action.
    Example:
    1) Get Specified Finder Items (add your description file) (ignore input)
    2) Combine Text Files
    3) Set Value of Variable {Variable: whatever}
    4) Get Specified Finder Items (add the file you want to comment) (ignore input)
    5) Set Spotlight Comments for Finder Items {drag variable whatever to the text field, Append to existing comments}

  • Problem with add Spotlight Comments script.

    Hello,
    I am trying to add Spotlight Comments to some files using Automator. I have made an very simple script in Automator that add Spotlight Comments to the files that I have selected in Finder. I save this script as an app and it work great. I also save the same script but not as an app but as a service. The problem here is that when I run the service it add the same Spotlight Comment two times. For example, if I add "@Webshots" with the app the Spotlight Comments of the files is "@Webshots" but when I do it with the service the Spotlight Comments of the files is "@Webshots" "@Webshots". Can anybody help me with this? I will appreciate it a lot any help that you could give me. Thanks

    I suspect your workflow includes 'get select finder items' as the first action. get rid of it. it's redundant in a service that accepts files and folder in finder. that's why everything happens twice.

  • Ask for Text for Set Spotlight Comments for Finder Items

    I want the text from the "Ask for Text" to go in to the "Set Spotlight Comments for Finder Items" action, but they don't seem to interact.
    Any ideas?

    first you make a new variable using variables tab. then you add the action "set value of variable" right after the action ask for text. drag the variable you made to the variable field of that action. this will set the value of that variable to the output of the previous action.

  • Find files that has no Spotlight Comments!

    Hi,
    Is there a way to create a Smart Folder to collect all the files that have no Spotlight Comments attached to them?
    Do Comments get copied when backing up to an external device? If not, is there a best practice?
    Regards,
    Nawaf
    MacBook 13" 2Ghz 2GB   Mac OS X (10.4.9)  

    Thanks Steve
    This is the disadvantage of storing your files as referenced. Importing all referenced files is not the best solution for me, since I have a lot (100.000+) files.
    However, I just realized that you have to open all stacks in order to have Aperture show the right number of photos in the database. I found that I only missed 3 files and I did find them.
    Problem solved. Advise to others: be very structured when you store your files as referenced files.
    In future releases of Aperture there could be a function that would allow you to import files from folders that are not already inported.
    Aperture rocks.... sorting and filtering is great. Metadata management is sweet and makes things so much more easy.
    Karsten

  • Spotlight does not find Spotlight Comments

    i've made a script on our server that makes use use of the Spotlight Comments. But when I give some files these comments and I run the script it doesn't find the documents. Also when I type it manualy in the Spotlight bar it doesn't find the files. I've tried it on serveral other macs and there it does work.
    Can anybody help me? Thanks!

    Leopold:
    Welcome to the Apple Discussions. Are you sure the external HD has been indexed by Spotlight? If you're not sure you can use Spotlightindexer to force Spotlight to index that volume. You can find the app thru VersionTracker.com.

Maybe you are looking for