home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / DT / DT023A.ZIP / INC-DOCS.LZH / APPNOTES.LZH / ARCHIVER.APP / EXAMPLE.ACT < prev    next >
Text File  |  1991-07-26  |  4KB  |  89 lines

  1. Read-me;Discussion of this EXAMPLE.ACT
  2.     ; Starting with version 1.01, InContext supports a number of "archiver"
  3.     ; programs, including ARC, ARCA/ARCE, PKPAK/PKUNPAK, LHA, PAK, and ZIP.
  4.     ; This file contains sample "Archive" and "Arc-all" action definitions
  5.     ; that illustrate how to move objects to compressed archive files created
  6.     ; by these various archivers.
  7.     ;
  8.     ; It is very unlikely that you will want to use the action in this form.
  9.     ; Most people only save their materials using one or two archivers, and
  10.     ; you should probably eliminate the others in the interest of simplicity
  11.     ; and memory conservation.
  12.     ;
  13.     ; It is recommended that you retain the LHA archiver capability, even if
  14.     ; you don't use it for archiving your own files, since InContext makes use
  15.     ; of LHA.  That will allow you to operate fully on the few special LHA
  16.     ; archives in your InContext installation directory.
  17.     ;
  18.     ; The easiest way to move these definitions into your own active environment
  19.     ; is to use the "cut-and-paste" feature of the editor.  First edit the
  20.     ; example procedure you want to copy, and "cut" the desired text.  (You can
  21.     ; either paste it back in place or exit without saving.)  Now edit the
  22.     ; "Common" or "Group" action definition you want to alter, and insert the
  23.     ; captured text.
  24.                                    
  25. Archive;Archive the object
  26.     !menu "Select archive type"
  27.         !choice "ARCA -- Creates or updates an ARCA archive"
  28.             !query 1 "Enter name of ARC archive" 12
  29.             !verify "OK to archive this object to '%1'?"
  30.             arca %1 %f
  31.             !delete %f
  32.         !choice "ARC -- Creates or updates an ARC archive"
  33.             !query 1 "Enter name of ARC archive" 12
  34.             !verify "OK to archive this object to '%1'?"
  35.             arc m %1 %f
  36.         !choice "PKPAK -- Creates or updates a PKPAK archive"
  37.             !query 1 "Enter name of PKPAK archive" 12
  38.             !verify "OK to archive this object to '%1'?"
  39.             pkpak m %1 %f
  40.         !choice "ARJ -- Creates or updates an ARJ archive"
  41.             !query 1 "Enter name of ARJ archive" 12
  42.             !verify "OK to archive this object to '%1'?"
  43.             arj m %1 %f
  44.         !choice "LHA -- Creates or updates an LZH archive"
  45.             !query 1 "Enter name of LHA archive" 12
  46.             !verify "OK to archive this object to '%1'?"
  47.             lha m %1 %f
  48.         !choice "PAK -- Creates or updates a PAK archive"
  49.             !query 1 "Enter name of PAK archive" 12
  50.             !verify "OK to archive this object to '%1'?"
  51.             pak m %1 %f
  52.         !choice "PKZIP -- Creates or updates a ZIP archive"
  53.             !query 1 "Enter name of PKZIP archive" 12
  54.             !verify "OK to move this object to '%1'?"
  55.             pkzip -mu %1 %f
  56.     !endMenu
  57. Arc-all;Archive the selected objects
  58.     !menu "Select archive type"
  59.         !choice "ARCA -- Creates or updates an ARCA archive"
  60.             !query 1 "Enter name of ARC archive" 12
  61.             !verify "OK to archive these objects to '%1'?"
  62.             arca %1 %m
  63.             !deleteGroup
  64.         !choice "ARC -- Creates or updates an ARC archive"
  65.             !query 1 "Enter name of ARC archive" 12
  66.             !verify "OK to archive these objects to '%1'?"
  67.             arc m %1 %m
  68.         !choice "PKPAK -- Creates or updates a PKPAK archive"
  69.             !query 1 "Enter name of PKPAK archive" 12
  70.             !verify "OK to archive these objects to '%1'?"
  71.             pkpak m %1 %m
  72.         !choice "ARJ -- Creates or updates an ARJ archive"
  73.             !query 1 "Enter name of ARJ archive" 12
  74.             !verify "OK to archive these objects to '%1'?"
  75.             arj m %1 %m
  76.         !choice "LHA -- Creates or updates an LZH archive"
  77.             !query 1 "Enter name of LHA archive" 12
  78.             !verify "OK to archive these objects to '%1'?"
  79.             lha m %1 %m
  80.         !choice "PAK -- Creates or updates a PAK archive"
  81.             !query 1 "Enter name of PAK archive" 12
  82.             !verify "OK to archive these objects to '%1'?"
  83.             pak m %1 %m
  84.         !choice "PKZIP -- Creates or updates a ZIP archive"
  85.             !query 1 "Enter name of PKZIP archive" 12
  86.             !verify "OK to archive these objects to '%1'?"
  87.             pkzip -mu %1 %m
  88.     !endMenu
  89.