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 program if it was opened specifically by Automator itself, but leave it open if the program 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?
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 program if it was opened specifically by Automator itself, but leave it open if the program 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?