On 6/26/06, brucexs <[EMAIL PROTECTED]> wrote: > 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
It looks easy enough. I'll give it a try this evening. As this should manage to do the job, I don't see any real need for any new features unless you just want to. Thanks for telling me how to do this! > 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. This makes sense. -- Randall Gridspace Consulting: http://www.gridspace.net/ Frugal Webmaster Blog: http://www.frugalwebmaster.net/ Software Gadgets Blog: http://softwaregadgets.gridspace.net/ ------------------------ Yahoo! Groups Sponsor --------------------~--> Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/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/
