Here's an older method that I used back when FMP 5.5 was state of the art:
Go to layout [//select a layout with a field to receive the scanned barcode text]
Go To Field [//specify your barcode field here]
#Do the steps you need to create new record here
Set up your barcode scanner in keyboard emulation mode (Most scanners automatically work in this mode) and program a "post amble" (see your users manual) to add the enter keystroke to the end of your scan. (Keyboard enter)
Start the above script's endless loop and each time you scan a barcode, a new record will be created. Set up all buttons on your barcode scan layout to either exit or halt the above script so you have an easy way to exit the script when you are done scanning.
thank lot. working fine