Skip to content

Instantly share code, notes, and snippets.

@tinogomes
Created April 24, 2012 04:31
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tinogomes/2476447 to your computer and use it in GitHub Desktop.
Save tinogomes/2476447 to your computer and use it in GitHub Desktop.
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
Copy link

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.

@amartinez1660
Copy link

Is there a way to get the right color profile of what it picks?
For example, photoshop color picker and 'choose color' script gives don't match the hex color code.

Nevertheless, thanks a lot for the snippet!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment