Saturday, December 13, 2008

"Entire Message" search disabled / grayed-out in Mail.app

The Apple discussion forums are full of people complaining about
Mail.app being naughty and not allowing to search by "Entire Message".

I've also wasted some hours trying to work around this when it
inflicted me, with no luck.

Until, finally, I tried merely restarting the machine and vóila! It
was back...

Thursday, July 3, 2008

Solution for launchd not running scripts without any apparent reason

After many weeks of frustration and research we've finally found the solution for launchd mysteriously not running scripts (and not showing any errors).

The solution:
Simply use an absolute path to your script file in the launchd plist file.

Wednesday, May 21, 2008

Mac Ports Troubleshooting: "error: command '-DNDEBUG' failed with exit status 1"

Several different port installation attempts have been throwing this error for me lately:

error: command '-DNDEBUG' failed with exit status 1

I researched a workaround but to no avail.

Finally the solution presented itself:
Simply run the same port installation command again!

If this tip saved you some time, feel free to leave a comment.

Wednesday, March 26, 2008

Toggle Airport Power On/Off with AppleScript

If you want to quickly step down your MacBook's power consumption, or you've accidentally hit "send message" for an incomplete or wrongly destined email etc., you'd need to immediately terminate your Internet connection. The best way I've found for doing that is by toggling your airport's power directly.

First, if you don't have MacPorts already installed, visit The MacPorts Project and follow the installation instructions there.

Then, use the terminal command "sudo port install airport".

Finally, save the script below into a file that you can run from the dock or tie it to a handy iKey shortcut.

-- make sure to first use macports to intall the airport port using the Terminal command "sudo port install airport"
-- the airport -p command returns "Power is on/off." but off is considered an error

try
do shell script "/opt/local/bin/airport -p"
do shell script "/opt/local/bin/airport -P 0"
on error
do shell script "/opt/local/bin/airport -P 1"
end try