• 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: Identifying the file types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Identifying the file types


  • Subject: Re: Identifying the file types
  • From: Doug McNutt <email@hidden>
  • Date: Mon, 26 Jan 2004 15:29:45 -0700

An obvious thing would be to ask the Finder which application would be the user's default to open the file. That way all of the rules about precedence of Classic file type and extension would be applied in the Apple way. But. . . I'll bet Finder won't do that for you. Is "preferred APPL" a property of a file?

do shell script "file POSIX path of . . . " will look into the internals of the actual file and do a good job of reporting "standard" file types. It may fail with Apple-only things like PICT.

man file

for details.

Graphic Converter used to ignore files it couldn't read while doing a slide show.

--
--> 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: Identifying the file types
      • From: Shane Stanley <email@hidden>
References: 
 >Identifying the file types (From: Takashi Yoshida <email@hidden>)
 >Re: Identifying the file types (From: Graff <email@hidden>)

  • Prev by Date: Re: Multiline awk needs debugging
  • Next by Date: Re: ASCII vs. MacRoman (was Re: Standard Additions 'read' command - basic questions)
  • Previous by thread: Re: Identifying the file types
  • Next by thread: Re: Identifying the file types
  • Index(es):
    • Date
    • Thread