<h1>Sample Code</h1><p><a href="sample-code/Add30Days.sit">30 Days</a><br><span style="font-size: 12px">This is how you add 30 days (or any amount of time) to a date.</span></p><p><a href="sample-code/AppleScriptFB.sit">AppleScript Examples in FB</a><br><span style="font-size: 12px">A plethora of FB-executed AppleScripts show how to do things like create an Appleworks doc, list folders at the root level, put lipstick on a lizard.</span></p><p><a href="sample-code/BitCheater.sit">Bit Cheat Sheet</a><br><span style="font-size: 12px">I am so bit-challenged that they made me ride the short bus to programmer's school. That's why I made this handy cheat sheet to help me pass the final exam.</span></p><p><a href="sample-code/BringWindowsForward.sit">Bring Windows Forward</a><br><span style="font-size: 12px">When one window in an application is clicked, bring all of the application's windows forward.</span></p><p><a href="sample-code/cfutil.sit">CF Utilities</a><br><span style="font-size: 12px">Ten helper functions for everything from comparing Core Foundations strings, to setting menu items, to setting window titles.</span></p><p><a href="sample-code/ComputerName.sit">Computer Name</a><br><span style="font-size: 12px">You can refer to a computer by name using this utility. Besides, it's much more polite.</span></p><p><a href="sample-code/redirect/cfpref_redirect.html">CF Preferences</a><br><span style="font-size: 12px">If you really want to do things the Apple way, why not try handling your prefs with Core Foundations strings. This will get you started.</span></p><p><a href="sample-code/DBFD.sit">Data Browser</a><br><span style="font-size: 12px">Now version 2.0. Eleven easy to follow examples show the power of the data browser - [Data Browser for DumDums]. </span></p><p><a href="sample-code/DisplayInFinder.sit">Finder - Display file from code</a><br><span style="font-size: 12px">Use a one-line call to display a file (via FSSpec) in the Finder. When you make this function call, the system does a context switch to the Finder, opens the proper folder, displays and selects your file. Wow!</span></p><p><a href="sample-code/FileWritable.sit">File Writable</a><br><span style="font-size: 12px">This FN will absolutely, positively tell you if it is possible to write to a file.</span></p><p><a href="sample-code/FlushVolume.sit">Flush Volume</a><br><span style="font-size: 12px">Flush volumes [even in OS X] so that server info is instantly updated.</span></p><p><a href="sample-code/functionCounter.sit">Function Counter</a><br><span style="font-size: 12px">The 'STAZ' resource holds a secret... It knows how many functions there are in your program. Here is the key to solving a mystery?</span></p><p><a href="sample-code/hasp.sit">Hasp Routines</a><br><span style="font-size: 12px">Want to protect your software with a Hasp usb, hardware lock? Bill Sanford has provided this simple project to show you how it is done.</span></p><p><a href="sample-code/helpProj.sit">Help Project</a><br><span style="font-size: 12px">This help project (built with a Program Generator shell) sports a clean scrolling list on the left and a tool bar across the top. The tool bar includes a home icon and also allows you to print or exit. The html display is clean and allows access to the outside world with clicks to any url.</span></p><p><a href="sample-code/LaunchWApp.sit">Launch File w/ App</a><br><span style="font-size: 12px">Launch a file with a specific application. Kind of like eating peas with a particular knife.</span></p><p><a href="sample-code/OpenC.sit">Open 'C' Example</a><br><span style="font-size: 12px">Use the KeySpan adapter to access serial ports from FB. Milk and sugar available on request.</span></p><p><a href="sample-code/PathName.sit">Path Name</a><br><span style="font-size: 12px">Here is a clean [toolbox] method for getting a pathname from a file spec record. It returns the result in a handle since it may easily be more than a 255 byte string.</span></p><p><a href="sample-code/RezLib.sit">RezLib</a><br><span style="font-size: 12px">Do screen fades, reset monitor resolution, and more. Works in OS 9 and OS X.</span></p><p><a href="sample-code/SwitchingToFB.sit">Switching to FB Example</a><br><span style="font-size: 12px">This is the complete application demonstrated in the 'Switching to FutureBASIC' book shipped with Release 7.</span></p><p><a href="sample-code/timeout.sit">Timing Out Beta Copies</a><br><span style="font-size: 12px">This sample code shows how to automatically time out beta copies of your software without lifting a finger. As it is built, each beta application is automatically set to expire in 30 days (or some other period of your choosing).</span></p><p><a href="sample-code/UnixFileScan.sit">UNIX File Scan</a><br><span style="font-size: 12px">Ken's UNIX file scan [by path name] will kick the butterbeans out of most search routines.</span></p><p><a href="sample-code/UpdateButton.sit">Update Appearance Button</a><br><span style="font-size: 12px">The fool proof way to set a button and ensure that the change shows up in an appearance window. [Fool not included.]</span></p>