Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a (very basic) apple script that I use as a trigger to start and hijack Plex, using Audio Hijack Pro.

tell application "Audio Hijack Pro"
start hijacking session named "Plex"
end tell
tell application "Plex"
end tell

Where the last three lines just ensure Plex is in the foreground.

Here is where my question comes in. If possible, I would like to extend my script a little; it should keep running while Hijack Audio Pro is hijacking Plex, and quit Hijack Audio Pro if Plex is quit. Does anyone know how to achieve this?

share|improve this question

I've only dabbled in Applescript, but would you be able to create a second script that is basically reversed? In English it would look like:

tell Plex to quit
tell Audio Hijack Pro to quit
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.