Page 1 of 1

Hazel Screenshot Numbers

PostPosted: 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 ?

Re: Hazel Screenshot Numbers

PostPosted: 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.

Re: Hazel Screenshot Numbers

PostPosted: 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

Re: Hazel Screenshot Numbers

PostPosted: 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?

Re: Hazel Screenshot Numbers

PostPosted: 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.

Re: Hazel Screenshot Numbers

PostPosted: 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.