home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_2.iso
/
files
/
698a.lha
/
Annotate_v1.8
/
OpenWithPattern.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1992-11-05
|
816b
|
32 lines
/**
**
** OpenWithPatern.rexx
**
** Annotate 1.8 and higher only
**
**/
OPTIONS RESULTS
address 'Annotate_Rexx' /* Address Ann's rexx port */
/* use one of Annotates built
in requesters to find out
what pattern they want */
REQUESTER LIST "'Pick a pattern:' '_Cancel' '#?(.c|.h|makefile)' '#?(.a|.asm|.i|makefile)' '#?(.rexx)'"
if RESULT ~== '_Cancel' then
do
set pattern RESULT /* Set pattern gadget in file requester */
oldpat = RESULT /* store the old pattern */
domenu open_new... /* Open a file in a new window */
set pattern oldpat /* set the pattern gadget back */
end