Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,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 3.62 / 5
  You rated: 4 / 5 (13 votes cast)
 
[113,863 views]  

Make the OS X Color Picker into an application | 27 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 whoever posted them. This site is not responsible for what they say.
Make the OS X Color Picker into an application
Authored by: pub3abn on Apr 13, '06 07:44:28AM

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 Apr 13, '06 07:52:44AM

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 Apr 13, '06 08:08:17AM

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 Apr 13, '06 08:16:12AM
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 Apr 13, '06 08:12:32AM

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 Apr 13, '06 11:53:48AM

Chris->

Perfect for my needs, many thanks!

Sam



[ Reply to This | # ]
Make the OS X Color Picker into an application
Authored by: osxpounder on Apr 13, '06 02:43:04PM

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 Sep 13, '07 02:09:06PM

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 Apr 13, '06 08:15:12AM

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 Apr 13, '06 12:34:37PM
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 Apr 13, '06 02:55:44PM

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 Apr 14, '06 09:04:22AM

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 Apr 15, '06 03:43:55AM
I've been using ExColor for this for a long time. works great!

[ Reply to This | # ]
ExColor works too...
Authored by: simbalala on Apr 15, '06 10:27:19AM

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 Apr 15, '06 01:46:03PM
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 Apr 26, '06 10:28:33PM

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 Apr 26, '06 10:29:49PM

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 May 02, '06 07:09:08AM

Anyone?



[ Reply to This | # ]
Make the OS X Color Picker into an application
Authored by: regulus on May 02, '06 10:16:44AM

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 May 03, '06 06:49:50AM

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 May 06, '06 06:34:56AM

Hit the OK button in the apps window!



[ Reply to This | # ]
Make the OS X Color Picker into an application
Authored by: robalan on May 12, '06 08:42:48AM

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 May 12, '06 08:45:58AM

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 May 09, '06 07:06:00PM

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 Sep 13, '07 02:21:05PM

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 Feb 01, '10 06:53:19AM
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 | # ]
New location for HexColorPicker
Authored by: sc0ttdav3y on Apr 14, '11 05:22:45PM
The original post has a broken link - the new location for Hex Color Picker is:
http://wafflesoftware.net/hexpicker/

[ Reply to This | # ]