home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / 248 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  2.7 KB

  1. Xref: sparky comp.sys.mac:248 comp.sys.mac.misc:15458
  2. Path: sparky!uunet!psinntp!notable!oberon!daven
  3. From: daven@notable.com (Dave Newman)
  4. Newsgroups: comp.sys.mac,comp.sys.mac.misc
  5. Subject: Re: STUFFIT SKIPPING Alternate Files in Script Execution!!!
  6. Date: Tue, 25 Aug 92 22:21:25 PST
  7. Organization: Notable Technologies, Inc.
  8. Message-ID: <01058004.c0on4w@oberon.notable.com>
  9. Reply-To: daven@notable.com
  10. Distribution: usa
  11. X-Mailer: uAccess LITE - Macintosh Release: 1.5v4
  12. Lines: 48
  13.  
  14.  
  15. In article <1992Aug25.150814.24089@news.columbia.edu> (comp.sys.mac,comp.sys.mac.misc), ia4@cunixa.cc.columbia.edu (Imran Anwar) writes:
  16. | Hi.  I have had a Stuffit script running fine for several months.  It
  17. | looks in a folder, creates a new .sit file and stuffs all files which
  18. | have names begining with 1,   eg 1000, 1001, etc. and deleting files it
  19. | stuffs
  20. | Today it has gone bonkers!
  21. | It is stuffing only every alternate file, eg
  22. | 1000,1002,1004....or 1001,1003,1005...depending on whether the top file
  23. | is even or odd numbered!
  24. | Any ideas what is happening?
  25.  
  26. This is a problem I reported to Aladdin regarding StuffIt 2.0 scripts. I'm
  27. assuming you're running StuffIt 2.0 and not the latest version, 3.0. I wasn't
  28. able to find a work around then, except to manually delete (in the Finder)
  29. after running the StuffIt script.
  30.  
  31. As to what is happening. It's works like this. StuffIt queries the directory
  32. for how many files it has, and the directory answers, say 10. Next StuffIt
  33. uses a file system call that allows it to access the files in the directory
  34. by an index, i.e. file #0, file #1, etc. StuffIt then stuffs the first file,
  35. (file #0) and then deletes it. StuffIt then stuffs the second file (file
  36. #1) and the deletes it. And so on.
  37.  
  38. However, the instance you delete a file, the directory then renumbers the
  39. files! Thus if you delete file #0, then file #1 now becomes file #0.
  40. StuffIt 2.0 does not compensate for this and deletes file #1, which was
  41. formerly file #2. The end result is that files #1, #3, #5, etc. are never
  42. deleted. (You noted that sometimes only even numbered files are deleted,
  43. I believe this is because the file system orders the files a bit differently
  44. than Finder does in it's displays.)
  45.  
  46. The solution for this given example, as strange as it may seem, is to always
  47. delete file #0 until you have deleted it 10 times.
  48.  
  49. --Dave
  50.  
  51. -----------------------------------------------------------
  52. Dave Newman                 |  AOL:      AFC Tinman
  53. Artillery Spotter           |  ALink:    TINMAN
  54. Notable Technologies, Inc.  |  CIS:      70743,3323
  55. Voice:    510.208.4449      |  internet: daven@notable.com
  56. FAX:      510.444.4493      |  
  57. -----------------------------------------------------------
  58.