preview pane is visible (boolean) : Controls whether the preview pane of the message viewer window is visible or not
But this fails both in Classic and non-Classic view:
tell application "Mail"
tell message viewer 0
set l to (preview pane is visible)
log l
if l is true then
set preview pane is visible to false --fails here
else
set preview pane is visible to true
end if
end tell
end tell
Result:
error "Mail got an error: AppleEvent handler failed." number -10000
(OS X 10.11.1)
Any thoughts on how to move the split view divider (without invoking Sys Events and GUI scripting) in Mail to hide/unhide previews?
Best
Phil