TweetFollow Us on Twitter

Jul 94 Tips
Volume Number:10
Issue Number:7
Column Tag:Tips & Tidbits

Tips & Tidbits

By Scott T Boyd, Editor

Note: Source code files accompanying article are located on MacTech CD-ROM or source code disks.

Got a hot developer tip you’ve been keeping to yourself but really need to share? Think you have a better trick up your sleeve? Send us your tips and tricks, especially programming-related tips, but don’t hold back if you’ve got programmer’s user tips.

MacTech Magazine will pay $25 for every tip used, and $50 for the Tip of the Month. You can take your award in orders or subscriptions if you prefer.

To submit a tip, send it in by e-mail. (Please make sure your code compiles). See page two for our addresses.

Tip/hack of the month

Startup Items: Nice Guys Finish Last

You can put any kind of programs, folders, or aliases in the Startup Items folder in your System folder, and they will open automatically when you startup your Mac. Some people put an alias of their most commonly used folder into their Startup Items, so it will open and become the frontmost window in Finder.

Startup items open in alphabetical order, and the last item opened will be the one that stays in the foreground once the startup is complete. Unfortunately, the last one opened may not be the one you want up front. Here’s how you can force a particular Startup Item to open last.

Make an alias of the item you want opened last, and rename it to Option-z, the Omega character ‘ ’. It sorts alphabetically after most other characters and seems very appropriate.

Drop the alias into the Startup Items folder; it will open last. If it’s has already been opened and switched into background, this last startup item will force it to the foreground.

My startup item is an alias of the hard drive itself, which opens the root directory of the drive and pulls the Finder into the foreground. That’s the way I like it, but if you’d rather just have the Finder in front without any particular folder or window open, here’s a hack that’ll do it:

1) Create an empty folder in the root directory of your startup drive, and name it “Desktop_Folder” (note the underscore in the name).

2) Create an alias to that folder, and rename it (omega is option-z).

3) Throw away the empty “Desktop_Folder” folder and empty the trash.

4) Launch ResEdit and select Open from the File menu. Check the box for “Use alias instead of original file” and open the alias.

5) Open the “alis” resource and find each instance of the string “Desktop_Folder”; it appears in 2 places. Change the underscore in each to a space, so it reads “Desktop Folder” instead.

6) Save your changes and quit from ResEdit.

7) Put the alias into your Startup Items folder and reboot.

When Finder opens the alias, Finder will come to the foreground and stay there; no folder will open because the Desktop folder is already displayed.

- Lee David Rimar, Absoft Corporation

Fat Gold

I found a neat way to build “fat” applications with CodeWarrior Gold:

1. Create a 68K project & resource file.

2. Build the 68K project & set the application name to something like “app.PPC.proj.rsrc” so it will appear as a resource file to the PPC project (the type & creator can still be what you’d have for an application).

3. When you build the PPC project, the 68K application will be included as the project resource file.

You’ll now have a “fat” application and you can also use the 68K-only “resource file” as the 68K version or for debugging if you're running on a non-PowerMac.

- Mike Cohen, ISIS International

 

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.