12 Replies Latest reply on Mar 26, 2009 7:52 AM by Bernd Alheit

    Hide toolbars on all open documents [AS, 8.0]

    Level 1
      Anyone know how to make this work? My aim is to hide toolbars on all the open documents. I guess my problem is calling a system event from within a call to Acrobat. (Thanks in advance, and sorry for lack of indents.)

      tell application "Adobe Acrobat Professional"
      repeat with x from 1 to count of documents
      tell document x
      bring to front
      end tell
      end repeat
      end tell

      on hideToolbars()
      tell application "System Events"
      tell process "Adobe Acrobat Professional"
      click menu item "Hide Toolbars" of menu 1 of menu item "Toolbars" of menu 1 of menu bar item "View" of menu bar 1
      end try
      end tell
      end tell
      end hideToolbars