Finish Executing AppleScript Before Executing Key Commands