Leopard added the ability to run 64-bit Cocoa, and to some extent Carbon, applications (it was possible to run non-Cocoa/Carbon 64-bit apps as of 10.4; for example, command line apps). But you might now be curious if any of your Cocoa GUI applications in Leopard actually are compiled to take advantage of 64-bit addressing. To find all Applications that are compiled for 64 bit is pretty easy. In Terminal, type either the Intel or PowerPC command below (the line without the leading #):
On my system, I had seven 64 bit GUI apps (all apple ones in fact: Xcode, Chess, Java, Quartz Composer,etc). Just to clarify a bit: A 64-bit application only means that that single application can access more than 4GB of memory (which is the 32-bit limit). It has nothing directly to do the with speed of the program, only how much memory it can address.
When Mac OS 10.5 Leopard was released, I eagerly tried using Spaces, and assigned several apps to different windows. After a while, I disabled Spaces as I just didn't use it that much.
Then I noticed that sometimes application windows would vanish, and even if I selected them from the Window menu, they would not reappear -- similar to what is discussed in this hint, except in my case, Spaces was disabled. This is due to a known Spaces bug.
I realized that to prevent this from recurring, I just had to re-enable Spaces temporarily, empty the list of applications with assigned windows, and then disable Spaces. Perhaps obvious, but perhaps useful to somebody.
One drag about Apple's Spaces implementation in Leopard is that there is no way to access Spaces via AppleScript. While you can use AppleScript to select indvidual spaces by simulating keystrokes, it'd be nice to have some way to find what the current space is via AppleScript.
Well, using PreFab Software's excellent UIBrowser, I was able to figure out how to accomplish that precise task with AppleScript.
(I believe you'll need to check Enable Access for Asssistive Devices in the Universal Access pane of System Preferences, if you haven't already, for this to work. You'll also need the Spaces menubar extra to be visible, which you can enable in the Spaces pane of System Preferences.)
The script will return the variable theCurrentSpace with the number of the currently displayed space. You can use that information in any way your scripting or automation imagination desires. Here is the AppleScript; copy and paste into Script Editor:
It's certainly well-known that you can setup file sharing very easily in the Sharing panel in System Preferences. But you don't have to open System Preferences to share files. In fact, you can share files with anyone, even without creating an account for that person beforehand.
In the Finder, select whatever folder or file you'd like to share and choose Get Info from the File menu (or right- or control-click and select Get Info). Expand the Sharing & Permissions section if it's not expanded already at the bottom of the window. A lock icon should appear in the lower-right corner of the Get Info window; click it to authenticate. After you enter an administrator username and password, click the plus (+) symbol to display a user-selection dialog. Besides seeing users already created on your Mac, you'll also see the Address Book along with any groups you've created. In addition, a New Person button lets you simply extemporaneously add a new account right there, without the need to schlep back to Accounts pane in System Preferences.
Any account you establish in this manner defaults to read-only privileges on the folder or file you've shared. The account that gets created is a Sharing-Only account (new in Leopard).
One final tip: if you delete the account in System Preferences without removing the account in Sharing & Permissions for your file or folder, then you'll be left with a share called (unknown). Re-add the user you deleted, remove the share for that person (select the user's name and click the minus (-) symbol), then delete the account in System Preferences.
When using AppleScript, you sometimes want the running script (or AppleScript Application) to get the path to itself or a file in its resources folder. This is done by using the path to me command:
set beep_sound to alias ((path to me as text) & ¬
In 10.4, a problem I always found when writing one of these script/apps was that if you tried to test run them in Script Editor, the path to me function would return the path to Script Editor. There where ways around this, but it meant editing the script/app just to test. In 10.5, however, as long as you save the script/app first, then the path to me function will return the correct path to the script/app when tested in Script Editor.
As an example, this code...
"display dialog ("The path to me is : " & return & (path to me))"
...when run in 10.4's Script Editor from a saved script will return:
The path to me is : Macintosh HD:Applications:AppleScript:Script Editor.app:
In 10.5, though, it will display:
The path to me is : Macintosh HD:Users:username:path:to:foo.scpt
[robg adds: I can't easily test this on 10.4, but I can confirm the 10.5 behavior.]
I'm a huge fan of the lyrics capabilities of iTunes, but I was a little dismayed by the fact that Spotlight didn't include song lyrics in its indexing ... until Leopard, apparently!
I didn't try this on purpose, but I typed tech into the Spotlight search field, and together with the folder I was looking for, the search results also listed the MP3 file of U2's Zooropa -- the first track of the album with the same name. How could that be? I immediatly recalled the bit of the lyrics that goes 'Zooropa, vorsprung durch Technik.' So I typed in some additional lyrics into the Spotlight field. To my great delight, it's now possible to search into your iTunes lyrics library from Spotlight, provided that you have previously filled up your MP3s with the lyrics.
I wanted to install Leopard on an iMac G4 800 with a broken DVD player (having read errors on the Leopard DVD) and an empty internal drive. So I faced two issues that I have been able to solve: not having a bootable drive in the machine, and working around a broken DVD player.
No bootable drive:
To launch the installer, I booted from an external FireWire drive. This means that the installer will create a file named boot.txt for the Open Firmware on the drive the Mac was booted from. The issue is that the Open Firmware is instructed to read this file during the boot process, but it looks for it on the internal drive. So the first boot will fail, as it will not find the file boot.txt. Continue the boot by typing mac-boot while in Open Firmware as indicated by Open Firmware.
Once booted, copy the file boot.txt from the root of the boot drive to the root of the internal drive: cp /boot.txt /Volumes/myVolume/boot.txt. Now relaunch the installer and you are done.
Broken DVD drive:
My internal DVD Player is getting errors on the Leopard DVD, even thought the disc is clean. So I needed to boot from an external DVD player. Pressing the C key at boot did not help. The trick is to set the Startup Disk in System Preferences to the Leopard DVD inserted in the external DVD drive. Then launch the installer, and tell to the Mac how to boot by pressing keys at boot time. During reboot press any key and the Mac will boot on the disc selected in the Startup System Preferences panel.
By default, Time Machine will start backing up as soon as you attach your designated Time Machine drive. This isn't an issue for desktops, but it can be for notebooks users who plug in their drives every day and then suffer an immediate slowdown as a result. There is also an issue with the preset one hour interval -- not everyone needs to back up that frequently. I prefer to do it once a day in the middle of the night.
The free program Lingon will allow you to change many aspects of Time Machine with ease (as well as many other aspects of Leopard). Here's how:
Download and Install Lingon.
In the right-hand column, access the System Daemon heading and highlight com.apple.backupd-auto.
In the main window, skip to section three, uncheck Run it every time a volume is mounted and check At a specific date:. Set days and time as you wish.
Save and Restart OS X.
Note that this previous hint doesn't require Lignon to be installed, but only alters the intervals between Time Machine backups.
Sometimes I would be able to view PowerPoint (.pps) documents with Quick Look, but sometimes I wouldn't. This problem bothered me for some time, but I think I've solved it -- thanks to the helpful folks on this forum thread (in French).
The solution involves editing the Office Quick Look generator file; read on for the how-to...
For anyone out there who gets frustrated by the Leopard Help application being a background app (no Dock icon), and one that can't be hidden behind other windows, I have a solution for you. In other words, this hint will revert the Help application to the Tiger (and earlier) behavior. This hint requires the Apple Developer Tools (Xcode), and a hex editor such as HexEdit or similar. Read on for a smorgasbord of Interface Builder, Property Lists and hex editing!