--- In [email protected], "Sheri" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> With a PowerPro script, do(filename) will launch a file using its
> associated program. How does that sound?
> 
> Regards,
> Sheri
>

If you want to run files with certain extensions with a special 
program, you can use:

In the command box of the button
.mydrop(_file_)

In a file mydrop.txt in your script folder
////start of script
args dropped
if (index(".pdf.jpg..."),"."++file.type(dropped)>= 0) do
do (dropped)
else
do("path to your viewer", dropped)
endif
////end of script
Not tested!

You may be able to squeeze this onto a button command and not need  
the script file, but above allows for easier changes.

Note that ".pdf..." has to be changed to include all the extensions 
that you do _not_ want to use your viewer program for.



Reply via email to