Need InCopy script to switch to Layout Tab and zoom active window

Hi,

I am a novice AppleScripter and I need to write a simple script that switches the currently opened InCopy CS6 file to “Layout” tab and then zooms the window to 150%. This is not as simple as I thought.

Here’s what I tried so far:

tell application “Adobe InCopy CS6”
tell active document
tell active window
set zoom percentage to “150%”
end tell
end tell
end tell

There’s no way to give 150% its own keyboard shortcut (that I have found anyway) so I thought I could lick this with an Applescript. Does anyone have such a script they can lay on me or advise me as to the correct commands and syntax? The InCopy library shows me the Zoom Window command but I don’t know how to make this work correctly. Thanks for your help.

I just solved my own problem.

This script worked after playing around awhile:

tell application “Adobe InCopy CS6”
set zoom percentage of active window to (150)
end tell