Jump to content

How to run a script after launching an app?


Recommended Posts

I have an existing AppleScript that when executed, hides all applications and dumps me at my pristine desktop.  Sometimes you just need a "reset" and this does the trick.

 

I also have many workflows that are essentially just shortcuts for launching/hiding my various oft-used applications.  Some do so via scripting because they do a few other things at the same time, others are just simple keyboard shortcuts attached to an application.

 

I would now like to combine the two for one particular application.  When using it, I'd like to hide EVERYTHING else going on with my machine.  So first use my existing script to hide everything, then launch the app in question (Called "Live").  Seems so simple, but I was shocked to se that it appears that scripts and applications are the end of the line.  There is no connection node on them to continue their processing after they run, so I can't chain them together.

 

What's the trick to something like this?  Am I stuck just apple scripting the whole thing?

 

Thanks!

Link to comment

You're doing something wrong. You can chain Run NSAppleScript actions together:

 

chain.png.c8e75f7484def7a7e6305a156c421b43.png

 

You should probably export and upload your workflow if you have more questions. Can't really say too much without actually seeing the workflow we're talking about.

Edited by deanishe
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...