On May 30, 2015, at 21:21, Fran Calcraft wrote:

> Christiaan Hofman wrote:
>> 
>> On May 28, 2015, at 20:02, Fran Calcraft wrote:
>> 
>>> The instructions in the Skim Wiki for changing the page background
>>> colour do not make much sense to me.  This is the instruction:
>>> 
>>> Key : SKPageBackgroundColor
>>> Values : -data, archived color, or an -array of -float
>>> Explanation : Set this to change the default white background color of
>>> pages. This can be an array of one to four floats between 0 and 1, or
>>> data for an archived color.
>>> 
>>> I got everything entered into the Terminal for the setting, but using a
>>> hexadecimal code for the background colour value did not do anything.
>>> Presumably I misunderstood the meaning?  What is an "archived color" anyway?
>>> 
>>> The colour I want for the background is #FFFF88.  Is there any way to
>>> get that?  I did not use the "#" in front of the hex digits, since
>>> Terminal treated that as an error.
>> 
>> 
>> An archived color is a a raw data representation of the AppKit color. But 
>> you would never be able to guess what this should be (you could perhaps copy 
>> it form some other value.)
>> 
>> Easiest is to use an array of floats, in your case -array -float 1 -float 1 
>> -float 0.53333. You can also use AppleScript to set the page background 
>> color, then you can choose one using a color panel.
>> 
>> Christiaan
>> 
> I tried the code that you gave me, but it did not do anything.  A loaded 
> document still had a white background.  What I used was:
> 
> defaults write net.sourceforge.skim-app.skim SKPageBackgroundColor -array 
> -float 1 -float 1 -float 0.53333
> 

That does work for me. Are you sure you did this when Skim was not running?

> I have no idea how to use Applescript.  How do you specify the application it 
> is to control?  How is the background colour for all documents to be opened 
> by that application controlled?  The help I was able to find assumes some 
> knowledge of Applescript to begin with, and I have none.


This sample script (open in AppleScript Editor.app) does it:


tell application "Skim"
set page background color to (choose color)
end tell


Christiaan

------------------------------------------------------------------------------
_______________________________________________
Skim-app-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-users

Reply via email to