Toggling page views in Skim When right-clicking on a document in skim there are two very useful options:


Single Page (good for presentations)
Single Page Continuous (suitable for reading)


Is there a way to define a shortcut which will toggle between the two? I guess AppleScript and probably this can be helpful. Problem is I don't know how to work with AppleScript.
I've just assigned custom shortcuts for the menu bar items.



You could also assign a shortcut to an AppleScript like this.

try
    tell application "Skim" to tell document 1
        if item -2 of (view settings as list) is single page then
            set view settings to {display mode:single page continuous}
        else
            set view settings to {display mode:single page}
        end if
    end tell
end try