Using filetype command for IE

Sarah sarahr at genesearch.com.au
Thu May 15 21:12:01 EDT 2003


Here is an AppleScript that allows you to select a file of the type you 
want i.e. select an exiting IE document file, and will return the file 
type & creator code. You could run this from inside Rev if you wanted.

tell application "Finder"
	choose file with prompt "Select a file of the correct type:"
	set tFile to the result
	set tType to the file type of tFile
	set tCreator to the creator type of tFile
	return tType & tCreator
end tell

You should also be able to use the detailed file names to extract these 
codes, but I have found that they sometimes will only give "????????" 
where the AppleScript will give the real data.

Sarah


On Wednesday, May 14, 2003, at 03:16  am, RGould8 at aol.com wrote:

> Can anyone tell me what the 8-character file/creator-type is for 
> Internet Explorer on Mac OS X.  I need to use the filetype command to 
> change a text file to open in Internet Explorer, using a script in 
> Revolution.
>





More information about the use-livecode mailing list