Requesting help setting active tool in Acrobat X


I’ve had some trouble directly opening pdf’s in Acrobat X, and had to resort to the GUI to open each file.

However, i badly need to add a header and footer. The rather stupid way it’s done at the moment is via a new toolbar, but I can’t activate the toolbar buttons.

Anyone know of a way to open the header/footer dialog box please?

set theItem to ((path to desktop) & “This is a test.pdf”) as text
set theitem2 to POSIX path of theItem
tell application “Adobe Acrobat Pro”
tell application “Finder”
repeat until exists process “Acrobat”
delay 0.1
end repeat
end tell
close all docs saving no
tell application “System Events” to tell process “Acrobat” – use GUI to open file
click menu item 1 of menu 1 of menu bar item 3 of menu bar 1
keystroke theitem2
click button “Go” of sheet 1 of window “Open”
click button “Open” of window “Open”
end tell

repeat until exists active doc
	delay 0.1
end repeat
say active tool as text -- returns 'select'
set active tool to "Add Header & Footer." --fails

display dialog theItem as alias as text
--close all docs saving no

end tell

Model: 2010 i7 iMac
AppleScript: latest
Browser: Safari 536.26.14
Operating System: Mac OS X (10.8)