AnsweredAssumed Answered

FMP, AppleScript and Sierra

Question asked by bertrand on Sep 2, 2016
Latest reply on Sep 3, 2016 by bertrand



I used for driving printers in FM solutions Applescript. The main use is to do shell script in order to use "lpstat" or "lpoptions" functions.


All works correctly with FM 14 or 15  and Mac OS Yosemite 10.10 or El Capitan 10.11.


I'm beta tester for Sierra and since the first version I've got problems. When using "lpstat" to get the default printer, the subprocess that execute Applescript crashes, FM get a signal and an -1004 error but stay alive. All commands sent via this way are not executed.


I try some other test and find that a simple shell script, as "display alert "Hello"" is done correctly.

Something as "set data of cell \"Sans titre::MAC_Printer_default\" to do shell script \"lpstat -d | awk 'BEGIN {FS=\\\": \\\"}{print $2}'\" " which must give the name of the default printer makes the subprocess crash.


You will find a test file and a screen copy of the crash.