Skip to content

aarblaster/UsefulAppleScripts

Repository files navigation

UsefulAppleScripts

GitHub release GitHub All Releases GitHub

A collection of Useful Applescripts to make MacOS life better.

About

Some of these specifically integrate with other software and others manipulate the OS.
These are mostly created by cobbling together bits and pieces from other scripts and finding the thing that works best for my use case.
Lots of these are quite simple but maybe they will solve a problem for someone else.

Directory

BarTender

  • DisplaysLaptopOnly.scpt determines if the monitor connected is a laptop display. This allows Bartender to know if a smaller display is detected. This interacts with Bartender's new profile feature.
  • DisplaysNotLaptop.scpt very similar to DisplaysLaptopOnly.scpt but it determines if a monitor that is not the laptop is conected. Similarly, works with Bartender Profiles.

Bunch

  • I use QuitXcodeBunch with Bunch.app, from the excellent @ttscoff, to close Xcode when leaving my Code bunch. It makes sure to stop any running tasks so that Xcode quits properly.
  • GetKMVar is a simple script to get the variable from inside Keyboard Maestro and make it available to an applescript. It works in conjunction with other scripts as more of a building block.

Email

  • EmailHi.scpt is heavily inspired by David Sparks' blog and was influenced heavily by various posts I read on the Automators forums and the Mac Power Users Forums.
    My version of the script includes both MS Outlook and Mail.app variations as I work in both pieces of software and wanted the ability to get first names in both applications. I trigger it with Keyboard Maestro text entry because I try to keep all the applescript triggers there. But you could also use text expander...

URLs

  • SafariToFirefox.scpt opens the frontmost safari tab in firefox. Personally I trigger this with Keyboard Maestro

Thanks

I'm not really amazing at any of this coding business, and I have only been able to work out these automations because of the excellent communities and software that others have made. I hope you find these useful.

If you do find them useful – give me a shout. I'd love to hear about that.