Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!

Make the OS X Color Picker into an application Apps
I've always enjoyed OS X's color picker. It's a marvelous way to choose colors within an app that uses it. But therein lies the problem: some applications don't make use of it. This becomes more of a problem with web development. I often end up opening some other app that makes use of the color picker to choose the colors I want on my webpage.

Thanks to Chris for this post on his restiffbard.com blog, I have finally found an easy way to break it out into its own app. Simply fire up AppleScript (Applications -> AppleScript Editor) and enter this text:
choose color
Now, save it as an application (File -> Save As, and set the File Format pop-up to Application), and you're done! I copied the icon from the Digital Color Meter onto it to pretty it up. Add in the free HEXColorPicker from Lucky Software, and you've got everything a web developer might need to pick colors in any app.

[robg adds: As a final step, you might wish to assign a hotkey to your new simple application, making it truly trivial to access from any application. You can do this using Butler, QuicKeys X, etc.]
    •    
  • Currently 5.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[57,180 views]  

Make the OS X Color Picker into an application | 26 comments | Create New Account
Click here to return to the 'Make the OS X Color Picker into an application' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Make the OS X Color Picker into an application
Authored by: pub3abn on Thu, Apr 13 2006 at 7:44AM PDT
The location (at least in 10.4) is Applications -> AppleScript -> Script Editor.app

[ Reply to This | # ]
Make the OS X Color Picker into an application
Authored by: pub3abn on Thu, Apr 13 2006 at 7:52AM PDT
There are also nice icons at:

/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Resources/ColorPanel.png

and:

/System/Library/ColorPickers/NSColorPickerWheel.colorPicker/Resources/NSColorWheelImage.tiff

[ Reply to This | # ]
Make the OS X Color Picker into an application
Authored by: e235 on Thu, Apr 13 2006 at 8:08AM PDT
Somewhat related...

Does anyone know how to do something similar for the mini-app/window that you access from address book or the accounts pane of system preferences, which allows you zoom and frame an image?

It would be nice to be able to launch that in a similar way.

[ Reply to This | # ]
Make the OS X Color Picker into an application
Authored by: cseymour on Thu, Apr 13 2006 at 8:16AM PDT
That would be sweet...
A good app that's similar is imagewell http://www.xtralean.com/IWOverview.html

[ Reply to This | # ]
Make the OS X Color Picker into an application
Authored by: cbiagini on Thu, Apr 13 2006 at 8:12AM PDT

A little while ago I wrote an AppleScript to do something similar. It adds the ability to copy the RGB values of the color to the clipboard in either decimal or the web-ready hex format.

http://assortedgeekery.com/scripts/ChooseColor

Copy it into Script Editor and save it as a script in ~/Scripts to access it from the system-wide Script Menu, which you can enable using the AppleScript Utility. Hope someone finds it useful!



[ Reply to This | # ]
Make the OS X Color Picker into an application
Authored by: CyborgSam on Thu, Apr 13 2006 at 11:53AM PDT
Chris->

Perfect for my needs, many thanks!

Sam

[ Reply to This | # ]
Make the OS X Color Picker into an application
Authored by: osxpounder on Thu, Apr 13 2006 at 2:43PM PDT
Thanks for that script, cbiagini! I named it ColorPickerAnywhere and put it in my scripts folder. I'm sure it will be helpful.

---
--
osxpounder

[ Reply to This | # ]
Make the OS X Color Picker into an application
Authored by: JoelFarris on Thu, Sep 13 2007 at 2:09PM PDT
As of September 2007 this URL is 404

---
Joel Farris
"and that's the way it oughta be!"

[ Reply to This | # ]
Make the OS X Color Picker into an application
Authored by: stephenhart on Thu, Apr 13 2006 at 8:15AM PDT
Another natural procedure is to save as a script in the user's or the Mac's scripts folder. It's then always available under the AppleScript menu item.

[ Reply to This | # ]
BBEdit Color Picker
Authored by: Paul Burney on Thu, Apr 13 2006 at 12:34PM PDT
I hacked together this script about a year ago for use in BBEdit. I wanted to be able to modify a hex color at any place in a script (BBEdit will only do it for predefined things such as in CSS styles or bgcolor attributes).

Since I do most of my work in scripting languages and not just plain HTML, I typically have a variable name specifying the color like this:
$color = '#facade';

I can double click on the color string which selects all of the text without the #, then call my applescript which is tied to a keyboard shortcut. It brings up a color picker with the selected color already chosen. I usually then modify it with the HSB controls. When I click the OK button, the hex code on the page is replaced with the hex code for the newly selected color.

If you're interested, the script is here:

http://burney.ws/software/bbcolorpicker/



[ Reply to This | # ]
Make the OS X Color Picker into an application
Authored by: n8gray on Thu, Apr 13 2006 at 2:55PM PDT
This is handy, but what does it *do* with the color you pick? Can you put it on the clipboard or something? Or do you have to manually transcribe it to anyplace you want to use it?


[ Reply to This | # ]
Make the OS X Color Picker into an application
Authored by: zeligprod on Fri, Apr 14 2006 at 9:04AM PDT
That's the beauty of the color picker, you can centralize all your favorite colors and access them with any application. I find it very handy.

Alex

[ Reply to This | # ]
ExColor works too...
Authored by: jspivack on Sat, Apr 15 2006 at 3:43AM PDT
I've been using ExColor for this for a long time. works great!

[ Reply to This | # ]
ExColor works too...
Authored by: simbalala on Sat, Apr 15 2006 at 10:27AM PDT
It's cute but HEXColorPicker as mentioned in the original hint does this and much more AND it's integrated into ColorPicker itself.

As an aside: After visiting the page mentioned in the hint (restiffbard.com) I went ahead and purchased the registration key for Painter's Picker. I'd seen it before but hadn't felt like buying it.

It is a very powerful little tool and there's a lot more to it than first meets the eye. Just have a look at its help files and documentation.

It really makes ColorPicker sing.

[ Reply to This | # ]
RCWebColorPicker recommendation
Authored by: sjk on Sat, Apr 15 2006 at 1:46PM PDT
I'd recommend RCWebColorPicker over HexColorPicker for its ability to display and select separate RGB values.

[ Reply to This | # ]
RCWebColorPicker recommendation
Authored by: robalan on Wed, Apr 26 2006 at 10:28PM PDT
Can someone tell me how to allow Apple-Q quitting when saving this script as an application? Right now I can only force-quit it and that's just annoying.

Thanks,

Rob

[ Reply to This | # ]
Make the OS X Color Picker into an application
Authored by: robalan on Wed, Apr 26 2006 at 10:29PM PDT
Can someone tell me how to allow Apple-Q quitting when saving this script as an application? Right now I can only force-quit it and that's just annoying.

Thanks,

Rob

[ Reply to This | # ]
Make the OS X Color Picker into an application
Authored by: robalan on Tue, May 2 2006 at 7:09AM PDT
Anyone?

[ Reply to This | # ]
Make the OS X Color Picker into an application
Authored by: regulus on Tue, May 2 2006 at 10:16AM PDT
Just control-click or right-click on its icon in the dock.

[ Reply to This | # ]
Make the OS X Color Picker into an application
Authored by: robalan on Wed, May 3 2006 at 6:49AM PDT
That would be great if it worked, but the application simply will not close outside force-quitting.

Thanks though,

Rob

[ Reply to This | # ]
Make the OS X Color Picker into an application
Authored by: morgs on Sat, May 6 2006 at 6:34AM PDT
Hit the OK button in the apps window!

[ Reply to This | # ]
Make the OS X Color Picker into an application
Authored by: robalan on Fri, May 12 2006 at 8:42AM PDT
Real descriptive... There is no "OK" button in the apps window... Anyone else have any bright ideas?

[ Reply to This | # ]
Make the OS X Color Picker into an application
Authored by: robalan on Fri, May 12 2006 at 8:45AM PDT
My apologies -- I see what you mean now... It closes like it would if you were selecting a color, say, in Pages or another app that uses the picker. Thanks morgs!

Rob

[ Reply to This | # ]
Make the OS X Color Picker into an application
Authored by: restiffbard on Tue, May 9 2006 at 7:06PM PDT
Golly gee. If I had known this would make it as a hint I would have submitted it a year ago. :)

[ Reply to This | # ]
Make the OS X Color Picker into an application
Authored by: JoelFarris on Thu, Sep 13 2007 at 2:21PM PDT
I just discovered that TextMate has a keyboard shortcut for opening the Apple Color Picker while writing a CSS file. Try SHIFT > CMD > C and bam! There it is!

---
Joel Farris
"and that's the way it oughta be!"

[ Reply to This | # ]
Make the OS X Color Picker into an application
Authored by: mrmikey on Mon, Feb 1 2010 at 6:53AM PST
to answer "yes, but can you copy it to the clipboard?". I found that using digital color meter and pressing apple+shift+c does this. So if you want to get a screen color to the clipboard (like I did) then just use digital color meter (it loads a lot faster as well)

[ Reply to This | # ]