• MacTech Network:
  • Tech Support
  • |
  • MacForge.net
  • |
  • Apple News
  • |
  • Register Domains
  • |
  • SSL Certificates
  • |
  • iPod Deals
  • |
  • Mac Deals
  • |
  • Mac Book Shelf

MAC TECH

  • Home
  • Magazine
    • About MacTech in Print
    • Issue Table of Contents
    • Subscribe
    • Risk Free Sample
    • Back Issues
    • MacTech DVD
  • Archives
    • MacTech Print Archives
    • MacMod
    • MacTutor
    • FrameWorks
    • develop
  • Forums
  • News
    • MacTech News
    • MacTech Blog
    • MacTech Reviews and KoolTools
    • Whitepapers, Screencasts, Videos and Books
    • News Scanner
    • Rumors Scanner
    • Documentation Scanner
    • Submit News or PR
    • MacTech News List
  • Store
  • Apple Expo
    • by Category
    • by Company
    • by Product
  • Job Board
  • Editorial
    • Submit News or PR
    • Writer's Kit
    • Editorial Staff
    • Editorial Calendar
  • Advertising
    • Benefits of MacTech
    • Mechanicals and Submission
    • Dates and Deadlines
    • Submit Apple Expo Entry
  • User
    • Register for Ongoing Raffles
    • Register new user
    • Edit User Settings
    • Logout
  • Contact
    • Customer Service
    • Webmaster Feedback
    • Submit News or PR
    • Suggest an article
  • Connect Tools
    • MacTech Live Podcast
    • RSS Feeds
    • Twitter

ADVERTISEMENT
Volume Number:12
Issue Number:11
Column Tag:Tips & Tidbits

Tips & Tidbits

by Steve Sisak

Avoiding Preloads

When you open a resource file, all the resources marked 'preload' are automatically loaded. If the file contains a lot of preload resources, HOpenResFile (or OpenResFile, or FSPOpenResFile) can take a long time, or even fail with an error -108 (not enough memory).

If you do not want preload resources to be loaded when you open a resource file, you should set ResLoad to false before opening the file. For example:


SetResLoad ( false );
   refNum = HOpenResFile ( vol, dirID, name, fsRdWrPerm );
   SetResLoad ( true );
   if ( refNum < 0 )
     err = ResError (); // Which error occurred
   else {
       ....      // file was opened correctly
       }

- Marshall Clow, Aladdin Systems

mclow@mailhost2.csusm.edu

Using Labels to Organize Yourself

Until several months ago, I had never thought too much of Labels; never used them, pretty much ignored their existence altogether. It was only when I found myself repeatedly re-installing and/or upgrading my system (and thus needing to replace all of my custom files from the old System Folder), that I found a truly blessed purpose for the Finder’s Labels.

The beauty of Labels is that they provide a generic mechanism for the Finder to aide in the user’s organization of files. Other customization features like Comments are not so useful in a lot of cases, because there is no intuitive way to quickly use the information to increase efficiency. Thanks to the “View by Label” feature of the Finder, labels can save the day.

A case where I find this especially useful is in the organization of my System Folder. I will describe a system of Labels which I use to ease the task of keeping track of all the system, custom, and 3rd party files which inevitably find their way into my System Folder.

Assign a unique Finder Label to each of the following categories:

1. System: Files or folders which will be completely re-installed by the Installer in the case of an update or clean System Software install.

2. Custom: Files or folders which were installed or instantiated by some action of the user. Anything which you will want to replicate in your new folder but which the Installer will not create.

3. Contains Custom: For folders which contain some but are not entirely filled with custom files.

Now, go to your System Folder and view by Label. Proceed to label every file and folder with one of these labels. If you have some files which don’t fit in these categories, you have 4 additional labels to work with.

Now that this initial time consuming task is out of the way, you are ready to reap the benefits of your effort. Periodically, you can use the System 7.5 Find File to keep your folder up to date. Simply do a Find by “Label is None” in the System Folder, and adjust the labels as appropriate.

When it comes time to re-install or update, you can View by Label to quickly arrange your files. Drag all Custom items directly to the new folder. Open and repeat for all “Contains Custom” folders. Ignore all System items, and spend your valuable mental energy only on unlabeled items you may have missed.

This process has taken a lot of the fear and effort out of making drastic changes to my System Folder. If it still sounds like too much work, then my final suggestion will make you smile: Since almost all of the “thinking” is being done by the Finder, the scriptable Finder can be caused to do almost all of this automatically. With an AppleScript that intelligently traverses the System Folder and does the right thing with the right label, you’ll almost never need to agonize over them again.

Daniel Jalkut

San Francisco, CA

 
MacTech Only Search:
Community Search:

 
 
 

 
 
 
 
 
  • SPREAD THE WORD:
  • Slashdot
  • Digg
  • Del.icio.us
  • Reddit
  • Newsvine
  • Generate a short URL for this page:



MacTech Magazine. www.mactech.com
Toll Free 877-MACTECH, Outside US/Canada: 805-494-9797
MacTech is a registered trademark of Xplain Corporation. Xplain, "The journal of Apple technology", Apple Expo, Explain It, MacDev, MacDev-1, THINK Reference, NetProfessional, Apple Expo, MacTech Central, MacTech Domains, MacNews, MacForge, and the MacTutorMan are trademarks or service marks of Xplain Corporation. Sprocket is a registered trademark of eSprocket Corporation. Other trademarks and copyrights appearing in this printing or software remain the property of their respective holders.
All contents are Copyright 1984-2010 by Xplain Corporation. All rights reserved. Theme designed by Icreon.
 
Nov. 20: Take Control of Syncing Data in Sow Leopard' released
Nov. 19: Cocktail 4.5 (Leopard Edition) released
Nov. 19: macProVideo offers new Cubase tutorials
Nov. 18: S Stardom anounces Safe Capsule, a companion piece for Apple's
Nov. 17: Ableton releases Max for Live
Nov. 17: Ableton releases Max for Live
Nov. 17: Ableton releases Max for Live
Nov. 17: Ableton releases Max for Live
Nov. 17: Ableton releases Max for Live
Nov. 17: Ableton releases Max for Live
Nov. 17: Ableton releases Max for Live
Nov. 17: Ableton releases Max for Live
Nov. 17: Ableton releases Max for Live
Nov. 17: Ableton releases Max for Live