dbTalk Databases Forums  

Problem with "Send Event" Script Step

comp.databases.filemaker comp.databases.filemaker


Discuss Problem with "Send Event" Script Step in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sam McSpadden
 
Posts: n/a

Default 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



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.