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

Similar Messages

  • 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>

  • Selection text's max length 30 but its not going beyond 28

    selection text's max length 30 but its not going beyond 28 while its 30 in other fields.

    Hi Yogesh,
    Yes Selection texts have limitations . You can use text elements for your selection paramater and it can acomadate up to 132CH:
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(48) TEXT-005.
    SELECTION-SCREEN POSITION 49.
    SELECT-OPTIONS : S_SAKNR FOR BSIK-SAKNR .
    SELECTION-SCREEN END OF LINE.
    Lanka

  • 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)

  • 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

  • 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]

  • 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

  • How to set max length for TextField ?

    how do i go about setting a max length for a TextField in jdk1.1.8 ?
    a while back there was a topic on this but it was for jdk1.0
    please help

    well if it works in 1.0 it will most likely also work in 1.1.8 if it is depricated you can use the -deprication option during compilation to see what is derpricated and what method i advised to use now.
    there may however be an easyer way in 1.1.8 but i don't know that.
    hope this helps you,
    Robert

  • 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.

  • "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.

  • Zero fill and max length VC7 Compile to WebDynpro not working

    Hi,
    i try to call Customer get list and set the attributes zero fill and max length to the input table form.
    But the user has to put in the exact length and zero filled.
    Any idea what to do
    Thanks
    Uwe

    Hi Uwe,
    if I understand your question you need something like an alpha conversion.
    You can use a formula, therefore is an textfunction called LPAD(text,len,pad).
    You can use it like this:
    LPAD(@yourtext, 18, "0")
    @yourtext contains the input, the length is 18 and filling values is 0 like a alpha conversion.
    Best Regards,
    Marcel

  • Setting max length of the field when using Context Model Node

    I have created a model using Import Adaptive Web Service model option (a web service was a wrapper around SAP BAPI function module).
    There were no dictionary types created in the Local dictionary as a result of import.
    I have mapped the context of the controller to the model node.
    One of the fields in the model is name     CUSTOMER_NUMBER type string;
    Corresponding element in the wsdl of the web service is
    <xsd:element name="CUSTOMER_NUMBER" type="tns:char10" />
    I have created a view with the input filed mapped to the CUSTOMER_NUMBER field of the model node.
    When I type more than 10 chars into the field and hit the search button, I get a com.sap.dictionary.runtime.Ddcheck exception that the length of the field should be less than 10 chars.
    How can I set the max length of the field in design time to prevent runtime exception?
    Thanks,
    Julia

    Thank you for your reply.
    Java trim function will trim the white spaces only, not the characters.
    I can code check length functionality before calling execute function (the function that call the web service).
    I can also create a dictionary structure based on the model structure; create a context value node based on the dictionary structure and use WDCopyService API to move the data between value node and model node.
    I was looking for the best practice...
    When importing model based on Adaptive RFC, the dictionary structures are imported together with the model. This does not happen for Adaptive web service - hence there is a need to add coding for simple checks.
    Julia

  • 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.

Maybe you are looking for

  • HT2534 "none" does not appear as a credit card option?

    I follow the instructions on setting up an iTunes account without a credit card (so I can download album art) but the "none" does not appear as a card option after following the instruction to first download a free app.

  • Mountain Lion and CS4?

    Does OS X Mountain Lion support Adobe Creative Suite CS4 programs?

  • I am royally PO'ed

    I have had to do a few restores to my ipod because my computer keeps crashing and my father keeps playing around with the computer. I deleted the TV shows that I had had on my ipod because there was an issue with 'the required file could not be found

  • Dimension Lock Problem

    Hello experts, I've a dimension lock issue. One of my Dimensions in the Appset is locked by a user. Hence i'm unable to maintain Dimension members as it is in locked state. However the user have logged into the Appset and tried to maintain the dimens

  • Issues with Speed Ramps in Premiere CC

    Hey all, I opened a project that I copied from one drive to another and got this issue on some clips: In the past, I've seen this happen on clips that were, say, 60fps and then being interpreted at 24fps. In this case, the original is 23.976, with on