In response to a *very* helpful file posted by Albert,
Quote:--- In ecco_pro@yahoogroups.com, ecco_pro@yahoogroups.com wrote:
>
>
> Hello,
>
> This email message is a notification to let you know that
> a file has been uploaded to the Files area of the ecco_pro
> group.
>
> File : /Examples & Templates for Slang Rule/books.eco
> Uploaded by : albertschepers <as@...>
> Description : A File to catalogue documents and auto launch them
>
note: there is a LOT going on in that file, and the RULE explanations there are super helpful. THANKS!
Might want to experiment with [untested & might need tweek for syntax], a different approach for list selection. Ie. instead of nested iff's (which works), there is a (?) simpler way to same result:
imatch("pdf=Adobe,xls=Spread,wpd=WordPer,", gfv("File Name") + "=(.+?),") the first string is our choice list. It can be as long as want, will work with hundreds of choices. MAKE SURE TO END IT WITH A ","! *or*, a "blank" such as "wpd=WordPer,*end*".
the gfv(...) just gets the value you want, THIS COULD BE AN IMATCH ITSELF... ie. to take what is matched OUT of a larger context.
the + combines it with what follows,
= looks for an equals sign,
(.+?) matches up to the next ","
[apologize for not having time to test, this may need correction, etc., please test/correct as necessary. Hopefully the idea is helpful. ]