home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_disks
/
200-299
/
ff289.lzh
/
TreeWalk
/
mginsert.ftw
< prev
next >
Wrap
Text File
|
1989-12-12
|
918b
|
27 lines
/*
* treewalk macro to insert the file name found into an mg buffer.
*
* Copyright (C) 1989 Mike Meyer
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 1, or any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
if ~show('Ports', 'mg') then do
address command
'run mg'
'waitforport mg'
end
address 'mg' 'rexx-insert "'arg(1) || arg(2)'\n"'
return 1