# Youseful Software - FileMaker sample script # Script name: Youseful - Schedule reminder # Plug-in: YsflSched.fmx64 (Windows x64) # Setup: First create Youseful - Reminder from reminder-callback.fmscript.txt. Keep the file open and let this script finish; the debugger must not remain paused. The first Cancel only removes a previous youseful-demo job; an unknown-job result on the first run is expected. # Expected: After at least five seconds and an idle opportunity, the callback displays Hello from Youseful. # Format: UTF-8 Script Workspace step listing. Add the steps manually; this is not an importable FileMaker file. # Lines beginning with # are notes; optionally add them as Comment steps. # Preserve calculation quotes, backslashes, and paragraph symbols exactly. Set Variable [ $cleanup ; Value: YsflSc_Cancel ( "youseful-demo" ) ] Set Variable [ $job ; Value: YsflSc_ScheduleIn ( "Youseful - Reminder" ; 5 ; "id=youseful-demo param=Hello from Youseful" ) ] Set Variable [ $error ; Value: YsflSc_LastError ] If [ $error <> 0 ] Show Custom Dialog [ "Scheduling failed" ; YsflSc_LastErrorText ] End If Exit Script [ Text Result: $job ]