I have automator running several applescript commands that I want to happen sequentially. For example, I have an empty trash
command, then a shut down
command. When I run the script, the computer shuts down before the trash empties more than a few files.
How do I make sure that automator completes one task before moving on?
I also have a terminal command for backing up using time machine. I would also like that one to finish before the shut down.
empty trash
should normally block the script. And if it stops because some file is in use, the workflow should stop because of an error. Can you include the complete script or workflow? You can usetmutil startbackup -b
for the backup.