Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Spotlight: Comments Problem

Spotlight: Comments Problem
Thread Tools
Forum Regular
Join Date: Sep 2003
Location: Chester, UK
Status: Offline
Reply With Quote
May 19, 2005, 05:49 AM
 
Running OS X 10.4.0 when this happened, then updated to 10.4.1 after.

So, I decided to make an automator plug-in to insert a comment into some certain files and folders. The comment was E3-2005-Nintendo, the plug-in worked fine for the first few days, searching for this comment brought up about 60 results. However after running the plug-in from the desktop, searching for E3-2005-Nintendo brings up 2000+ files and folders that are totaly irrelevant, these files don't even have the comment in them, nor any of those keywords in the title.

Can anyone tell me what I've done wrong, or how to fix it as it is rather annoying that searching for the word Nintendo now brings up 2000+ irrelevant files and folders.

Thanks in advance, if you need any more info just shout, but please help me
(The dark lord has risen again......Beware)
     
Addicted to MacNN
Join Date: Aug 2004
Location: FFM
Status: Offline
Reply With Quote
May 19, 2005, 06:39 AM
 
In the Terminal type mdls and a space. Then drag one of the false positve files into the Terminal and press return. You will be shown which metadata has been recorded for the file. That might give you a hint why Spotlight finds the file and what went wrong.
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
May 19, 2005, 06:58 AM
 
Hmm - odd, I see what you mean:

I only have one file with a spotlight comment of nintentdo - just as a test:



Cool that it found those ROMs - but it's not what I asked for.

Perhaps you have to write a raw query to get *just* files with a spotlight comment of 'nintendo'...

[edit] - ah - I see. The authors of the ROMs had put comments in the files - that automatically became a "spotlight comment" .

Code:
kMDItemFinderComment = "Name: Fire Demo by Lac Country: Public Domain System: Nintendo 64"
Perhaps if you want to use comments as tags - you should preface them with a special character - e.g. @
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
May 19, 2005, 07:04 AM
 
also - you might like this widget:

http://www.terhech.de/tag/
     
Forum Regular
Join Date: Sep 2003
Location: Chester, UK
Status: Offline
Reply With Quote
May 19, 2005, 07:15 AM
 
Well I've managed to fix the problem.

However, I am still perplexed as to why this happened, I fixed the problem by changing the plug-in to insert a blank comment over the top of the original. However it should still not be changing almost all the files on the computer, I'll show you what I mean;



As you can see, the plug-in should only add to those folders and what is in them, not anything that is outside them, correct?

So why it is adding comments to other files is beyond me.

Any ideas?
(The dark lord has risen again......Beware)
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:15 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2