AnsweredAssumed Answered

AppleScript Do Menu command issues with FileMaker Pro 10-11

Question asked by lhoong on Apr 28, 2010
Latest reply on Apr 30, 2010 by TSGal

Summary

AppleScript Do Menu command issues with FileMaker Pro 10-11

Description of the issue

It appears that the Do Menu command via AppleScript no longer works when included in a Perform AppleScript script step. For example, the following script fails as a FileMaker script step:do menu menu item "Formatting Bar" of menu "View"giving unknown error -10000.However, it can be run successfully from the Apple Script Editor as:tell application "FileMaker Pro Advanced"do menu menu item "Formatting Bar" of menu "View"end tell In addition, attempts at workarounds involving UI scripting were problematic. The following script:tell application "System Events"  tell application process "FileMaker Pro Advanced" to activate  perform action "AXPress" of menu item "Formatting Bar" of menu 1 of menu bar item "View" of menu bar 1 of application process "FileMaker Pro Advanced"end tellfails and results in grayed out menu items when run as a Perform AppleScript script step; menu items returned to normal after about 30 seconds. When the same script is run from the Apple Script Editor, nothing appears to happen until the FileMaker menu bar is clicked, at which time, the Formatting Bar is displayed as desired.Some of the above behavior is described by Bill Doerrfeld and other users in a FileMaker Tech Talk thread:http://techtalk.filemaker.com/?14@@.59bfe308#22 My system: Mac OS X 10.5.8; FileMaker Pro Advanced 11v1. The behavior is also observed in FMPA 10v3.I'm hoping the above can be fixed sooner rather than later.Lee Hoong.=================Binary Assist220 Gaines Oak WaySuwanee, GA 30024Voice: (678) 313-5604Internet: lhoong@binaryassist.comWebsite: www.binaryassist.comFileMaker Certified Developer

Outcomes