I also wanted to test whether the second and subsequent
runs of the script might occur before the first run
has completed. So I tried:

command: [EMAIL PROTECTED](_file_)

@MoveFolder
static Folder RunCount
If (not Context) do
    RunCount = 0
    context = 1
    Folder = InputFolder
EndIf
    File.Move(_File_, Folder)
    RunCount = RunCount + 1
    Win.Debug(RunCount)
Quit

I made the Debug window OnTop so I could watch the timing
of how things happen, and I delayed for two minutes with the
InputFolder dialog open before selecting a folder.

Nothing appeared in Debug until I clicked OK in InputFolder's
dialog and then Debug showed 1 2 3 in the correct order.

Conclusion: When PowerPro's context menu item is executed for
several selected files, sending each _file_ to a script,
it does not send the second _file_ to the script until the
first run of the script for the first _file_ has finished.

Which looks like good programming IMHO.




------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hphrt6q/M=362329.6886308.7839368.1510227/D=groups/S=1706030409:TM/Y=YAHOO/EXP=1124004809/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to