AnsweredAssumed Answered

equivalent of keystroke return in iOS for Filemaker GO and CNS Barcode

Question asked by TomGilbey on Feb 24, 2012
Latest reply on Feb 27, 2012 by disabled_JackRodgers

Title

equivalent of keystroke return in iOS for Filemaker GO and CNS Barcode

Post

I'm new to FM Go and this may be very simple but I can't find anything and need help.

I'm using CNS Barcode with Filemaker Go to scan student ID cards.
My scan comes back fine with the copied barcode value in the desired field but doesn't automatically find the record until I manually press "paste" in Filemaker Go.  I added an Applescript at the bottom of my fmp7 script which works in Mac OSX.
How do I get Filemaker Go to do the equivalent of keystroke return in iOS instead of manually pressing "paste" after each time I scan an ID card?
 
My script is as follows:
Open URL [No dialog; "cnsbarcode://scan?method=camera&launchurl=fmp7script%3A//%24/" & Get ( FileName ) & "%3Fscript%3DScan%26param%3D::SCHOOL::ID Number::"]
Enter Browse Mode []
Go to Layout ["Student Menu" (SCHOOL)]
Go to Field [SCHOOL::ID Number]
Enter Find Mode []
Paste [Select; No Style; SCHOOL::ID Number]
Perform Applescript [tell application "fmp7"
    activate
tell application "System Events"
        keystroke return
    end tell
end tell
]

Outcomes