How to Save / Export and Replace if File Already Exists

This may be of interest to some people.

I created a macro on request that increments file versions. If you go back to a previous version and increment that, it will increment the increment.

For example, first round increments:

Test
Test - v.1
Test - v.2
Test - v.3
etc...

Then, if you increment Test - v.2:

Test - v.2
Test - v.2.1
Test - v.2.2
Test - v.2.3
etc...

It uses the Split Text plugin, as I'm no good with regex. If anyone can improve upon this, please do!

Incremental Save.kmmacros (50 KB)

Macro screenshot

NB: Some apps (Textedit and Preview for example) do that open-duplicate-in-another-window thing instead of opening a Save As dialog, so you'd need to modify the macro to account for this behaviour.

1 Like