Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I know that on Mac OS X, you can take a screen capture of the entire screen with Command+Shift+3 and you can take a screen capture of just a selection (or a window) with Command+Shift+4. Is there a rationale for this keyboard combination? What is the history of that command? Where does Command+Shift number originate from?

share|improve this question
2  
Everybody, here's a hint: ResEdit, and FKEYs :-) –  Josh Nov 18 '10 at 23:57
    
does that mean you already know the answer? :P –  Robert S Ciaccio Nov 19 '10 at 4:39
    
@calavera I do know the answer and will answer the question myself soon if nobody else does :-) –  Josh Nov 21 '10 at 21:25
add comment

2 Answers

up vote 7 down vote accepted

What’s an FKEY?

FKEY’s (Function Keys) are resources containing executable code that are called upon by hitting the keys Command-Shift-# (any number 0-9) at the same time. In the standard System file there are two FKEY’s; with an ID#3 and #4 that are used to dump the current screen or window onto disk or printer.1

alt text

So far as I can remember/find, screenshot commands were first added to the OS itself in System 6.2


1 Text and image from FKEY that runs other FKEYs! by John Holder (MacTech magazine, 1988)

2 Further reading/references: Mel's Macintosh Universe: Macintosh Plus and a forum posting from 2003, How do I take a screen shot (the latter of which features some guy named Chealion).

share|improve this answer
    
I figured I'd answer it, given that it's been more than a couple of days since Josh's hint. –  Dori Nov 22 '10 at 5:06
1  
Nice answer Dori! Did you ever use custom FKEY s? –  Josh Nov 22 '10 at 17:15
    
I guess now have to admit that the first Mac I ever owned was an LC with System 7 (back in 1991). So no, I don't have much personal experience with FKEYs. –  Dori Nov 23 '10 at 0:20
add comment

Dori's answer was correct, but I figured I'd add just a little more history. Early Mac Keyboards did not contact Function Keys (F1 through F12 etc). In place of Function Keys, they allowed the user to type Command+Shift+1 through Command+Shift+9.

Prior to Mac OS X, the system software contained a "Suitcase" called "System". This was the heart of Mac OS classic, and contained the code necessary to boot and run the machine. However this code was not located in the data fork of the file, it was located in the proprietary Mac OS Resource Fork which is set up like a database -- every resource has a type, which is a four byte value, and an ID.

Prior to Mac OS 9, all application code was in resources of type CODE. In the system suitcase, there was a special resource of type FKEY. These were essentially just CODE resources, with the exception that FKEY resources 0 - 9 would be executed when the corresponding Command+Shift+number key was pressed.

If I recall correctly, the Command+Shift+1 FKEY ejected the floppy and the Command+Shift+2 FKEY ejected the floppy in the second drive (external or of a two-floppy Mac (e.g. some SE/30s)). But there were software developers out there who made FKEYs. I remember as a kid having all the open FKEY "slots" filled. One let me draw freehand on the screen (my love for freehand circles started early :-) and one put the Mystery Science Theater 3000 characters at the bottom of my screen.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.