Automator - Help closing apps after Automator launches them

Joined
Aug 26, 2011
Messages
1
Reaction score
0
Points
1
Hey all, I'm having some trouble figuring out a way to complete a simple series of events in Automator.

I used the 'Print Finder Items' command to create a nice desktop shortcut to drag and drop any files I need printed. However, the app will launch whatever program the file is associated with and leave it open. I'm can't find a way to get Automator to close the application if it was opened specifically by Automator itself, but leave it open if the application was already running prior to Automator's involvement.

Just in case I'm not explaining it well:

Preview is open. I drag a PDF to my Automator created app and it prints, leaving Preview open because Automator didn't need to open it.

Preview is not open. I drag a PDF to my Automator created app and it prints, then closes Preview because Automator needed to launch the application in order to print.

Is this possible to do?
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top