LNS Home
Script Debugger
Download & Buy
x Explore
x Edit
x Run & Debug
x Deploy
What's New In 4.5
bullet Documentation
bullet Blog Posts
My SD Story
Software Updates
 
4.0.9 Update
3.0.9 Update
bullet 2.0.5 Update
x Free Downloads
 
XML Tools
XSLT Tools
x Property List Tools
x List & Record Tools
Register Your Copy of Script Debugger
Join the Script Debugger Mailing List
x AppleScript/ Scripting Links
Products
x Script Debugger 4.5
Site Contents
bullet Mark’s Blog
Product Registration
Bug Reporting
x Freeware
Contacting Us

SD4 Headling


image

Glossary: Fork

image

In the earliest days of the Macintosh file system, a structure was devised whereby a file could have two pieces, the data fork and the resource fork. The data fork was a single thing, and was just for data (like the text of a TeachText / SimpleText file). The resource fork was for secondary information, and could contain many resources, accessible by category and name or number, as in a kind of miniature database (so, for example, style information in a TeachText / SimpleText file).

When Mac OS X was introduced, Apple undertook a concerted effort to deprecate the resource fork, because it wasn’t a standard Unix file system thing (in fact, a Macintosh file moved to another file system, such as Windows or true Unix, will usually lose its resource fork). As part of this effort, a new format for compiled script files was devised, where the bytecode was kept in the data fork instead of the resource fork.

Ironically, Apple has recently realized that resource forks are a good thing (because they provide a place to put file metadata) and has reversed course — they’ve modified the file system so that a file can now (starting with Tiger, Mac OS X 10.4) have any number of extra forks.



Explore | Edit | Run & Debug | Deploy | What's New In 4.5 | My SD Story


Copyright © 1998-2009 Late Night Software Ltd. - All Rights Reserved.