Re: Read resource forks wit applescript
Re: Read resource forks wit applescript
- Subject: Re: Read resource forks wit applescript
- From: Emmanuel <email@hidden>
- Date: Wed, 23 Jun 2004 16:44:43 +0200
At 4:07 PM +0200 23/06/04, Alexander Fvdisch wrote:
>
The Macintosh stores the type of a file and the application which belong to the file in resource forks.
I'm not completely sure to understand this statement.
>
Now we had the idea to write an applescript which read out the resource fork for every file and attach the right windows ending on the file.
>
Does someone has an idea? I don't know how an Mac stores the filetype.
I think that to get the file type of a file you can use either Finder or "info for":
--------------------------
tell app "Finder" to set theType to file type of the_file
--------------------------
or
--------------------------
set theType to file type of (info for the_file)
--------------------------
But I'm afraid that the file type is not in a resource you can read.
Emmanuel
_______________________________________________
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.