On Wed, 17 Feb 2010, Christiaan Hofman wrote: > > On Feb 17, 2010, at 16:09, Duke Normandin wrote: > > > On Wed, 17 Feb 2010, Christiaan Hofman wrote: > > > >> The Skim development teams is pleased to announce that Skim 1.3.4 is > >> available for download at <http://skim-app.sourceforge.net/> or > >> using the built-in updater. > > > > [snip] > > > >> * New hidden preference for page background color. > > > > Thank you so much! There's _a lot_ of folks who will want to kiss your > > feet for that act of kindness. > > > > And so I tried: > > > > defaults write -app Skim -SKPageBackgroundColor -data ababab > > > > My system didn't puke an error message, but the color didn't change, > > so I'm sending the wrong arguments. Would you give an example of the > > proper syntax and allowed values for "color"? TIA... > > -- > > duke >
> The data is an archived NSColor object, so it's not something you > can ever guess, the only way I can ever think of setting it is > copying the data from some other preference containing a color. But > you can also set it as an array of 1-4 floats (as it says on the > Wiki), for instance > defaults write -app Skim -SKPageBackgroundColor -array -float 1.0 -float 1.0 > -float 1.0 -float 1.0 What do the floating-point integers stand for? 1st two for fg color; last 2 for bg color? I'm used to writing RGB color codes as hex triplets like #ababab, so the 4 float thing is not obvious to me. > And moreover you can set it using AppleScript. Don't know AppleScript; would know where to begin or how to use it. The "defaults" way seems the best. -- duke ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ Skim-app-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/skim-app-users
