When focus is in the text entry field in an iChat chat window, holding option and using your up and down arrow keys cycles through the previous messages you've sent. This is very similar to how Terminal lets you cycle through previous command just using the up and down arrow keys.
[kirkmc adds: I actually spotted this a while ago. I'm not sure why it's there; and I don't really see any use for it, other than, perhaps, to find a text you sent to someone without scrolling in the window, and then copy it to send to someone else. This works in Lion; can anyone confirm that whether works in earlier versions of OS X or not?]
]Google Chrome keeps older versions of its web browser causing it to balloon in size. I noticed that the Google Chrome App on my Mac was 1.2 GB. That seemed a bit portly for a web browser. Upon looking into the app's bundle, by right-clicking and choosing Show Package Contents, I found multiple old versions of the app, all which appeared to be nearly identical. I removed all but the most recent version and everything appears to run correctly and the app size is now a much more slim 113 MB.
[kirkmc adds: Interesting. On my Mac, in the bundle, in Contents > Versions, there are, indeed, two versions of Chrome. This presumably has something to do with Chrome's silent updating. (Queries on Twitter suggest that this is the norm; a number of people replied that theirs was around 220 MB, as was mine.) Make sure you keep the one with the highest version number. You could also, of course, just download a new copy.
SSHKeychain used to set the SSH_AUTH_SOCK environment variable to something like /tmp/50x/SSHKeychain.socket, but even getting rid of SSHKeychain didn't get rid of the environment setting.
I used to use a great little program called SSHKeychain to maintain my ssh world on OS X. Even after Apple's keychain started dealing with ssh-agent properly, I still kept SSHKeychain around for the convenience of maintaining my ssh tunnel configurations in one place.
However, there was an occasional mismatch between the SSHKeychain way of doing things and the Apple keychain way, and SSHKeychain seemed to have fallen into disrepair, with no maintenance (on SourceForge at least) since 2007.
A few months back, I finally got rid of SSHKeychain, and started having problems.
There was apparently a phase-of-the-moon dependent race condition (somewhere) that clobbered the Apple keychain setting of SSH_AUTH_SOCK with a setting left over from SSHKeychain. This manifested itself as an occasional (during about 50% of my logins to my OS X account) demand for me to enter my ssh passphrase every time I made an ssh connection somewhere else. This, of course, kind of defeats the whole purpose of using ssh-agent in the first place, and was a major pain as well.
I looked at everything I could think of (e.g. .profile et al.) that was related to the problem to no avail. Spotlight was no help in locating the where the variable was being set from. Finally, yesterday, I decided that enough was enough, and ran a find|grep chain over what I thought was my entire disk. There were a few hits (including one in /private/var/vm/sleepimage that seemed like it could have been causing the problem) but getting rid of those still didn't do the trick.
It turns out that the culprit was the file ~/.macosx/environment.plist which appears to only have set that one environment variable. Getting rid of that file got rid of the intermittent clobbering of the SSH_AUTH_SOCK variable, and allowed the Apple keychain to maintain access to ssh-agent in the modern fashion.
As an aside, I apparently did not construct my find command (in the find|grep chain that I mentioned above) in a way that allowed it to descend into directories starting with a '.' and my brute force search missed the culprit.
I hope this helps someone else avoid all of the blood, sweat, and tears I expended on the problem.
[kirkmc adds: As obscure as this is, we all know what it's like to search for an uncommon problem and not find it. Every problem of this type that is documented helps others in the future when they search for a response.
There are days when I cannot connect to iChat's servers - well, actually to the AIM servers that iChat uses. The fix is simple yet odd. I use SSL with iChat, and all it takes to get the connection is to turn it off. Go to iChat > Preferences > Accounts, click on your account, then click on the Server Settings tab. You must be offline to make changes here. If you have Use SSL checked, uncheck it, then connect. Disconnect, then reconnect it, if you still want to use SSL. I don't know why this works, but it does.
I have been using plain text files (.txt) for storing my notes since the arrival of Notational Velocity a while ago. When I saw that Mountain Lion will have a dedicated Notes app, I decided it would be great to switch over to Mail's notes system in preparation for the new OS.
I couldn't find a suitable method for rapidly importing my text notes into apple mail, so I combined a script found on MacRumors with some python, which can then be packaged into a Service using Automator ("Service receives selected files and folders").
for filename in sys.argv[1:]:
text = open(filename,'r').readlines()
title = os.path.splitext(os.path.basename(filename))
text = title +'\n'+' '.join(text)
# Store file contents in clipboard
outf = os.popen("pbcopy", "w")
cmd = """osascript< < END
tell application "Mail"
tell application "System Events"
tell process "Mail"
click the menu item "New Note" of the menu "File" of menu bar 1
click the menu item "Paste" of the menu "Edit" of menu bar 1
[kirkmc adds: I haven't tested this. But I do agree that it will be practical to use Apple's Notes app on Mountain Lion. However, I'm not prepared to use Mail for notes; I don't like the display options.]
The Mail application can report the number of unread e-mails via a badge on the application’s Dock icon. It would be more useful if the badge showed more relevant personal e-mails (sent to you personally and not to a mailing list, ord sent from somebody you know). This way the user is interrupted less often, while still keeping track of relevant emails. Recently, Gmail has offered a way to prioritize emails (Gmail > Settings > Personal level indicators). The good news is that a similar technique can be used in Mail.
To have the personal emails reported, first create a “Personal email” rule. To create a rule in Mail, choose Mail > Preferences > Rules, then click on "Add rule." Name the rule “Personal email” and select the following:
The rule should match any of the following conditions
"Sender is in my Previous Recipients"
"Sender is in my Address Book"
"Perform action": flag emails with a gray flag
Next, create a smart mailbox called “Relevant emails” that communicates with the rule defined above by looking at flagged emails. You can create a smart mailbox by choosing Mailbox > New Smart Mailbox. Specify that e-mails in the smart mailbox should satisfy all of the following conditions:
E-mail should be unread ("Message is unread")
Flagged ("Message is flagged")
In your inbox ("Message is in Mailbox Inbox")
Has been sent directly to you ("Any recipient contains myemail@mydomain").
Finally, go to Mail's General preferences, and next to “Dock unread count” choose the “Relevant emails” smart mailbox.
The dock badge will now count unread personal e-mails from the smart mailbox you just created.
[kirkmc adds: I have actually done something similar for years. I have a "Current" smart mailbox, which contains messages that are important; everything but mailing lists, Google alerts and spam. That is the one I have selected for the Mail icon badge.
We ran a hint about this in 2009, but it simply specified how to choose a smart mailbox for the badge count. This current hint is useful as it explains how to filter specific e-mails that come from people you know.]
There used to be a great tool called Secrets, which was a preference pane, and which allowed GUI access to many of these commands. Alas, Secrets hasn't been updated for Lion, so using Terminal is the best way to apply these commands.
If you're unfamiliar with how to use these commands, here's what you need to know. Open Terminal (in /Applications/Utilities), then paste one of the commands into Terminal and press Return. The commands in the list are the parts that begin with "defaults," such as:
defaults write com.apple.dock no-glass -bool true
This command removes the 3D graphics from the Dock.
In 10.7, Apple changed Terminal to include a drop-down path icon in the window's title bar, similar to what you get in Finder and many other applications.
While some may like this, the problem is that it actually changes the window's title, as seen by applications (such as our own window manager, Moom). For instance, run this command in 10.7's Terminal...
osascript -e "tell application \"Terminal"\ to return name of window 1"
...and you'll see the current folder reflected in the window title. If you'd rather not have the path there, the fix is simple. Just add this command to your .profile file (or whatever file you use to init your Terminal windows):
Save the .profile file, close and open a new Terminal window, and you'll see that the folder drop-down has vanished from the window title.
In iTunes, there are two ways to categorize your videos: as either Movies or TV Shows. I use the Movies category for very large files, and put everything else in TV Shows, because in the TV Shows library, iTunes allows you to create groups. I've created groups called You Tube Videos, Home Videos, Work Stuff, etc.
To create a group, first make sure both TV Shows and Movies are visible in the iTunes source list. If they're not, go to iTunes' General preferences and check Movies and TV Shows in the Show section.
Next, import your new movie into iTunes by dragging it to the source list where these libraries display. In most cases, iTunes will categorize it as a movie. Select the movie and press Command-I to display the Info window. Click on the Options tab, then, under Media Kind, choose TV Show. If it's as short video, you might want to uncheck Remember Playback Position, because you will most likely always want to start these types of files from the beginning.
Next, click on the Sorting tab. Correct the tag that iTunes applied, if necessary, in the Name field. To create a nested group, you must enter some text in the Show field. You'll want to apply the same name for every item in the group, so the files stay in that group. Click on OK, and this will be applied.
When you look at your TV Shows library now, you'll see that all members of a group will display, in Icon or Cover Flow view, behind a single icon. In Album List view, all of the videos will display, but you'll see them sorted by "Show," or the group name you gave them.
[kirkmc adds: This is a good workraound that can help you organize a big video library, though there are some problems. iTunes seems to choose arbitrarily which icon to display when in icon view, rather than, say, the first item.
Another way you could do this, if you want to display the items in Icon view, is to choose to display them by Genre, and apply custom genres to your video files. However, using the Show tag allows this organization to also display on an Apple TV.]
My workflow often involves taking Word Documents and manipulating them with handwritten annotations on my iPad. With this method, I can immediately take a downloaded .docx (or presumably any other MS Office file), convert it to a PDF, get it into my Dropbox, and finally my annotation app; all without leaving the iPad. While it may seem clumsy at first, it only takes four easy steps.
You will need the Pages app, the Dropbox app, a Dropbox account, and a a send to dropbox account.
1. Import your document into the Pages app.
2. Tap the wrench and select "Share and print."
3. Email a PDF to your @sendtodropbox address.
4. Check out the "Attachments" folder in Dropbox (or your desired Dropbox-linked 3rd party app).