Don't you hate it when an application becomes unresponsive and crashes? Are you even more tired of reading annoying application crash dialog boxes? A simple Terminal hack allows you to never see these dialogs again. Just open Terminal (Applications > Utilities) and type:
This will disable the "...unexpectedly quit" dialog that normally appears when an application crashes. If you ever want the dialogs to start appearing again, just replace "none" with "prompt".
Have you ever wanted your screen saver to appear as a background image? Probably not. But if you like to show off to your Windows-using friends, then this tip can definitely help you out. By typing the following command into Terminal (Applications > Utilities), all on one line, and hitting enter, you will instantly see your screen saver displayed as a desktop background:
To get things back to normal (which you probably will want to do, as many screensavers will put undue load on your processor), either close the Terminal window, press control + C, or restart your computer. If you are running Leopard and have the clock overlay active, it will appear above all windows, which can get a little annoying.
Want more tips and tricks like this? Visit TUAW's Mac 101 and Terminal Tips sections.
Without using Exposé, it is hard to tell which Mac OS X applications are hidden and which aren't. But, with a simple Terminal hack, you can have all your application icons displayed as transparent. Simply open Terminal.app (Applications > Utilities) and type the following command exactly:
Once you type the command and press enter, you need to restart the Dock by typing "killall Dock" and pressing enter. Once the Dock restarts and you hide applications, you will notice that hidden applications have a transparent look. If you want to reverse the command, just replace the "YES" with a "NO" and restart the Dock again.
Like these tips and tricks? Why not take a look at TUAW's Mac 101 and Terminal Tips category.
If you are the type of person that sees Dashboard as an application that just wastes space in your Dock (and an icon on your keyboard), then why not disable it? It is very easy to disable Dashboard; just type in the following command in Terminal.app (Applications > Utilities):
You must restart the Dock in order for this hack to work, so type "killall Dock" into Terminal and press enter -- the Dock should restart. To enable Dashboard again, just type in the above command, replacing "YES" at the end with a "NO." Now when you try to launch Dashboard, nothing will happen; this will save you some system resources.
If you found this tip useful, take a look at TUAW's Mac 101 and Terminal Tips sections.
Have you been paging through a document and wished that the scroll arrows were at both ends of the scroll bar? With a simple Terminal hack, you can have it your way. Just open Terminal.app (Applications > Utilities) and type in the following command:
defaults write "Apple Global Domain" AppleScrollBarVariant DoubleBoth
You will need to restart your Mac to see the changes. If you want to change the scroll bars back to the normal way, just open the Appearance System Preference pane and select "Together" from the "Place scroll arrows section."
For more tips and tricks like this, visit TUAW's Terminal Tips and Mac 101 sections.
Sure, we've all wanted to stop the pesky "Disk Image Verification" process that starts when you want to open that .iso, .dmg, or other disk image. While this process is a precaution against possibly installing/using corrupt files, sometimes it is completely unnecessary. To stop disk image verification forever, just open Terminal and type: defaults write com.apple.frameworks.diskimages skip-verify TRUE
If you want verification enabled again, type the same command, replacing the "TRUE" with "FALSE." While verification is off, we recommend only using disk images from trusted sources.
Are you a Terminal geek (or wannabe, but not the pop star type)? If so, did you know that you can burn discs right from the Terminal window with a simple command and a drag/drop? Just enter the following command followed by the path to a folder or disk image:
drutil burn filehere
Don't type the "filehere" -- that's where you put the path to the file/folder that you wish to burn. You can either type the location manually or drag and drop the file onto the Terminal window. But that's not all you can do with drutil; you can also eject media from the optical drive by typing "drutil eject." To see all of the available drutil options, just type in drutil for a quick list or man drutil for a full description.
The Dock's Stacks feature lets Leopard users view a folder's worth of stuff with one click. You'll either love it or hate it, use it or not. If you do use it, here's a little tip that improves it slightly (in my opinion).
When you've got a bunch of files from a Stack displayed in Grid View, it can be hard to spot the particular one you're looking for, especially if many of them look identical (such a collection of text files or word processor documents).
Luckily, there's a highlight you can switch on, that puts a whiter background around the file you're mousing over. It makes it slightly easier to ensure you click on the correct file.
The highlight appears normally if you use the arrow keys to move around a Grid, or if you type Command and the first letter of one of the files displayed. But this trick switches it on permanently, so that it is always in action whether or not you use these keyboard shortcuts.
Earlier this week, we described several ways to create screenshots with your Mac. Using the keyboard shortcuts in the Finder is great, but you may have noticed that the results aren't very sharp. Ivan at creativebits noticed that, too, and figured out how you can correct the problem.
He explains that a basic screenshot creates a JPEG with a resolution of 60 by default. As is often the case, the solution is just a couple of Terminal commands away. Set the default format to png, pdf or tiff for much better results.
If you're not the Terminal type, check out Skitch, which takes simple, great-looking screen captures.
As we know, the Finder offers four ways to display your files. Namely icon view, list view, column view, and Cover Flow. Perhaps you prefer one over the others (let's say column view), but your windows open to icon view by default. That can be annoying but here's how to fix it.
First, open a new Finder window. Next, select your preferred display method and then close the window without doing anything else. Don't open a folder, drag an icon, nothing. Now subsequent Finder windows will default to your preferred setting.
Most of us know that we should perform regular maintenance on our Macs, usually simple things such as doing backups and shaking pizza crumbs out of the keyboard. But did you know that there are a number of UNIX System Tasks that are available for keeping your Mac running at peak performance?
A lot of Mac users don't want to pull up Terminal and type arcane text into the command line, so MacDentro has a GUI front end that you can use to run those commands and keep your Mac cruisin'. IceClean, now at version 3.0.6 has menus for OS X Maintenance, Cleanup, Security and Network, and Utilities, all of which are packed with menu choices or keyboard shortcut equivalents that make mundane maintenance chores simple to perform.
There are other apps available -- Maintenance and MacJanitor come to mind -- that perform similar tasks, but neither of those programs comes close to the depth of capability of IceClean.
The price is right, too - it's free, although you might want to send the MacDentro folks a donation if you find yourself using IceClean regularly. Download IceClean here.
Tip of the hat to our very own Victor Agreda for this find!
I'm sure you've heard all the cool kids talking about SSH in the cafeteria during lunch, but you had no idea what it was. Be ignorant no more, because Devanshu Mehta is writing a series of posts about using SSH for Apple Matters.
The first in the series explains the basics of SSH and what you'll need to setup before you can start securely tunneling like a spy.
Here's the really short explanation of SSH: it allows you to create secure connections between two computers. The protocol is a standard, so you can SSH into almost any kind of computer, assuming it is running SSH and you have the proper credentials.
I'll be keeping my eye out for the upcoming parts in this series, because who can't use some more secure connections in their life?
If you're looking to automate the sending of emails with attachments quickly and easily (and aren't too concerned with having some glamorous stationery), Terminal is once again your friend. It's possible with Mail.app and AppleScript, but there are a few pitfalls and, for most purposes, a simple shell command will do the trick:
(echo "This is the message body";uuencode Desktop/yourDoc.doc yourDoc.doc)|mail -s "Test attachment" someone@adomain.com
The magical command in this one is uuencode, which is used to encode and decode binary files and can be used on just about any file type. The two arguments in the command above define the name and location of the source file and the name the file should have when it's received. The parenthetical statement at the beginning combines the results of the echo and uuencode commands which are then piped (|) to the mail command. The mail command, having received the body text and attachment, is told to append a subject (-s "Subject") and send it to the address specified. If you wanted to send a longer text file – with line breaks, perhaps – as the body, you could save the text in an external file and replace the echo statement with cat myfile.txt.
By adding a little complexity you could make a shell script that takes arguments, making the automation a little more flexible. But TUAW reader Adam was wondering how to send a photo he'd taken automatically using AppleScript (triggered by a Mail Rule). So here's an AppleScript implementation that doesn't require opening Terminal or dealing with Mail.app scripting:
set msgBody to "This is the body of the message" set msgSubj to "Message subject" set mailDest to "someone@adomain.com" do shell script "(echo '" & msgBody & "'; uuencode /Users/you/Desktop/pictosend.jpg pictosend.jpg) | mail -s '" & msgSubj & "' " & mailDest
Make sure you remove any line breaks from that last line. This obviously requires a predetermined image name, but that could be made a variable as well and used as part of a larger script. We hope this helps, Adam!
Some of you news hounds may be aware of Newseum, the "interactive museum of news." Every day, they publish the front pages of over 600 newspapers from several companies. Wouldn't it be cool to get just the ones you like delivered to your (virtual) door as a single PDF? Automator to the rescue!
Dave Bednarski sent a great script he wrote to the folks at 37signals which serves that purpose. Basically, you enter the addresses of the papers you'd like to receive, filter for PDFs, download the result to the desktop and combine the lot by appending the pages into one big file. It's just that easy.
For an added bonus, attach this script to an iCal event and have your news waiting for you each morning. All that's missing is your mug of coffee, and the muddy pawprints of the family dog on the carpet after he runs out in the rain to chase the paperboy.
Whois or "Who is," is a way to query for contact information (or domain name ownership information) about the person or company in control of a site. If you want to know who runs a website, you don't have to look any further than your Mac and opening a Terminal window.
All you have to do is open Terminal.app (/Applications/Utilities/) and type in "whois" and space followed by a URL. For instance, the following command would give you the whois information for tuaw.com: whois tuaw.com.
You can do this for almost any website; however, some domain names use some form of a hiding service from their registrar that allows them to hide their contact information. Be forewarned that you shouldn't use information like this to stalk people!
Please note that if you have Terminal-itis, or are scared of the Terminal, you can use Apple's Network Utility in Mac OS X to do a whois query. Just open Network Utility.app (in the /Applications/Utilities/) and click the "whois" tab. From there you can enter a URL and do a query, all within a pretty "Aqua-licious" user interface.