Skip to content

Instantly share code, notes, and snippets.

@tinogomes
Created April 24, 2012 04:31
Show Gist options
  • 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
@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