AppleScript to loop workflow in automator

O.rka picture O.rka · Oct 2, 2013 · Viewed 8.3k times · Source

enter image description here

1 . Opens up dialogue box

2 . Asks for text

3 . Says input text from 2

4 . * Loop to step 2? *

5 . Ask for finder item

I'm trying to find a way to use AppleScript in order to loop to a certain point in Automator . Unfortunately, the Loop utility in Automator automatically loops the workflow all the way to beginning and there is no option to change the parameters .

Does anybody know any AppleScript code that can specify where the loop starts and ends in Automator ?

Answer

mcgrailm picture mcgrailm · Oct 2, 2013

ok so here is what you do

  1. create a work flow of the loop and save it

enter image description here

2 then in your main workflow call your loop workflow

enter image description here

3 run main workflow (bob's your uncle)