home *** CD-ROM | disk | FTP | other *** search
/ Multimedia Dogs / Multimedia Dogs v2.0.iso / mac / data / zsupport / XObjects / Windows / MISC_X 2.0 / MISC_X.TXT < prev   
Encoding:
Text File  |  1995-05-09  |  1.6 KB  |  30 lines  |  [TEXT/ttxt]

  1. -- Misc_X, Misc Utilities XObject v2.0
  2. Misc_X
  3. I      mNew
  4. X      mDispose
  5. S      mBootName                     -- get the name of the boot disk
  6. S      mWindowsDirectory             -- get the path to the Windows directory
  7. IS     mFileExists, filePath             -- return 1 if file is there, otherwise 0
  8. ISS    mCopyFile, sourcePath, destPath   -- return 1 if successful, otherwise 0
  9. IS     mFolderExists, folderPath         -- return 1 if folder exists, otherwise 0
  10. IS     mInsureFolder, folderPath         -- create a full path to the folder, return possible error
  11. XS     mDeleteFolder, folderPath         -- delete folder along with contents
  12. SS     mFileList, fontainerPath          -- return list of files in the folder
  13. SSSSS  mAsk, query, default, btnOK, btnCancel  -- dialog box that accepts user input
  14. SSSSS  mAnswer, query, btnL, btnM, btnR        -- alert type dialog box with variable number of buttons
  15. IS     mSpaceOnVol, volumeName     -- return the number of free bytes on volume
  16. IS     mDeleteGroup, groupName     -- delete program group under Windows
  17. ----
  18. -- Copyright 1994 Sanctuary Woods --
  19. --    written by Bob McKay and Brian Parkinson
  20. --
  21. -- Append folder name in mInsureFolder with a colon
  22. --   gXObject(mInsureFolder, the pathName & "bands:genesis:"
  23. --
  24. -- The mAsk dialog box returns the text field if btnOk clicked, otherwise the btnCancel text
  25. -- The mAnswer dialog box returns the text of the button clicked
  26. --
  27. -- For mAnswer dialog box, the number of buttons is variable
  28. --   gXObject(mAnswer, "Are you sure ?", "", "Yes", "No")  -- two buttons
  29. --   gXObject(mAnswer, "A simple alert box", "", "", "Ok") -- one button
  30.