Automator service to copy a file to new location, rename, and move back

Joined
Jun 8, 2018
Messages
1
Reaction score
0
I'm trying to create an Automator service to take a selected file, move it to the parent folder, replace specific text in the file name, and move back into the original folder overwriting an identically named file there.

For clarification, folder shot_10 has the following files in it:

shot_10_CURRENT.mov
shot_10_v001.mov
shot_10_v002.mov
shot_10_v003.mov

I want to select shot_10_v003.mov, move it to the parent folder, rename it shot_10_CURRENT.mov, and then move it back, overwriting the _CURRENT file in the original folder. I realize there might be other ways of achieving the same final file structure, but because of some specifics in my workflow it needs to be this exact sequence. Basically, I need to replace the _CURRENT file with the latest version without first deleting the one that exists. Any suggestions?
 

Cory Cooper

Moderator
Joined
May 19, 2004
Messages
11,106
Reaction score
497
Hello and welcome,

I am not very experienced with Automator/AppleScript, but the folks over at MacScripter may be able to help.

C
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top