Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Another, still easier way.' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Another, still easier way.
Authored by: gf on Dec 05, '01 06:43:13PM

Or do this (using the dreaded Terminal application), using the "Optima" font as an example:

cd /Library/Fonts
touch Optima
cp Optima.dfont Optima/rsrc
SetFile -t FFIL -c DMOV Optima

then move the resulting "Optima" file to your OS 9 fonts folder.

The explanation:
"cd" just makes the OS X "Fonts" folder the current directory. All this line does is save typing. (Without it, you'd have to keep typing the full name of the font files over and over.)
"touch" creates the new OS 9 font file. (OS 9 won't recognize it yet, though.)
"cp" copies the data fork of the OS X font file to the resource fork of the OS 9 file.
"SetFile" marks the new file as an OS 9 font file. Note that you really do have to type it "SetFile", with a capital S and F. Also, FFIL and DMOV *must* be all caps.

I don't know offhand whether "SetFile" is part of the Developer Tools, since I have them installed. Even if it is, anyone inclined to this sort of hackery really should have the Tools available, especially as they're free.



[ Reply to This | # ]
Another, still easier way.
Authored by: charlietuna on Dec 06, '01 10:15:43AM

excellent! fyi SetFile is part of the developer tools.



[ Reply to This | # ]
Swapping forks from the command lne
Authored by: sabi on Dec 06, '01 12:13:49PM

I wrote a function for zsh that does something similar:

swapforks () {
cp $1/data $1.data
cat $1/rsrc >| $1/data
cat $1.data >| $1/rsrc
rm $1.data
}

so you just tell a file to 'swapforks', and it exchanges the data and
resource forks. That works for me until I can afford the upgrade to
Resorcerer 2.4.

Another good one is to clear the type/creator of a file:

ClearHFSMetadata: aliased to SetFile -t '' -c ''

which you sometimes want to do, and File Buddy doesn't (or didn't) let
you do this.



[ Reply to This | # ]