hold file when opened

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

hold file when opened Thu Feb 28, 2013 8:51 am • by Graf_Wetter
Hi,
I have a rule that looks for pdf files.
The actions for the matched files are:
- Open with application "Acrobat"
- Set color label to Green


The files opened in Acrobat have to be checked visually and some of them have to be edited within Acrobat.
After editing is finished the file is saved without renaming and closed.
If no corrections are needed, the file is closed without saving.
After the file is closed the files color label should change to green.
The problem is that the color-label immediately changes to green after the file is opened in Acrobat.
"Change color-label" doesn´t wait for the file to be closed.
Any ideas ?

Thanks
Joerg
Graf_Wetter
 
Posts: 37
Joined: Thu Aug 25, 2011 7:18 am

Re: hold file when opened Thu Feb 28, 2013 1:30 pm • by a_freyer
Hazel does not pause between actions once a rule is matched. So it processes green as soon as the file is matched.

You are going to have to have a separate rule to match a file that is ready to be sorted. I might suggest adjusting the rule structure slightly:

Rule 1: Change New Files to Red

Code: Select all
if (all) of the following conditions are met for (the file or folder being processed):
     kind is pdf
     color label is not red
     color label is not green

Do the following to the matched file or folder:
     open in acrobat
     set color label red


Rule 2: Change Red Files to Green

Code: Select all
if (all) of the following conditions are met for (the file or folder being processed):
     kind is pdf
     color label is red
     color label is not green

Do the following to the matched file or folder:
     set color label green
a_freyer
 
Posts: 631
Joined: Tue Sep 30, 2008 9:21 am
Location: Colorado

Re: hold file when opened Fri Mar 01, 2013 4:46 am • by Graf_Wetter
Yesterday I had the same idea and tried it but it failed because when saving in Acrobat the Colorlabel changes back to None.
So I had to add a rename action.
Now it seems to work.
Rule1:
Code: Select all
if (all) of the following conditions are met for (the file or folder being processed):
     kind is pdf
     name does not end with "copy"
     color label is not green

Do the following to the matched file or folder:
     set color label green

Rule2:
Code: Select all
if (all) of the following conditions are met for (the file or folder being processed):
     kind is pdf
     name does not end with "copy"
     color label is green

Do the following to the matched file or folder:
     rename with pattern "name"#copy
     open in acrobat

Rule3:
Code: Select all
if (all) of the following conditions are met for (the file or folder being processed):
     kind is pdf
     name ends with "copy"

Do the following to the matched file or folder:
     move to folder "target"

Thanks.
Joerg
Graf_Wetter
 
Posts: 37
Joined: Thu Aug 25, 2011 7:18 am


Return to Support