Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    Thank you so much! This really solved the issue! I cannot upvote your answer for whatever reason, but I'll mark it as the selected solution and I'll add a new answer with the approach I took to make it work for my scenario. Commented Sep 13, 2022 at 19:51
  • How do we make use of this code? When I go to Shortcuts it only lets me choose from apps on the right; I can find no place where it will let me paste in the above code. (Searching for "applescript" also produced no results.) Commented Sep 15, 2024 at 20:50
  • 1
    @sh37211 Using macOS 14.1.2 (23B92), Shortcuts Version 7.0 (2106.0.3) — Open the Shortcuts app, click the plus (+) sign to add a new shortcut, use the search bar to search for the "Run Applescript" action, paste the text (probably use Alfie Robles's edited version in the answer he provided below) and save it and pin it to your taskbar in the Shortcut's details. Commented Sep 21, 2024 at 20:41