AnsweredAssumed Answered

Applescript not working on the FMServer

Question asked by JasonA on Feb 10, 2015
Latest reply on Feb 16, 2015 by bigtom

Title

Applescript not working on the FMServer

Your post

I have added an Applescript that opens files in Photoshop and counts the number of paths. It then adds this data to a Filemaker record. The script is called from inside a Filemaker script. The script works when I open the database from my desktop but will not run when the file is hosted on the FM server.

This is the part that fails with the error (Filemaker Pro Advanced got and error: Object not found):


        tell application "FileMaker Pro Advanced"
            activate
            go to layout "Item List"
            set myRecord to (ID of (create new record))
            set myID to cell "Purchase Orders::g_WO_Num" of layout "ItemListEntry"
            set cell "ItemList::k_ID_WO_ItemList" of record ID myRecord to myID
            set cell "NumPaths" of record ID myRecord to numOfPaths
            set cell "ItemList::Item" of record ID myRecord to fileName
            set cell "ItemList::Path" of record ID myRecord to filePath
            go to layout "Item List"
            
        end tell

The script creates a new record, but no data is entered.

 

Outcomes