home *** CD-ROM | disk | FTP | other *** search
/ Maclife 39 / MACLIFE39.ISO.7z / MACLIFE39.ISO / FreeWare200 / インターネット / Fetch3.0.3J2.cpt / Fetch3.0.3J2 / Scripts例題 / FetchAE.h < prev    next >
Text File  |  1996-12-30  |  6KB  |  172 lines

  1. /*
  2.      FetchAE.h -- sample Apple Event code for Fetch
  3.      
  4.      Copyright ゥ 1996, Trustees of Dartmouth College
  5.      All Rights Reserved.
  6.      
  7.      Distribution and use of this code is hereby permitted, provided that any resulting
  8.      work includes the copyright statement above.
  9. */
  10.  
  11. #define    FETCH_APP_SIGNATURE        'FTCh'
  12.  
  13. #define    kAEFetchSuite            'FTCh'
  14. #define    kAEDownloadEvent        'Dnld'
  15. #define    kAEViewFileEvent        'VwFi'
  16. #define    kAEViewFileListEvent        'VwFL'
  17. #define    kAEPutIntoEvent            'PutI'
  18. #define    kAEFetchPutIntoItemsParam    'Itms'
  19. #define    kAEFetchPutIntoTextFormatParam    'TFmt'
  20. #define    kAEFetchPutIntoBinaryFormatParam    'BFmt'
  21. #define    kAESendFTPCommandEvent        'SndC'
  22. #define    kAEFetchSendFTPCommandsParam    'Cmds'
  23.  
  24. /* custom app properties (i.e. preferences) */
  25. #define    pWrapMargin            'pWrp'
  26. #define    pTextCreator            'pTCr'
  27. #define    pCacheTimeout            'pCTo'
  28. #define    pDecodeBinhex            'pBhx'
  29. #define    pDecodeMacbin1            'pMb1'
  30. #define    pDecodeMacbin2            'pMb2'
  31. #define    pDecodeAppleSingle        'pASg'
  32. #define    pDecodeMacHost            'pMHt'
  33. #define    pDecodeStuffit            'pSit'
  34. #define    pTickleServer            'pTkl'
  35. #define    pDownloadDir            'pDDr'
  36. #define    pUseDownloadFolder        'pUDF'
  37. #define    pDefaultPassword        'pDPw'
  38. #define    pDisplayMessages        'pMgs'
  39. #define    pUseTypeImage            'pTpI'
  40. #define    pOmitDotFiles            'pODF'
  41. #define    pDefaultTextFont        'pTFt'
  42. #define    pDefaultTextFontSize        'pTFS'
  43. #define    pDefaultTabWidth        'pTbW'
  44. #define    pDefaultBinaryType        'pBTp'
  45. #define    pDefaultBinaryCreator        'pBCr'
  46. #define    pTranslateISO            'pISO'
  47. #define    pShowSignonDialog        'pSSD'
  48. #define    pDefaultUploadTextFormat    'pUTF'
  49. #define    pDefaultUploadBinaryFormat    'pUBF'
  50. #define    pPassiveMode            'pPSV'
  51. #define    pMinimumDataPort        'pMnP'
  52. #define    pMaximumDataPort        'pMxP'
  53. #define    pUseSOCKSGateway        'pSks'
  54. #define    pSOCKSGatewayHost        'pSkH'
  55. #define    pSOCKSGatewayPort        'pSkP'
  56. #define    pUseProxyServer            'pPxy'
  57. #define    pProxyServer            'pPxS'
  58. #define    pDontProxyDomains        'pDPD'
  59. #define    pAutomaticDefaultToText        'pAuT'
  60. #define    pMaxCacheSize            'pMCS'
  61. #define    pOverwriteFiles            'pOvw'
  62. #define    pCaseSensitiveNames        'pCSN'
  63. #define    pDefaultBookmarkFont        'pDBF'
  64. #define    pDefaultBookmarkFontSize    'pDBS'
  65. #define    pAddTxtSuffixes            'pATS'
  66. #define    pAddHqxSuffixes            'pAHS'
  67. #define    pAddBinSuffixes            'pABS'
  68. #define    pEncodedNames            'pEcN'
  69. #define    pUseInternetConfig        'pUIC'
  70. #define    pAllowDuplicateConns        'pADC'
  71. #define    pInfoMacMirror            'pIMM'
  72. #define    pUMichMirror            'pUMM'
  73. #define    pAnarchieEmulation        'pAEm'
  74. #define    pDefaultShortcut        'pDSh'
  75. #define    pMysteryItemsAsFiles        'pMIF'
  76. #define    pDontUseOT            'pDUO'
  77. #define pIgnoreCache            'pIgC'
  78. #define    pTxferBufferSize        'pTBS'
  79.  
  80. #define    cTransferWindow        'cFWA'
  81. #define    cHelpWindow        'cFWB'
  82. #define    cTextWindow        'cFWC'
  83. #define    cBookmarkListWindow    'cFWD'
  84. #define    cShortcutWindow        'cFWE'
  85. #define    cTranscriptWindow    'cFWF'
  86.  
  87. #define    cFirstFWindow        cTransferWindow
  88. #define    cLastFWindow        cTranscriptWindow
  89.     
  90. #define    pTransferMode        'pTxM'        /* cTransferWindow properties */
  91. #define    pViewOrder        'pVOr'
  92. #define    pHostName        'pHNm'
  93. #define    pUserID            'pUid'
  94. #define    pPassword        'pPwd'
  95. #define    pStartDir        'pSDr'
  96. #define    pWorkDir        'pWDr'
  97. #define    pStatus            'pSta'
  98. #define    pCurrentItem        'pCrI'
  99. #define    pApproxSize        'pASz'
  100. #define    pBytesTransfered    'pBTx'
  101. #define    pElapsedTime        'pElT'
  102. #define    pTransferFormat        'pTFm'
  103. #define    pParentDir        'pPDr'
  104.  
  105. #define    pText            'pTxt'        /* cTextWindow, cTranscriptWindow, cHelpWindow properties */
  106.         
  107. //#define    pViewOrder    'pVOr'        /* cBookmarkList, cShortcutWindow properties */
  108. #define    pFileSpec        'pFSp'
  109. //#define    pIsModified    'imod'
  110.  
  111. #define    kTransferModeEnumeration    'TxMd'    /* pTransferMode enumeration */
  112. #define    kTransferAutomatic    'tAut'
  113. #define    kTransferBinary        'tBin'
  114. #define    kTransferText        'tTxt'
  115.  
  116. #define    cHostItem        'cFHA'
  117. #define    cHostFile        'cFHB'
  118. #define    cHostDirectory        'cFHC'
  119. #define    cURL            'cFHD'
  120.  
  121. #define    kFileFormatEnumeration        'FFmt'    /* pDefaultUploadTextFormat, pDefaultUploadBinaryFormat, */
  122. #define    eUnknownFileFormat        'Unkn'    /* pTransferFormat, kAEFetchPutIntoTextFormatParam, */
  123. #define    eTextFileFormat            'Text'    /* kAEFetchPutIntoBinaryFormatParam enumeration */
  124. #define    eWrappedTextFileFormat        'WTxt'
  125. #define    eRawDataFileFormat        'RawD'
  126. #define    eBinHexFileFormat        'BHex'
  127. #define    eMacBinary1FileFormat        'MBn1'
  128. #define    eMacBinary2FileFormat        'MBn2'
  129. #define    eAppleSingleFileFormat        'ApSg'
  130. #define    eMacHostFileFormat        'MHst'
  131.  
  132. #define    cFirstHostItemClass    cHostItem
  133. #define    cLastHostItemClass    cURL
  134.     
  135. #define    pHostItemType        'pTyp'    /* cHostItem, cHostFile, cHostDirectory properties */
  136. //#define    pName            'pnam'
  137. #define    pURL            'pURL'
  138. #define    pSize            'pSiz'
  139. #define    pModDate        'pMod'
  140.  
  141. #define    kHostItemTypeEnumeration    'HtTp'    /* pHostItemType enumeration */
  142. #define    kHostItemFile        'hFil'
  143. #define    kHostItemDirectory    'hDir'
  144. #define    kHostItemLink        'hLnk'
  145. #define    kHostItemUnknown    'hUnk'
  146.  
  147. #define    cBookmark        'cBmk'
  148.  
  149. //#define    pHostItemType        'pTyp'    /* cBookmark properties */
  150. //#define    pName            'pnam'
  151. #define    pURL            'pURL'
  152. #define    pHostName        'pHNm'
  153. #define    pUserID            'pUid'
  154. #define    pPassword        'pPwd'
  155. #define    pPath            'pPth'
  156. #define    pSize            'pSiz'
  157. #define    pModDate        'pMod'
  158.  
  159. extern OSErr FetchOpenURL(char *url, AEIdleUPP idleUPP);
  160. extern OSErr FetchPut(FSSpec *fspec, char *url, AEIdleUPP idleUPP);
  161. extern OSErr FetchGet(char *url, FSSpec *fspec, AEIdleUPP idleUPP);
  162. extern OSErr FetchViewFile(char *url, AEIdleUPP idleUPP);
  163. extern OSErr FetchItemExists(char *fname, Boolean *exists, AEIdleUPP idleUPP);
  164. extern OSErr FetchRenameItem(char *oldname, char *newname, AEIdleUPP idleUPP);
  165. extern OSErr FetchCreateDirectory(char *dirname, AEIdleUPP idleUPP);
  166. extern OSErr FetchSendCommand(char *cmd, char *url, AEIdleUPP idleUPP);
  167. extern OSErr FetchGetPreference(DescType propCode, AEDesc *valueDesc, AEIdleUPP idleUPP);
  168. extern OSErr FetchSetPreference(DescType propCode, AEDesc *valueDesc, AEIdleUPP idleUPP);
  169.  
  170.  
  171.  
  172.