Created
April 29, 2023 21:17
-
-
Save joshdavenport/d6a38b7e5b9d9f1a76b0e44b78a7a5e5 to your computer and use it in GitHub Desktop.
Revisions
-
joshdavenport created this gist
Apr 29, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ // Name: Pause Any Music // Description: Pause music playing from music apps // Author: Josh Davenport-Smith // Twitter: @joshdprts import "@johnlindquist/kit"; const pauseScript = ` tell application "Spotify" pause end tell tell application "Music" pause end tell `; exec(`osascript -e '${pauseScript}'`);