Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Open the Color Picker via AppleScript
# Open the Color Picker via AppleScript
# http://qsapp.com/wiki/Color_Picker_(AppleScript)
tell application "System Events" to set _frontMostApp to (name of processes whose frontmost is true)
set _frontMostApp to item 1 of _frontMostApp
tell application _frontMostApp to activate
choose color
@TrevorSayre

This comment has been minimized.

Copy link

commented Mar 18, 2019

So others know how to use this:

  1. Open /Applications/Utilities/Script Editor.app
  2. Paste in the above code
  3. File > Save...
  4. Set File Format to Application
  5. Name it whatever you want (I chose Color Picker) and save to /Applications

I would also recommend taking a look at:
https://bjango.com/mac/skalacolor/

This is a free enhancement for the macOS color picker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.