Problem with "Send Event" Script Step -
10-15-2005
, 11:53 AM
I'm having problems with the "Send Event" script step in FileMaker Pro 8
Advanced (running on Windows XP). I am using the following three script
steps to copy an existing text file from one folder to another folder and
rename the copied file to give it a ".html" extension. The "Send Event" step
makes use of the Windows command processor. The three script steps are shown
below.
Set Variable [$cmdstring1; Value:"cmd /c copy " & "\"" & $pathstring1 &
"*.txt\" & " \"" & $pathstring2 & "*.html\""]
Send Event ["avet"; "odoc"; $cmdstring1]
Pause/Resume Script [Duration (seconds): 3]
Everything works fine as long as I place the "Pause" step after the "Send
Event" step to give the system time to execute the command before going on
to the next script step. However, this seems to be a real Kludge and there
must be a more elegant way to accomplish the same thing (without plug-ins).
Also, I suspect that the required delay in the "Pause" step would be highly
dependent on the speed of the system the script runs on. Any suggestions or
ideas?
Thanks,
Sam McSpadden |