Jump to content

trigger a script when quitting an app with some conditions


Recommended Posts

I'm trying to build a workflow to trigger a script that runs a chronosync backup when i quit a specific app. In my case it is Pro Tools. I also want to make sure the path to the external volume i'm running my projects from is mounted before it runs. In an ideal world I would like it to check in the backup volume is also mounted. It looks like I can do this with all automation tasks and other workflow objects. I have two specific questions:

1. is this the best way to do this?

2. what is the best way for it to check more than one path? 

 

image.thumb.png.ae2bf2d8079aacb892d0f9496c2538a6.png

 

 

Edited by sepulchra
Link to comment
  • sepulchra changed the title to trigger a script when quitting an app with some conditions

That is what I was thinking but I’m guessing you would also need 2 separate “does this path exist” objects  for each path. Also I’m wondering how that impacts the conditional object? Both should be true for it run. Is there a way to make sure that is the case?

Edited by sepulchra
Link to comment

Note the description for Does Path Exist?: Returns true if all passed-in paths exist, else returns false. You can pass it any number of file paths. For the workflow above you’d do it by, for example, adding one path per line in the Argument field of the Arg and Vars Utility, then connecting that to a Split Arg Utility. Configure it to Split with: New Line and Output as: Arguments.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...