Applescript to skip Automator step
I'm trying to create a workflow to sync two folder with some option, such as "Sync even the icon" or "Sync remote folders".
What I need to do is put an Applescript on the top of the workflow to ask these options and then if, for example, the option "Sync the icon" is enabled, the applescript must run only determined actions that I specify.
My current Automator workflow:
- Ask for finder items
- Set value of variable 1
- Ask for finder items
- Set value of variable 2
- Ask for confirmation
- Get value of variable 1
- Get value of variable 2
- Run script shell
What I want to do:
- Run Applescript to ask options and then depending on the option chosen run determined actions
- Ask for finder items
- Set value of variable 1
- Ask for finder items
- Set value of variable 2
- Ask for confirmation
- Get value of variable 1
- Get value of variable 2
- Run script shell - this if the options chosen are "Sync the icon" and "Sync local folders"
- Run script shell - this if the options chosen are "Don't sync the icon" and "Sync local folders"
- Run script shell - this if the options chosen are "Sync the icon" and "Sync remote folders"
- Run script shell - this if the options chosen are "Don't sync the icon" and "Sync remote folder"
If isn't possible to do this, is it possible to convert actions to applescript?