Use a sh(1) function like:
function display_error (){ # Error message in dialog box osascript <<-EOF tell application "Finder" activate set dd to display dialog "\n$Error\n" buttons {"OK"} default button 1 with icon caution giving up after 30 set UserResponse to button returned of dd end tell EOF }
Install a CPAN module:
sudo -H cpan -i Module::Name
Let's start with the sources of an application already compiling for ppc with xcode.
MACOSX_DEPLOYMENT_TARGET_i386 -> 10.4 MACOSX_DEPLOYMENT_TARGET_ppc -> 10.3
Now when you compile in developement mode (Project → Set Active Build Configuration → Development) you'll produce only binaries for $(NATIVE_ARCH), when you move in Deployment mode you'll make Universal binaries.
Well, maybe. At least I hope. If else fails try to have a look to the page from where I've collected these notes.