AnsweredAssumed Answered

Applescript to Filemaker - Returning Applescript result to Filemaker

Question asked by WilliamHurlow on Jul 9, 2013

Title

Applescript to Filemaker - Returning Applescript result to Filemaker

Post

     I am trying to get an Applescript result back into Filemaker Pro Advanced 12 on an OSX 10.8.4 platform. I have read and combined various posts and still fail to get the result back to Filemaker. 

     Within Filemaker I have created a Global field G_Result in a layout EV_All_Fields in a table T_Events.

     The applescript I am using within a FM script is:

      

tellapplication "Calendar"

tellcalendar "Calendar"

settheEventtofirstevent

returnuidoftheEvent

endtell

endtell

      

set the_result to result

set the_result to my asUnicodeString(the_result)

      

tellapplication "FileMaker Pro Advanced"

      

set cell G_Result of table T_Events of layout EV_All_Fields to the_result

      

endtell

      

      

     Help Please....

Outcomes