Problem with actions on multiple files

Jot

Joined
May 28, 2015
Messages
1
Reaction score
0
Hi,

I'm trying to do something that seems simple with automator, but something doesn't work.
I just would like to create a workflow that moves specific files from a folder to many other folders.
MULTIPLE different files with different criteria, frome the same folder, to MULTIPLE different folders.

Something like:
if in folder A there is a file named X, move it to folder B,
if in folder A there is a file named Y, move it to folder C,
if in folder A there is a file named Z, move it to folder D,
and so on...

Seems pretty basic to me, but the workflow just stops when it doesn't find any files responding that criteria (the name, or part of the name).
I found this thread, but the solution provided presents 2 problems for me:

- It works, skipping the steps where it doesn't find any file, until the end: at the end (even if I add "loop") the error shows up: No item references were passed to the Move Finder Items action. (-50)
- I need the workflow to be triggered by me, so I don't want to use a "folder action". But the app resulting from this workflow just doesn't work.

I'm sure I'm missing something stupid.
I attach the screenshot of my workflow (it is in italian, but it's quite easy to understand: CERCA=FIND, FILTRA=FILTER, SPOSTA=MOVE)
screenshot.jpg

and the log.
Code:
2015-05-27 19:02:30 +0200: Cerca elementi del Finder completati
2015-05-27 19:02:30 +0200: Filtra elementi del Finder completati
2015-05-27 19:02:30 +0200: Esegui AppleScript completati
2015-05-27 19:02:30 +0200: Cerca elementi del Finder completati
2015-05-27 19:02:30 +0200: Filtra elementi del Finder completati
2015-05-27 19:02:31 +0200: Sposta elementi del Finder falliti - 1 errore, 1 avviso
2015-05-27 19:02:30 +0200: All'azione “Sposta elementi del Finder” non sono stati forniti i dati necessari.
2015-05-27 19:02:31 +0200: No item references were passed to the Move Finder Items action. (-50)

I'm using Automator 2.1.1 on Mac 10.6.8

(PS: I also posted here)
 

Cory Cooper

Moderator
Joined
May 19, 2004
Messages
11,102
Reaction score
492
Hello and welcome.

Sorry, I haven't much experience with AppleScript/Automator myself. Maybe someone here with more experience will chime in.
You could also post this question on the site below, in addition to the Apple Support Communities post you made:

MacScripter

Folks there have a lot of experience with scripting on the Mac.

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