TweetFollow Us on Twitter

Nov 96 Tips
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

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Combo Quest (Games)
Combo Quest 1.0 Device: iOS Universal Category: Games Price: $.99, Version: 1.0 (iTunes) Description: Combo Quest is an epic, time tap role-playing adventure. In this unique masterpiece, you are a knight on a heroic quest to retrieve... | Read more »
Hero Emblems (Games)
Hero Emblems 1.0 Device: iOS Universal Category: Games Price: $2.99, Version: 1.0 (iTunes) Description: ** 25% OFF for a limited time to celebrate the release ** ** Note for iPhone 6 user: If it doesn't run fullscreen on your device... | Read more »
Puzzle Blitz (Games)
Puzzle Blitz 1.0 Device: iOS Universal Category: Games Price: $1.99, Version: 1.0 (iTunes) Description: Puzzle Blitz is a frantic puzzle solving race against the clock! Solve as many puzzles as you can, before time runs out! You have... | Read more »
Sky Patrol (Games)
Sky Patrol 1.0.1 Device: iOS Universal Category: Games Price: $1.99, Version: 1.0.1 (iTunes) Description: 'Strategic Twist On The Classic Shooter Genre' - Indie Game Mag... | Read more »
The Princess Bride - The Official Game...
The Princess Bride - The Official Game 1.1 Device: iOS Universal Category: Games Price: $3.99, Version: 1.1 (iTunes) Description: An epic game based on the beloved classic movie? Inconceivable! Play the world of The Princess Bride... | Read more »
Frozen Synapse (Games)
Frozen Synapse 1.0 Device: iOS iPhone Category: Games Price: $2.99, Version: 1.0 (iTunes) Description: Frozen Synapse is a multi-award-winning tactical game. (Full cross-play with desktop and tablet versions) 9/10 Edge 9/10 Eurogamer... | Read more »
Space Marshals (Games)
Space Marshals 1.0.1 Device: iOS Universal Category: Games Price: $4.99, Version: 1.0.1 (iTunes) Description: ### IMPORTANT ### Please note that iPhone 4 is not supported. Space Marshals is a Sci-fi Wild West adventure taking place... | Read more »
Battle Slimes (Games)
Battle Slimes 1.0 Device: iOS Universal Category: Games Price: $1.99, Version: 1.0 (iTunes) Description: BATTLE SLIMES is a fun local multiplayer game. Control speedy & bouncy slime blobs as you compete with friends and family.... | Read more »
Spectrum - 3D Avenue (Games)
Spectrum - 3D Avenue 1.0 Device: iOS Universal Category: Games Price: $2.99, Version: 1.0 (iTunes) Description: "Spectrum is a pretty cool take on twitchy/reaction-based gameplay with enough complexity and style to stand out from the... | Read more »
Drop Wizard (Games)
Drop Wizard 1.0 Device: iOS Universal Category: Games Price: $1.99, Version: 1.0 (iTunes) Description: Bring back the joy of arcade games! Drop Wizard is an action arcade game where you play as Teo, a wizard on a quest to save his... | Read more »

Price Scanner via MacPrices.net

Apple’s M4 Mac minis on sale for record-low p...
B&H Photo has M4 and M4 Pro Mac minis in stock and on sale right now for up to $150 off Apple’s MSRP, each including free 1-2 day shipping to most US addresses. Prices start at only $469: – M4... Read more
Deal Alert! Mac Studio with M4 Max CPU on sal...
B&H Photo has the standard-configuration Mac Studio model with Apple’s M4 Max CPU in stock today and on sale for $300 off MSRP, now $1699 (10-Core CPU and 32GB RAM/512GB SSD). B&H also... Read more

Jobs Board

All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.