home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 2 / BBS in a box - Trilogy II.iso / Files / Hyper / Q-R / ResGenie™ 1.0 / ResGenie™ / ResGenie™.rsrc / TEXT_206_movefiletwort.txt < prev    next >
Encoding:
Text File  |  1993-08-02  |  1.6 KB  |  43 lines

  1. if MovePathOne is MovePathTwo then
  2. beep
  3. close window MoveFileTwo
  4. do restext("TEXT", "Exit", colorauthoringpath)
  5. end if
  6. if there is not a window movefileone then
  7. answer "Do you want to continue to copy resources to" &&¬¨
  8. movefileone &"?" with "Yes" or "New"
  9. if it is "Yes" then do restext ("TEXT", "finishOne", colorauthoringpath)
  10. else do restext ("TEXT", "Makeonefile", colorauthoringpath)
  11. do restext("TEXT", "Exit", colorauthoringpath)
  12. end if
  13. if word 1 of what is "Added:" then
  14. beep
  15. do restext("TEXT", "Exit", colorauthoringpath)
  16. end if
  17. put what into process
  18. repeat with x = 1 to the number of chars in process
  19. get char x of process
  20. if it is ";" then put "," into char x of process
  21. end repeat
  22. put item 1 of process into ResType
  23. if  ResType is "Empty" then do restext("TEXT", "Exit", colorauthoringpath)
  24. put item 3 of process into ResID
  25. CopyRes MovePathTwo,MovePathOne, ResType,ResID
  26. if it is "Cancel" then do restext("TEXT", "Exit", colorauthoringpath)
  27. if it is empty then do restext("TEXT", "Exit", colorauthoringpath)
  28. if it is "Yes" then do restext("TEXT", "Exit", colorauthoringpath)
  29. if it is "Error: Copy aborted" then do restext("TEXT", "Exit", colorauthoringpath)
  30. put the text of window MoveFileOne into TheText
  31. put  process & return before line 1 of TheText
  32. put "Added: " before char 1 of line 1 of theTEXT
  33. set the text of window MoveFileOne to TheText
  34. if there is a window "Resource List" then
  35. if  movefileone is "Current Stack" then
  36. set the text of window "Resource List" to theTEXT
  37. end if
  38. end if
  39. if there is a window holdstackname then
  40. if "Browse: " & movefileone is holdstackname then
  41. set the text of window holdstackname to theTEXT
  42. end if
  43. end if