• 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: file type question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file type question


  • Subject: Re: file type question
  • From: Doug McNutt <email@hidden>
  • Date: Thu, 9 Oct 2003 08:42:56 -0600

At 06:55 -0500 10/9/03, Jim Brandt wrote, and I snipped:
>However, I have several scripts that, under OS 9 used the following syntax:
> set theList to (every item of folder source1 whose file type is "TEXT")
>when run under OS X I get the following error:
> get every item of folder "HD1:Misc:" whose file type = "TEXT"
>--> Finder got an error: Can't get every item of folder "HD1:Misc:" whose file type = "TEXT".

I suspect that the real problem is that UNIX, and now Macintosh, files are not really classified by four character codes. Types and creators are rapidly being "corrected" into filename extensions.

But did you mean to change "is" into "="? I confess I'm not sure about the rules and have even tried "==" but you should certainly try it with a Clintonian meaning of is. And while you're at it use /Developer/Tools/GetFileInfo on some of the files to be sure the file type directory block is populated. It would not be if a file were created with a UNIX cat command.

--
--> There are 10 kinds of people: those who understand binary, and those who don't <--
_______________________________________________
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: file type question
      • From: Michelle Steiner <email@hidden>
References: 
 >file type question (From: Jim Brandt <email@hidden>)

  • Prev by Date: choose different Screen Saver
  • Next by Date: Re: file type question
  • Previous by thread: file type question
  • Next by thread: Re: file type question
  • Index(es):
    • Date
    • Thread