Open Certain Compressed Windows .exe Files
When you come across a Windows self-extracting zip file—an archive that may contain Mac-compatible files wrapped in a seemingly unusable Windows executable file—you needn’t fret. If you receive one that you’re reasonably confident is a zip archive file (a PDF manual from Nikon, for example), here’s something you can try.
Change the file’s extension from
and then drop it on Allume Systems’ free
—OS X’s built-in zip expander can’t handle these files. If the file is nothing more than a zip archive in disguise, it will expand into the uncompressed contents of the archive.
If you’re comfortable in Terminal, however, you can use the
command—without first renaming the file. Just make sure that you’re in the same directory as the file, and type
Create a Keyboard Shortcut for Making .zip Archives
One of OS X 10.3’s nice features is that it lets you create keyboard shortcuts for most of the Finder’s menu items. Click on the Keyboard Shortcuts tab of the Keyboard & Mouse preference pane, click on the + (plus-sign)button, select the application you want to modify from the pop-up menu that appears, enter the exact menu title, and then press a combination of keys to create the shortcut.
But when you try to add a shortcut for creating .zip archives, it doesn’t seem possible—when you select an item to compress, the menu item (in the File menu) is Create Archive Of, followed by the name of the selection. So how do you enter a changing selection name in the Keyboard Shortcuts panel?
Well, you don’t. To create a .zip-archive shortcut, specify the Finder as the application and then just type
in the Menu Title box. Assign your keystrokes (Command-control-shift-Z, for instance) and click on the Add button. To make your new shortcut take effect, you’ll need to restart the Finder. You can do this by logging out and then back in, or through the Force Quit dialog box. Just press Command-option-escape, select Finder in the list, and then click on Relaunch.
You should now have a keyboard shortcut next to the Create Archive menu item, and OS X will simply add the selection name as needed when you execute the command (See screenshot). From now on, creating a .zip archive is as simple as highlighting something in the Finder and pressing your magical key combination.
You can use this trick for most other menus that change with the Finder selection; just ignore the variable piece at the end and type in the core of the menu item’s name.
Pause Playback of Animated GIFs
Many people think that animated GIFs were one of the worst inventions of the early days of the Internet. However, when used properly, those animations can convey information that would be difficult to get across in other ways. For instance, The
Imaging Resource, a digital-camera-review Web site, uses animated GIFs to show the different overlays on each camera’s LCD screen. Aproblem, though, is that the animations blink by so quickly, you can’t really get a good view of any individual screen.
To temporarily pause any animated GIFs on a page, you can either click on and release a top-level menu such as File or Edit (which may obscure part of the page you’re trying to see), or just click and hold the mouse button on the scroll bar’s thumb (the part that moves). As long as you have the mouse button down, the animated GIFs won’t play. Release the mouse button, and the GIFs will go back into action.
If you’d like to really study a particular animated GIF, however, drag it to your desktop and open it in Preview. You’ll then be able to view each frame as a separate image that you can browse with the Page Down and Page Up buttons.
Take Advantage of Page Scrolling in Safari and Mail
Both Mail and Safari suffer from the same scrolling bug: the page-up and page-down keys don’t seem to work just where they would seem to be most useful.
In Mail, for example, if you have a long list of messages, pressing page-up or page-down won’t let you scroll through them quickly—those keys affect only the message displayed in the preview pane, not the message list.
And in Safari, if you’re viewing your bookmarks or browsing history, page-up and page-down don’t work at all. You have to use the arrow keys (or your mouse) to move around these potentially long lists.
But a hidden keyboard shortcut can save you scrolling time in either application. Press and hold the control key before you press page-up or page-down, and you’ll find that you get page-at-a-time scrolling—just as you would have expected the keys to perform when used on their own.
[Contributing Editor Rob Griffiths is the author of
Mac OS X Power Hound, Panther Edition
(O’Reilly, 2004) and runs the
Mac OS X Hints
Save yourself some time by adding a keyboard shortcut to OS X’s built-in tool for creating .zip archives.
Ever want to quickly run a Google search on one of the contacts in your Address Book list? Download
our script, and then drop it into the
your user folder
/Library/Address Book Plug-Ins folder (if this folder doesn’t exist, create it).
Now launch Address Book and control-click on any contact’s phone number. You’ll see a Google Them option in the pop-up menu (See screenshot). Select it to open Safari, load Google’s page, and start searching for your contact’s name. If you want something more interesting than a Google Them label on the pop-up menu, you can change it by editing the words inside quotation marks in the line that reads
return "Google Them"
in the script. (You’ll have to have a phone number entry for your contacts, as you can’t associate a script with the Name field.)
Unix Tip of the Month
Do you have friends scattered about the globe? And do you have trouble remembering whether it’s yesterday or tomorrow in Australia? Terminal and some handy commands can help you avoid accidentally calling a friend in the middle of the night.
OS X includes time-zone information for a huge number of locations. To see what’s available, open Terminal, type
, and press enter. Then type
and press enter. (You can find the same information in the Finder if you select Go: Go To Folder and type
in the Go To The Folder box.) You’ll see a large list of directories and files. Within the folders are the names of cities in each geographic area—Europe contains Amsterdam through Zurich, for example.
Now that you’re suitably impressed by the collection of time zones, how can you put this data to good use? By employing the
command and the
variable, which sets the working time zone for your machine. The
command lets you run any other command with environment settings that may differ from those you currently use. To put it another way,
lets you run programs in a mode that differs from the mode in which you would normally run them. In this case, we’re going to set the
variable so that
thinks we’re in a new time zone, and then have
run the normal Unix date command as if we were in that time zone.
variable is defined by the names of the files and folders in the /usr/ share/zoneinfo folder—the folder name comes first, then a slash, and then the city name within the folder. So to see the date and time in Reykjavik, Iceland, you’d type
env TZ=Atlantic/Reykjavik date
Press enter to see the current date and time as if your machine were located in Reykjavik. To change locations, just repeat the command with a new folder and city—
env TZ=US/Hawaii date
, for instance. If you check times around the world often, you might want to use an alias to make it easier. Using a Unix editor or a pure text editor, open the invisible .bash_profile file at the root of your user folder (or create it if it’s not there already). Add an alias line for each location you want to create—for example,
alias hawaii='env TZ=US/Hawaii date'
Save the file, quit the editor, and then type
. Press enter. Now type your alias (
in this example) to see the date and time for the location.
Using a simple Address Book plug-in, you can quickly find out what Google knows about any of your contacts.