2 Replies Latest reply on Oct 29, 2012 8:59 AM by philmodjunk breaks Applescript 'open' command


      Title breaks Applescript 'open' command


           This applescript worked just fine until I updated to FMPro Adv


      tellapplication "FileMaker Pro Advanced"


         delay 5

         open alias "OS X:Users:vangelon:Documents:Filemaker files:Pword.fmp12" with passwords "blahblahblah" for Accounts "myaccount"




           The "open" line chokes saying "Apple event timed out" and it puts up the 'Open File' dialog in Filemaker. So it is not getting the file to open or putting in the account and password info in the background like it was supposed to.


           OSX 10.8.2, MacBook Pro late 2008




        • 1. Re: breaks Applescript 'open' command

               for others bitten by this bug, using GUI scripting works around this, a bit less elegant, though.


          tellapplication "Finder"

          open "OS X:Users:vangelon:Documents:Filemaker files:Pword.fmp12" -- change path here

          delay 5



          activateapplication "FileMaker Pro Advanced"

          tellapplication "System Events"

          tellprocess "FileMaker Pro Advanced"

          setvalueoftext field1ofwindow "Open “DATABASE_NAME”" to "ACCOUNT_NAME" -- insert account name here, insert DATABASE_NAME ("myDB" if file opened is "myDB.fmp12")

          setvalueoftext field2ofwindow "Open “DATABASE_NAME”" to "PASSWORD" -- insert password & database name here

          clickbutton "OK" ofwindow "Open “DATABASE_NAME”" -- insert database name here 

          clickbutton "Find" oftool bar1ofwindow "DATABASE_NAME" --insert database name here, too

          keystroke tab -- forward tab key, moves to first text field so user can type search term, alter or delete this line if you want to start searching another field





          • 2. Re: breaks Applescript 'open' command

                 This reads like something that would be helpful to post to Report an Issue (See tab at top of screen) to bring to the attention of the TS people at FileMaker Inc. If you choose to do so, you can include a link to this thread to save typing.