Spotlight Comments Missing

Discussion in 'macOS' started by 7on, Jul 15, 2005.

  1. 7on macrumors 601

    7on

    Joined:
    Nov 9, 2003
    Location:
    Dress Rosa
    #1
    So I have this folder of clips i downloaded off the internet - trouble is they all lost their spotlight comments randomly - I do not know what happened. help...

    Now this is weird... the comments don't show up but if i search for the comment in spotlight all files suddenly are found...
     
  2. 7on thread starter macrumors 601

    7on

    Joined:
    Nov 9, 2003
    Location:
    Dress Rosa
    #2
    alright, using
    Code:
    (* This script will open any selected file/s in finder and do a shell 
       script "mdls" to get the metadata of the file/s, and display the result
       in a Texedit document for each file *)
    
    tell application "Finder"
    	set miTem to selection
    	repeat with i from 1 to number of items in miTem
    		set this_item to item i of miTem as string
    		set this_item to POSIX path of this_item
    		do shell script "mdls " & quoted form of this_item & " | open -f"
    		
    	end repeat
    end tell
    I was able to "see" the metadata of the file but not edit it
     

Share This Page