• 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: Read resource forks wit applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Read resource forks wit applescript (From: Alexander Födisch <email@hidden>)

  • Prev by Date: Re: newbie question on calling handlers and scope
  • Next by Date: Re: CD drive opener -- OS 9
  • Previous by thread: Read resource forks wit applescript
  • Next by thread: Re: Read resource forks wit applescript
  • Index(es):
    • Date
    • Thread