Re: Identifying the file types
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.