home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Meeting Pearls 3
/
Meeting_Pearls_III.iso
/
SYS
/
S
/
PatriciaSearch
< prev
Wrap
AmigaDOS Script File
|
1995-10-15
|
2KB
|
69 lines
.key Language/A,DB/A,DEV
.bra {
.ket }
CD {DEV}:Contrib/Patricia
Failat 26
Which >NIL: AmigaGuide
IF WARN
Path SYS:Utilities :C ADD
ENDIF
IF {DB} EQ "ALLDB"
; Environment-Variablen werden offenbar nach 128 Zeichen abgeschnitten. :-(
Set PatDB1 ":Index/PatriciaDB :Pearls/text/Gesetze/AmigaGuide-Gesetze/PatriciaDB"
Set PatDB2 ":Pearls/text/AmigaReport/PatriciaDB :Pearls/text/SciFi/PatriciaDB"
ELSE
Set PatDB1 "{DB}"
Set PatDB2 ""
ENDIF
:C/Version >NIL: 39
IF NOT WARN
Run >NIL: :C/NessyOpenLib :Pearls/dev/GUI/Triton/libs39/triton.library
Set CloseLibName :Pearls/dev/GUI/Triton/libs39/triton.library
ELSE
:C/Version >NIL: 37
IF NOT WARN
Run >NIL: :C/NessyOpenLib :Pearls/dev/GUI/Triton/libs37/triton.library
Set CloseLibName :Pearls/dev/GUI/Triton/libs37/triton.library
ELSE
IF {Language} EQ "deutsch"
:C/RequestString "Wonach soll gesucht werden?" "" ENV:MPPATPATTERN ENV:MPPATPATTERN
IF WARN
Skip endpatsearch
ENDIF
ELSE
:C/RequestString "What shall I search for?" "" ENV:MPPATPATTERN ENV:MPPATPATTERN
IF WARN
Skip endpatsearch
ENDIF
ENDIF
:C/ESCChars <ENV:MPPATPATTERN >ENV:MPPATPATTERN2
PSearch -s "$MPPATPATTERN2" -v ":C/MetaTool [] TEXT" -g ":C/MetaTool [] GUIDE" - $PatDB1 $PatDB2
Delete QUIET ENV:MPPATPATTERN2
QUIT 0
ENDIF
ENDIF
Assign >NIL: EXISTS MeetingPearls3:
IF WARN
Assign C: :C ADD
Set PatCName 0
ELSE
Set PatCName 1
ENDIF
:C/NessyWaitForLib $CloseLibName
PSearch $PatDB1 $PatDB2 TextViewer ":C/MetaTool [] TEXT" GuideViewer ":C/MetaTool [] GUIDE"
:C/NessyCloseLib $CloseLibName
IF $PatCName EQ 0
Assign C: :C REMOVE
ENDIF
LAB endpatsearch