> a) If one or more files were dropped on the button, it executes a series of > commands for each file dropped > b) if no files were dropped (i.e. the button was pressed), it does something > else. >
I guess I could implement something like cl.lastpresstype which would return "Hover", "Press", or "Drop". But the following works now. Use as the button command .myscript (?*|*) The blank before the ( is important because of internal logic in PowerPro where blanks influence where the file name goes. Now myscript script contains args files if (length(files)==1) do ;; stuff for press else ;; stuff for dropped endif By the way, I notice that I don't set _file_ for dropped files. I guess I should do this. For bacdkward compatibility, PowerPro has to add the file name to the end of the line no | appears. But if you are using _file_, you would not want dropped file name at the end of a line, most likely, so I will change it to say that if _file_ appears anywhere in the command line, then the dropped file is not added. ------------------------ Yahoo! Groups Sponsor --------------------~--> Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/JV_rlB/TM --------------------------------------------------------------------~-> 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/
