I'd like to programmatically save (and then temporarily change and restore) specific printing options. I get as far as
Options[Notebook, PrintingOptions]
but don't know what to do next to extract specific options, for example PrintingMargins, from the (long) resulting list.
"PrintingMargins" /. (PrintingOptions /. Options[Notebook, PrintingOptions])work for you? – J. M.'s missing motivation Nov 15 '12 at 23:20ReplaceAllanyway? – J. M.'s missing motivation Nov 15 '12 at 23:44ReplaceAllwas all we had for option handling! We'd make six nested replacements to process our options, withHoldandReleasefor evaluation control, andBlockour only scoping construct. And we were thankful! – Oleksandr R. Nov 16 '12 at 00:15OptionValue[ OptionValue[Options[Notebook, PrintingOptions], "PrintingOptions"], "PrintingMargins"]. MaybeReplaceAllis better after all. – orome Nov 16 '12 at 00:22