Low End Mac Reader Specials
TypeStyler For Mac OS X is Now Shipping! Download The Free Fully Functional 60 Day Tryout at www.typestyler.com
OWC: Mercury On-The-Go FW800+USB2 up to 1.0TB. Bus Powered, no external power supply needed. Macworld Editors Choice, CNET Very Good Starting from $99.97, 500GB $159.99. Click here
Don't install Parallels to play poker online! Poker Mac will show you how
to download and install a native Mac poker application such as Full
Tilt Poker Mac.
Laptop Hardware Provided by TechRestore - Overnight Mac & iPod Repairs.
Compare products like desktop computers, apple laptops, apple macs, and LCD Monitors side by side! All the information and reviews to make the best purchasing decision for new mobile phones, sat nav systems, or MP3 players. The Ciao online shopping community makes searching products easy for you.
Mac Lab Report
Create a Random Number Picker in AppleWorks
2001.01.16 -
Today's Agenda
Creating a random number database in AppleWorks
Occasionally a teacher discovers that they ask the same students to answer questions over and over because some students are more enthusiastic, while others are content to melt into the background. In order to bring more students into the discussion, I ask students at random - selected by a dice roll or by computer - to respond, just to make sure I'm getting to everyone.
This tutorial will have you create a little AppleWorks database that picks a random number from 1 to 100 and displays it on the screen. Along the way you will also learn about how you can create macros, or a memorized series of commands, in AppleWorks. (Did you even know AppleWorks had macros?)
This tutorial is based on AppleWorks 5 and ClarisWorks 4, but from what I've seen it should work pretty well for other versions, including 6.
1. Open AppleWorks and choose Create New Document, and select Database from the list.
2. When you do this, a dialog automatically appears which assumes you are ready to enter the fields for the database. A database field is like a blank on an index card that always requires the same kind of information. The title of a book on an old-fashioned library card catalog is an excellent example.
In this dialog, enter "Random number" and set the Field Type to Calculation. Then click "Create."

3. When you create this field, AppleWorks will ask you to define the calculation. Calculations can be numerical or text functions which act on the values of other fields, merge data together, compute formulas, and so on. In this case, select the "RAND" function from the list at the right and type 100 where the word "number" appears, or simply type
This tells the computer to select a random number from 1 to 100, integers only.

Use another value here if you want it to select numbers from 1 to 30, for picking students from a list, for example.
Using FileMaker Pro, you could set up a related database with student names in it and have the name of the student come up as a result of this random selection, but that's a topic for another day.
3. Now you have a database that will generate a new random number every time you create a new record. The rest of our steps are merely cosmetic, to make the random number appear easy to read when the database is displayed on a monitor, television scan converter, or projector (see last week's column).
Under the Layout menu, choose "Layout." This switches from the Browse mode (where you can flip through the index cards) to the Layout mode (where you can design the cards).
Once in Layout mode, select and drag the line underneath the random number field to make the body of the layout larger. You can select the line when the cursor changes from an arrow to a short horizontal line with arrows on top and bottom.

Make the body about as large as the visible window.
4. Change the size of the Random Number field by selecting a new font size - something 40 points or larger, depending on the resolution you have set your screen for. Pick a nice font if you like.
5. Add a background border or title using the drawing tools.
6. Next, switch back to Browse mode to see what your finished product will look like in use.
7. To use your database, simply select a new record cmd-R. This automatically generates a new random number. You can keep track of the number of times you have requested random numbers if you start with an empty database by choosing "Select All" and then "Delete Record".
Writing a function key macro
In my random number picker, I have a function key (F5) assigned to run a macro, (a series of prerecorded steps). My macro does the following thing each time I press F5:
- Selects all records
- Deletes all records
- Creates 5 new records
The creation of 5 new records adds a touch of dramatic flair to the random picker. It is sort of like seeing the balls pop around in the Lotto machine - it adds to the anticipation. This part of the tutorial will show you how to create this macro.
1. First, go to the File menu and select Macros: Record Macro.
2. In the dialog box that appears, make sure you pick "Document Specific." Otherwise, your macro will only work on your particular copy of AppleWorks.

Give the Macro a name such as "Pick a random number", and choose the Function Key radio button and press F5 - or whatever key you prefer.
3. Select Record. From this point on, everything you do is recorded.
4. Go to the Edit Menu and select "Select All."
5. Go to the Edit Menu and select "Delete Record."
6. Go to the Edit Menu and select "New Record." Repeat for as many times as you want the screen to display your random number before stopping.
7. Finally, go the the Macros command under the File menu and select "Stop Recording."
8. Press F5 to test your new random number picker.
This tutorial is presented not as the ultimate use of a database or a macro, but just to introduce you to the possibilities.
By the way, FileMaker Pro is a much more powerful program than AppleWorks. It can handle related databases, and you can edit your scripts using the powerful programming language embedded within it. It is also fairly impervious to grammatical (programming) errors because the commands are selected from menus similar to the function list above. An adept user of FileMaker Pro can do almost anything a former user of HyperCard could do. (Ah, don't get me started on HyperCard. Steve, Steve, we miss HyperCard. We really do.)
Next week we'll be looking at creating your own library of graphics
in AppleWorks, and sharing the libraries with others.
Jeff Adkins is a science teacher who isn't afraid to state his preferences in computing platforms. In his classroom he has everything from a beige All-in-One to a a G4 XServe, and they all work together nicely. He calls himself the "poster child for technology integration" in the classroom. He was the 2006 Outstanding Educator of the Year for the California Computer Using Educators (CUE) organization. He also maintains a site for astronomy teachers at www.AstronomyTeacher.com.
Recent Mac Lab Reports
- Microsoft Word 2004 vs. iWork Pages 1.0 for writing a book, 01.10. Microsoft Word is great for technical writing, powerful yet slow, while Pages lets you concentrate on just writing, making it great for novels.
- iWeb a great tool for quickly creating an attractive website, 09.11. Apple's iWeb software isn't just easy to use, it also integrates nicely with .mac and other programs in the iLife bundle.
- Use your Bluetooth phone to control your Mac? Maybe, 02.27. Salling Clicker software turns many Bluetooth phones into remote controls for Bluetooth-equipped Macs.
- Two more markets the iPhone could conquer, 02.01. How Apple could redefine the ebook and calculator markets with a pair of free apps for the iPhone.
- More in the Mac Lab Report index.
Links for the Day
- Mac of the Day: Power Mac G5 Quad, Oct. 2005 - With two 2.5 GHz dual-core G5 CPUs, the G5 Quad was the most powerful PowerPC Mac ever and introduced PCI Express.
- Group of the Day: Mac Network deals with all aspects of Mac networking.
- November 21 in LEM history: 00: OS upgrades, downgrades - AltiVec vs. Pentium III - 01: Saved by the clones - Computer of the future - 02: Apple Education: Let's get to it - 03: Panther lets Macs and PCs work together, - Lombard SCSI bug - 05: 3 survivors from the 1970s - Real world battery life inadequate - Windows to Mac file transfer with Zip disks - $99 alternative to Microsoft Office - 06: Parallels 1.0 far more polished than beta
- Support Low End Mac
Recent Content on Low End Mac
- Apple's Tablet an End Run Beyond Netbooks, Frank Fox, Stop the Noiz, 11.20. Whatever Apple has planned will leverage existing technologies while going beyond what its competitors can offer.
- NASA Chemical Sensor for iPhone, Smartphone Death Match, iPhone Earrings, and More, Ian R Campbell, 11.20. Also mobile phone dangers, new apps, GPS solution for iPod touch, new iPod and iPhone cases, and more.
- i5 iMac Benchmarked, Mac mini 'Shouldn't Be Overlooked', Twitter Client for Classic Mac OS, and More, Mac News Review, 11.20. Also why Apple leaves the low end to others, 10.6.2 fixes video playback problem in 27" iMac, 3D Leopard and Snow Leopard performance, and more.
- Apple #4 in Reliability, Apple Tablet a Gadget for All?, HP's i7 Notebook Outdoes Mac Rivals, and More, The 'Book Review, 11.20. Also Flash 10.1 improves video on Hackintosh netbooks, thin-and-light notebooks impress, Windows XP finally on the way out, and more.
- Replacing the Hard Drive in a Clamshell iBook, John Hatchett, Recycled Computing, 11.19. Yes, it is one of the most difficult Apple notebooks to disassemble and reassemble, but a 10 GB hard drive just will not do.
- IBM Model F: A Great Old Keyboard with an Outdated Layout, Tommy Thomas, Welcome to Macintosh, 11.19. Although it used a different technology than the revered IBM Model M keyboard, the Model F was a great keyboard in its own right.
- Soft Touch Keyboards, Wireless Mouse Options, Loving SeaMonkey 2, and More, Charles W. Moore, Miscellaneous Ramblings, 11.18. Also the future of browsing with PowerPC Macs and the multiple mouse input bug introduced with OS X 10.5.8.
- More links in our archive.
Recent Deals
- Best eMac Deals, 11.18. Used 1 GHz Combo, $100; SuperDrive, $269; 1.25 GHz Combo, $119; SD, $319; 1.42 GHz Combo, $289; SD, $498.
- Best Mac OS X 10.6 and Mac Box Set Deals, 11.18. "Snow Leopard", single user, $25; 5 users, $45; Mac Box Set, single user, $139; 5 users, $180; Server, $414. Shipping included.
- Best Xserve Deals, 11.18. Used 1 GHz dual G4, $649; 2.3 dual G5, $795; 3.0 4-core Xeon, $1,899; refurb 2.26 4-core, $2,499; new, $2,888; refurb 8-core, $2,999; new, $3,449; more.
- Best 15" MacBook Pro Deals, 11.17. Used 1.83 GHz, $750; 2.16, $800; 2.33, $900; refurb 2.4, $1,299; 2.53, $1,449; 2.66, $1,699; 2.8, $1,899; new 2.53, $1,579; 2.66, $1,799; more.
- Best Power Mac G4 and AGP Video Card Deals, 11.17. Used 400 MHz, $50; 933 MHz, $80; 500 dual, $60; 867 dual, $90; 1 GHz dual, $150; 1.25 GHz dual, $225; 1.42 GHz, $499.
- Best Mac OS X 10.5 Deals, 11.17. "Leopard" upgrade, $80; single user license, $135; 5 users, $173; Mac Box Set, 5 users, $230; Server, 10 users, $340; unlimited, $850. Shipping included.
- Best Mac mini Deals, 11.16. Used 1.42 GHz G4 mini, $379; 1.66 GHz Core Solo, $419; 2.0 Core 2, $450; new 2.26 GHz nVidia, $580; 2.53 GHz, $769; Server, $990.
- Best iBook G4 Deals, 11.16. Used 12" 1.07 GHz Combo, $210; 1.33 GHz, $298; 14" 1.33 GHz, $398; 1.42 GHz, $479; SuperDrive, $498.
- Best iPod shuffle Deals, 11.16. Used 1 GB, $35; 4 GB, $65; refurb 1 GB, $39; 2 GB, $59; new 2 GB, $55, 4 GB, $75. New and refurb prices include shipping.
- More deals in our archive.
About LEM | Support | Usage | Privacy | Contacts
Navigation
Used Mac Dealers
Apple History
Video Cards
Email Lists
Favorite Sites
MacSurfer
MacMinute
MacInTouch
MyAppleMenu
InfoMac
Macs Only!
The Mac Observer
Accelerate Your Mac
RetroMacCast
PB Central
MacWindows
The Vintage Mac
Museum
DealMac
DealsOnTheWeb
Mac2Sell
ramseeker
Mac Driver Museum
JAG's House
System
6 Heaven
System 7 Today
the pickle's Low-End
Mac FAQ
Abandonware
Petition
Mac vs. PC Info
Affiliates
The Apple
Store
Mac
Connection
B&H
MacMall
TechRestore
ExperCom
Crucial
Memory
batteries.com
Advertise
MacMinute
MacInTouch
MyAppleMenu
InfoMac
Macs Only!
The Mac Observer
Accelerate Your Mac
RetroMacCast
PB Central
MacWindows
The Vintage Mac
Museum
DealMac
DealsOnTheWeb
Mac2Sell
ramseeker
Mac Driver Museum
JAG's House
System 6 Heaven
System 7 Today
the pickle's Low-End
Mac FAQ
Abandonware
Petition
Mac vs. PC Info
Mac Connection
B&H
MacMall
TechRestore
ExperCom
Crucial Memory
batteries.com
