AnsweredAssumed Answered

AppleScript Error capture

Question asked by JFWX5 on Oct 2, 2017
Latest reply on Oct 2, 2017 by monkeybreadsoftware

Hi All,



I have the following FileMaker script



Show Custom Dialog [ Title: "Put Sheets in Scanner"; Message: "Then select Scan to scan the document(s) or Cancel to stop."; Default Button: “Scan”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]

If [ Get ( LastMessageChoice ) = 1 ]
Perform AppleScript [ Native AppleScript: do shell script " /usr/bin/fscanx --pdf /scandata/untitled"

Perform Script [ “Scan Answering Service Call Sheets” ]

Else If [ Get ( LastMessageChoice ) = 2 ] Beep

Show Custom Dialog [ Title: "Scan Cancelled"; Message: "Remember to take the document(s) out of the scanner."; Default Button: “OK”, Commit: “Yes” ]

Halt Script

Go to Layout [ “Main” (Documents) ]

Show/Hide Toolbars

[ Hide ] End If


What would I add to after my script

"Perform AppleScript [ Native AppleScript: do shell script " /usr/bin/fscanx --pdf /scandata/untitled””

to showed some type of error in the AppleScript and stop the script ?



Thank you ,


John Winfield, Jr.

Scituate, RI USA