Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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"
    activate
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

1 Answer 1

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
then
tell Audio Hijack Pro to quit
share|improve this answer

Your Answer

 
discard

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.