| !ZapBoot - executed when Zap is first seen by the filer

| Make Zap pirate previously claimed filetypes
| Obey ZapCode:Config.KillEditor

| Claim file type(s) only if not yet claimed
Set Alias$ZapRunType IfVarSet Alias$@RunType_%%0 Then Else Set Alias$@RunType_%%0 Run ZapCode:ZapRunFile |%|%|*0

ZapRunType FFF

Unset Alias$ZapRunType

| Claim external edits only if not yet claimed
Set Alias$ZapEditType IfVarSet Alias$@EditType_%%0 Then Else Set Alias$@EditType_%%0 Run Run <Zap$Dir>.!Run

ZapEditType FFF

Unset Alias$ZapEditType

| Claim linked and embedded objects only if not yet claimed
Set Alias$ZapOLEType IfVarSet OLEServer$Type_%%0 Then Else Set OLEServer$Type_%%0 -N Zap -R /<Zap$Dir>

ZapOLEType FFD
ZapOLEType FFF

Unset Alias$ZapOLEType
