Benches macOS

2

Automator workflow - final step "move to …

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Having a bit of trouble with Automator at the moment...

Basically, I'm trying to get a workflow going that will copy a movie file from my MacBook to my iMac, whilst simultaneously copying it to an external Hard Drive that's connected to my Airport Extreme base station, then moving the original file to the trash.

My problem is that no matter what I do, the original file refuses to go to the trash. The workflow currently looks like this:

Get Selected Items

Copy Folder Items (to iMac folder)

Copy Folder Items (to Hard Drive folder)

Get Selected Items

Move Finder Items to Trash

This leaves the two copied files in the right places, but the original file stays where it is as well, and won't get moved to the trash. Anyone got any ideas?

2 replies

Sign in or join Beachball Help to reply.

  1. 0

    V.K.

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    This happens because every action in your workflow passes its input to the next action. therefore the last action in the workflow receives not just the originally selected items but also the copies made on the imac and the air disk. it tries to move them to trash and bails because they are network drives. you need to break your workflow before the second "get selected finder items". normally you can do this by control-clicking on an action and choosing "ignore input". you can't do it with 'get selected items" though so just add a dummy action breaking the folow in between. say, add the following "run apple script" action before the second "get selected items" action

    <pre style="

    font-family: Monaco, 'Courier New', Courier, monospace;

    font-size: 10px;

    margin: 0px;

    padding: 5px;

    border: 1px solid #000000;

    width: 720px;

    color: #000000;

    background-color: #ADD8E6;

    overflow: auto;"

    title="this text can be pasted into the Script Editor">

    on run {input, parameters}

    end run</pre>

    the flow should work now.

  2. 0

    winstano

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Legend! Thankyou for the incredibly quick response! That's sorted it 🙂