2 Replies Latest reply on Oct 29, 2012 8:59 AM by philmodjunk

    12.0.3.3 breaks Applescript 'open' command

    VincentAngeloni

      Title

      12.0.3.3 breaks Applescript 'open' command

      Post

           This applescript worked just fine until I updated to FMPro Adv 12.0.3.3:

      ---

      tellapplication "FileMaker Pro Advanced"

         launch

         delay 5

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

      endtell

      ---

            

           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

            

      --

      vince

        • 1. Re: 12.0.3.3 breaks Applescript 'open' command
          VincentAngeloni

               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

          endtell

                

          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

          endtell

          endtell

                

                

          • 2. Re: 12.0.3.3 breaks Applescript 'open' command
            philmodjunk

                 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.