Hazel Screenshot Numbers

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

Moderator: Mr_Noodle

Hazel Screenshot Numbers Tue Jul 17, 2012 12:56 pm • by congomonster
Hello,

i made a rule for screenshots. The rule has numbers for the files. 1,2,3 but when i erase 3 the next screenshot is 4 but it should be 3.

How can i tell hazel to look for the last number ?
congomonster
 
Posts: 2
Joined: Tue Jul 17, 2012 12:51 pm

Re: Hazel Screenshot Numbers Tue Jul 17, 2012 2:04 pm • by a_freyer
I'm not sure I understand the rule you have created or the requirement you're looking to fill. Are you saying that you have sequentially numbered screenshots in a folder and you want to keep the sequence whenever you delete a file?

Friendly Reminder: Keep support requests in the Support Forum.
a_freyer
 
Posts: 631
Joined: Tue Sep 30, 2008 9:21 am
Location: Colorado

Re: Hazel Screenshot Numbers Tue Jul 17, 2012 2:29 pm • by congomonster
mhhmmmm...... i think yes.

I have screenshots 1,2,3,4 in a folder. Now i delete Number 4. When i take another screenshot i have 1,2,3,5,. My wish is that hazel see that number 4 is gone and make 5 to 4. I could not better explain it. :D
congomonster
 
Posts: 2
Joined: Tue Jul 17, 2012 12:51 pm

Re: Hazel Screenshot Numbers Tue Jul 17, 2012 2:37 pm • by a_freyer
congomonster wrote:mhhmmmm...... i think yes.

I have screenshots 1,2,3,4 in a folder. Now i delete Number 4. When i take another screenshot i have 1,2,3,5,. My wish is that hazel see that number 4 is gone and make 5 to 4. I could not better explain it. :D



But to be clear, if you have 1,2,3,4 in a folder and you delete screenshot 2 then you want Hazel to rename every file in the directory as 1,2,3 right?
a_freyer
 
Posts: 631
Joined: Tue Sep 30, 2008 9:21 am
Location: Colorado

Re: Hazel Screenshot Numbers Tue Jul 17, 2012 2:44 pm • by a_freyer
The short answer is that you're going to have to write a script for this. As far as I can tell based on your requirements, Hazel cannot re-sequentialize directories with default functions.
a_freyer
 
Posts: 631
Joined: Tue Sep 30, 2008 9:21 am
Location: Colorado

Re: Hazel Screenshot Numbers Tue Jul 17, 2012 3:39 pm • by Mr_Noodle
Hazel keeps track of the last number used and goes from there. There is no UI to reset the sequence but if you are comfortable using Terminal, you can do the following:

Code: Select all
  xattr -d com.noodlesoft.Hazel.DirectoryCounter  <the path of the folder containing the files to number>


Note that you have to do this manually each time you want to reset the sequence.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support