• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: BIZARRE File Type returned...sometimes!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BIZARRE File Type returned...sometimes!


  • Subject: Re: BIZARRE File Type returned...sometimes!
  • From: "John W. Baxter" <email@hidden>
  • Date: Thu, 01 Jul 2004 15:57:35 -0700

On 6/30/2004 12:52, "Zachary Smestad" <email@hidden>
wrote:

> On Jun 29, 2004, at 10:13 AM, Michael Tompsett wrote:
>
>> I m running this script to search through folders and delete quark
>> files.
>>
>> Sometimes it works, sometimes it doesn't. It falls down when all FILE
>> TYPEs are wrongly reported as being: "x?Z" rather "XDOC" or "ESPF" or
>> whatever file type they really are.
>>
>> Sometimes this change takes place halfway though the running of the
>> script (hence the warning if it fails)!
>>
>> Anyway the script is below. Any idea why this is happening? Many Thanks
>> OSX 10.3.4, AS 1.9.3, Script Editor 2.0 (v43)
>> [snip]
>
> We have just recently seen this issue too. Unfortunately, we were
> trying to delete files that didn't have a "XPR3" creator, so the Quark
> files would be identified as "?r" and be deleted. It's a good thing
> the files could be recreated fairly easily.

Almost sounds as if some errant code stuffed four bytes of UTF-8 into a
place meant for four bytes of bytes.

And the flaw points up the danger of algorithms like "delete this thing if
it doesn't match the things I want to keep" as opposed to
"move the things I want to keep to a different directory, then rename this
directory something like 'deleteme' then rename the new directory to the
name this one had"

Delete is so permanent. ;-)

--John
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: BIZARRE File Type returned...sometimes!
      • From: Walter Ian Kaye <email@hidden>
  • Prev by Date: Re: Automator in OS 10.4 (Tiger)
  • Next by Date: Re: Determining when an app has quit
  • Previous by thread: Re: Automator in OS 10.4 (Tiger)
  • Next by thread: Re: BIZARRE File Type returned...sometimes!
  • Index(es):
    • Date
    • Thread