Emulating pressing F6 & F7 together with Applescript
I've been trying to create an Applescript for toggle to the Smart Tool in Pro Tools 10 & 11. The key command within Pro Tools is pressing F6&F7 together. All I can get to happen is two separate presses which just toggle other tools within Pro Tools. My closest attempt is:
tell application "Pro Tools" to activate
tell application "System Events"
key down (key code 97)
key code 98
end tell
I've tried other variations without success. Any help would be greatly appreciated.
Mac mini (Late 2012), OS X Mountain Lion (10.8.3)