First of all, this script is terrible. There is no reason to use keystrokes to select menu items, especially when Acrobat has an AppleScript dictionary. Second, you cannot use functions within an AppleScript within Hazel. You'll notice that this script posted does have several internal ...