if (title of first menu item of menu "Window" of menu bar item "Window" of menu bar 1 whose (class of value of attribute "AXMenuItemMarkChar" is print settings)) starts with "Script Workspace" then error "Pick a database window other than Script Workspace" number -1024