Subject: Re: [Name Mangler Talk] How can I change the file name to date+time

From: Rob Griffiths <[email-masked]>
Date: Mon, 9 Jan 2012 13:41:55 -0800

On Jan 9, 2012, at 1:22 PM, Chris Malatesta wrote:

> as I have several files on the same date?

In Advanced mode, you can add a sequence number, and have the sequence number change only when the date changes, by using the optional sequence identifier. The below screen shot shows a sample, and here's the code:

[concatenate
	[created 
		format "%Y-%m-%d"
	]
    ,
	" ["
	,
	[sequence
		start "1"
		step "1"
		sleep "0"
		max "0"
		digits "2"
		identifier [created "%Y-%m-%d"]
	]
	,
	"]"
	,
    [if
        <extension>
    then
        [concatenate ".", <extension>]
    else
        ""
    ]
]

This replaces the existing filename with the file's creation date, then adds a bracketed number to handle the files created on the same date. You can obviously play around with what text to add, how to present the numbers, etc. As always, please test on a _copy_ of your files before you commit this to your actual set of files.

regards,
-rob.

---

From: Chris Malatesta <[email-masked]>
Date: Mon, 9 Jan 2012 13:22:11 -0800 (PST)

THANKS!