Page 1 of 1

hazel remaing

PostPosted: Thu Jul 19, 2012 11:54 am
by kvora
I scan a document and have Acrobat do OCR and I save it in Action folder.
Then I have told Hazel to watch that folder and whatever comes to rename and move.
I told Hazel to rename Year-Month date and rename based on Spotlight comment.
I write one word Spotlight comment in Default folder X

Hazel uses old file names to add to my comment. So new names keep on getting longer and longer.
How can I set Hazel so it just names it based on single word Spotlight comment
Please see the link below, Here I wrote one word Elinchrome
https://skitch.com/kvora/e8sw6/spotlight-comments
In the link below the name Hazel gave has all the different names Iused last week
https://skitch.com/kvora/e8su9/all-scanned

Re: hazel remaing

PostPosted: Thu Jul 19, 2012 2:31 pm
by Mr_Noodle
I think the problem is that the newly named file still matches the rule so it gets renamed again and again. You need to add something to make sure renamed files no longer match the rule. You can either color the file and add a condition to filter those files out. Or you can do a pattern match to filter out the renamed files.

Re: hazel renaming

PostPosted: Fri Jul 20, 2012 5:52 am
by kvora
Thank you
I think you have the solution.
However I did not quite get your solution
Can you please explain both alternatives slowly
What do you mean when you say " add a condition to filter those files out" Filter what out?
How do I do "pattern match to filter out the renamed files"?
Sorry to be a little dense

Re: hazel remaing

PostPosted: Fri Jul 20, 2012 2:48 pm
by Mr_Noodle
Your rule is matching some files and then renaming them, then matching those renamed files again. You need to add an extra condition to that rule so it doesn't match the renamed files.

With the first solution, add a condition like "color label is not green" and then add an action "set color label to green". That way, when the rule is done the file is now green and the condition will no longer match it.

The other solution depends on how you are renaming it. Add a condition like "name does not match..." with a pattern that matches the output of the rename action in the same rule. Again, after the file is renamed, the condition will cause it not to match after that.

Re: hazel remaing

PostPosted: Sat Jul 21, 2012 7:26 am
by kvora
Mr. Noodle
I appreciate your help so please stay with me.
I have been trying to use Hazel as popularized by David Spark's book "Paperless"
Both these solutions had hiccup
Color label
please see http://www.myapplephoto.com/filechute/S ... rences.jpg
then I scanned a page and spotlight comment I gave was 'Master'.
Here is the result
http://www.myapplephoto.com/filechute/A ... nned-1.jpg
It obviously still remembered all previous names

Second solution
When I say 'Name does not match' my choices are not patterns like 'date created' and 'spotlight comment'
see
http://www.myapplephoto.com/filechute/S ... nces-1.jpg

I tried name does not start with 2012 but the end result was shorter but still picked up a few
http://www.myapplephoto.com/filechute/A ... nned-2.jpg

So I am close but no cigar yet

Re: hazel remaing

PostPosted: Sat Jul 21, 2012 8:27 pm
by a_freyer
kvora wrote:Mr. Noodle
I appreciate your help so please stay with me.
I have been trying to use Hazel as popularized by David Spark's book "Paperless"
Both these solutions had hiccup
Color label
please see http://www.myapplephoto.com/filechute/S ... rences.jpg
then I scanned a page and spotlight comment I gave was 'Master'.
Here is the result
http://www.myapplephoto.com/filechute/A ... nned-1.jpg
It obviously still remembered all previous names

Second solution
When I say 'Name does not match' my choices are not patterns like 'date created' and 'spotlight comment'
see
http://www.myapplephoto.com/filechute/S ... nces-1.jpg

I tried name does not start with 2012 but the end result was shorter but still picked up a few
http://www.myapplephoto.com/filechute/A ... nned-2.jpg

So I am close but no cigar yet



Your last screenshots show that you're trying to match the NAME of the file. Change that to "Spotlight Comments" and then select "Match":

Image

Re: hazel renaming

PostPosted: Sun Jul 22, 2012 7:39 am
by kvora
The problem is not in the first half, Hazel 'does find' the file, the problem is in the second half of the script. Once Hazel identifies the file we are telling it to rename with date and Spotlight comment but Hazel is pulling old comments and adding it to rename.
May be the issue is in Spotlight and that seems to be remembering old comments and appending it.
Help

Re: hazel renaming

PostPosted: Sun Jul 22, 2012 8:08 am
by kvora
In fact I did a little test and found that problem is not Hazel but Default Folder X
I added Spotlight comment 'Master' to one file while saving. Then asked Hazel to rename it based on that comment
Look at what happened
http://www.myapplephoto.com/filechute/2 ... 20Info.jpg
So Hazel is doing what it is supposed to but DFX is remembering old comments although I have not checked remember this button