vote up 1 vote down star
1

Hello there,

I've got a MBP (not so long so I don't really know any tricks), and some of my friends has. I know that there are some cool stuff you can do with Terminal, and Automator, which can help you do things faster/smarter, or just Fun & Geeky. Let's share them if you know some.

flag
1  
I would love to hear the anwers as I just bought a mac, but this belongs on SuperUser. – biged781 Nov 24 at 7:31
IMHO, This is programming related. Since it's only for programmers and real geeks :) – Lukas Šalkauskas Nov 24 at 7:34
1  
It looks like the question is referring to programming/scripting of OSX tasks - terminal, automator, launchd etc. Question is vague but could be good. – vanja. Nov 24 at 7:43

9 Answers

vote up 4 vote down

The most important things to install for a programmer are:

  • XCode (on your install disks)
  • MacPorts
link|flag
vote up 2 vote down

In the terminal:

mdfind WORD

uses spotlight to find things that contain that word. It's really fast, and really useful.

link|flag
vote up 2 vote down

If you want to use languages other than Objective-C, you have your pick of various Cocoa bridges. If Applescript's dear to you, appscript bridges Apple events and Ruby, Python and Objective-C. Apple has come out with it's own scripting bridge, though appscript works on older versions of OS X. F-Script can be fun for tinkering, or if you want your Obj-C experience to be even more Smalltalk-like.

link|flag
vote up 2 vote down

If you want to run a bash script just by double-clicking it in Finder, give it a .command suffix.

link|flag
vote up 1 vote down
  • You can open a file from the Terminal in the Finder via the open command (which is surprisingly convenient in many situations). One example I've often used is to open the current working directory from the Terminal in Finder:

    open .
    

    There are a bunch of other cool and useful things you can do with open—see its man page for more details (run man open in Terminal).

  • You can set preferences for applications from Terminal with the defaults command. This also allows certain hidden settings to be enabled. For example: a fun little trick with scroll-bars that places arrows at the top and bottom of the scroll-bar (which takes effect for applications whenever they are relaunched):

    defaults write "Apple Global Domain" AppleScrollBarVariant DoubleBoth
    

    Probably the most famous hidden setting is the Exposé "Blob" (which takes effect when you relaunch the Dock):

    defaults write com.apple.dock wvous-floater -bool true
    
  • Another cool, but ultimately pointless thing you can do in the Terminal: turn your screen saver into a desktop background:

    /System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine -background
    
link|flag
vote up 1 vote down

Try out programs like MacPilot, Cocktail, Secrets or Onyx (last 2 are open source and free)

MacPilot and Secrets are GUI frontends for many of these defaults write Terminal codes.

Also, Tinker Tool.

link|flag
Don't forget Tinker Tool! – htw Nov 24 at 8:19
vote up 0 vote down

The Terminal can talk to you. Type say hello to give it a try

link|flag
vote up 0 vote down

A big resource about Mac OS tips and tricks is Mac OS X hints site.

link|flag

Your Answer

Get an OpenID
or
never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.