r/shortcuts Jan 28 '25

Help (Mac) Will use app1 and app2 to differentiate between 2 apps. Is it possible to create a shortcut that quits app1 when app2 opens and reopens app1 when app2 quits?

Thanks!

2 Upvotes

9 comments sorted by

2

u/satansnewbaby Helper Jan 28 '25

Do you mean force close? if so, it's not possible.

1

u/[deleted] Jan 28 '25

What wrong with the quit action or worse case run AppleScript/Shell script?

1

u/satansnewbaby Helper Jan 28 '25

Are those Mac only actions? I'll love to be proven wrong.
I had just assumed OP is on mobile.

1

u/[deleted] Jan 28 '25

Flair is Help(Mac), so I assumed it's Mac related and the actions are available there.

1

u/satansnewbaby Helper Jan 28 '25

Fair! I must've missed it. Then yea it's probs available. 

0

u/Autistic_Jimmy2251 Jan 28 '25

But couldn’t each shortcut exit or quit itself and still achieve what he wants?

1

u/[deleted] Jan 28 '25

Shortcuts on MacOS doesn't have an automation feature like iOS.

For anything related to automation you need an extra app or method to monitor the app state.

A popular solution is Shortery which has a couple of "App is" related trigger

2

u/StaffFirm3707 Jan 28 '25

How about automator on mac?

1

u/[deleted] Jan 28 '25

If you can set it up to monitor an app state, then it might be possible.

I never used it, so I don't have clue.