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

Discussion in 'Automator' started by betaclone, Jun 8, 2018.

  1. betaclone

    betaclone New Member

    Joined:
    Jun 8, 2018
    Messages:
    1
    Likes Received:
    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?
     
    betaclone, Jun 8, 2018
    #1
    1. Advertisements

  2. betaclone

    Cory Cooper Moderator

    Joined:
    May 19, 2004
    Messages:
    5,976
    Likes Received:
    197
    Hello and welcome,

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

    C
     
    Cory Cooper, Jun 9, 2018
    #2
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.