Mountain Lion removed the ability to set the frequency of checks for software updates. The default frequency was always a week and it remains so.
To change the frequency, open com.apple.SoftwareUpdate.plist, found in /Library/Preferences, and change the ScheduleFrequency key from 7 to the number of days you prefer.
I prefer to be notified of updates daily, if available, so I changed the frequency to 1.
[kirkmc adds: Note that you'll need admin privileges to edit this file. You can do so with a text editor, or with Xcode, which presents a graphical interface for .plist files. ]
I noticed that my iChat-related AppleScripts had stopped working after the 10.8 upgrade. Apparently, Messages no longer answers to the name iChat; you have to edit your scripts to call "Messages" instead, like this:
tell application "Messages" to set status message to "On Mountain Lion"
I'm pretty sure the beta didn't break backwards compatibility like that, and I really can't think of a good reason for it.
[kirkmc adds: It's true that the name of an application like this changes it should probably still respond to the old name. So scripters beware. It's worth noting that both Contacts and Messages do respond to their old names if you search for them in Spotlight, though Calendar does not.]
if you take movies with your iOS device (or other camera) that need to be trimmed, you may have encountered the following. If you do not trim the movie on the device, but do it later on your Mac using QuickTime, the file’s date will change to the date you trimmed it, resulting in an incorrect sort order in iPhoto.
Terminal and touch come to the rescue:
First check the original file’s date and time in the Finder by selecting it and pressing Command-I.
Then, in Terminal, use touch to change the date and time. Here’s an example:
This will change the file's modification date to August 19, 2012 at 12:30. Doing this before importing the trimmed video will keep an appropriate sort order in iPhoto.
Check man touch for more on using this command.
[kirkmc adds: The touch command is nothing new, and there's even a hint about using touch with iPhoto that's more than ten years old. I thought it was worth posting this, however, because of the issue with dates that are changed when editing files such as movies.
Growl includes a feature to pause and resume notifications, which is very useful when giving presentations or screen sharing. Unfortunately, the UI only exposes this feature via the menu icon. With this script you can hide the icon and control notifications via a launcher such as QuickSilver or Alfred.
* Pause and resume Growl. Use in a launcher like Quicksilver or Alfred to
* pause and resume Growl when the menu bar icon is disabled.
* Author: Andrew Berry, deviantintegral@gmail.com
*)
tell application "Growl"
register as application "Growl pause/resume" all notifications {"Growl paused", "Growl resumed"} default notifications {"Growl paused", "Growl resumed"} icon of application "Growl"
if is paused then
resume
notify with name "Growl resumed" title "Growl resumed" description "Growl notifications resumed" application name "Growl pause/resume"
else
notify with name "Growl paused" title "Growl paused" description "Growl notifications paused" application name "Growl pause/resume"
pause
end if
end tell
If you don't care for Apple's skeuomorphic design in Calendar and Notes in Mountain Lion, here's a way you can change Notes to use a gray titlebar and inactive buttons.
Do the following:
Copy Notes from /Applications to a safe place in case you want to revert back to the original.
Download this archive which contains a few gray graphic files.
Unzip the archive; it contains a folder called Notes dark grey.
Browse to /Applications/Notes.app/Contents/Resources in Finder. (Right-click on the Notes app and choose Show Package Contents, then go to the Resources folder.)
Quit Notes if it is running.
Copy the 5 PNG files from Notes dark grey to /Applications/Notes.app/Contents/Resources.
Restart Notes.app and enjoy
[kirkmc adds: Beware that this may not work after an OS X upgrade, so you may need to do the above operation again.]
If you're in Column View in the Finder, select a PDF and you'll see a preview of the file in the rightmost column. There are two next and previous arrows to switch pages, but you can also scroll using two fingers (or a scroll wheel on a mouse) to move through the document.
[kirkmc adds: This works with PDFs, but it doesn't work with Word documents, which seem to have recently inherited the next and previous buttons in Column View previews.]
Preview in 10.8 has removed a number of export options. If you choose File > Export, there are only six options in the Format popup menu, compared to 13 in the Lion version of the application.
Alas, this is yet another feature that has more options hidden behind an Option keypress. Hold down the Option key when clicking on the Format menu to see all 13 available options.
The Click to Tweet button in Notification Center is just crying out for a way to activate it without taking your hands off your keyboard. Over at StackExchange, user Ewwis posted the following AppleScript. Save this and launch it with, say, LaunchBar or another launcher. It displays a dialog where you can post your tweet, then, when you click on OK, displays Notification Center and sends your tweet.
display dialog "Tweet?" default answer "" buttons {"OK"} default button 1
set mytweet to text returned of result
tell application "System Events"
tell process "Notification Center"
click menu bar item 1 of menu bar 1
click button 1 of UI element 1 of row 2 of table 1 of scroll area 1 of window "window"
keystroke mytweet
keystroke "D" using {command down, shift down}
keystroke space
end tell
end tell
Imagine that you run a script automatically on your Mac, and that you want to check the result of that script. There are many ways you could do this, such as remotely connecting to the Mac, or sending the results by e-mail. But with iCloud, you can also save the output to a file and put it on iCloud, where you can access it with your favorite iCloud-compatible text editor on another Mac, or on an iOS device.
To do so, simply send the output of the script to a file like this:
So, to save a list of a directory's contents, you'd use this:
ls -al > ~/Library/Mobile\ Documents/com\~apple\~TextEdit/Documents/list.txt
That saves a file called list.txt in TextEdit's Documents folder. Look inside the ~/Library/Mobile\ Documents folder for the paths to other apps you have that can use iCloud. Each folder in the Mobile Documents folder has a Documents sub-folder. Depending on the app, you may be able to access the files on another Mac or on iOS.
You can drag an e-mail from Mail to Notes, and Notes will display a clickable link with the subject of the e-mail. Click that link to open the e-mail in Mail.
What's interesting is that you can then copy the link to the message by right-clicking and choosing Copy Link. When you paste the link into a text editor, it will look something like this:
If you paste the link into an application that can recognize it as a link, it will be clickable, and will open the e-mail. For example, TextEdit will display this as a link, if you're using an RTF document. I use BusyCal as my calendar application, and pasting an e-mail link in the Notes field results in a clickable link; however, Apple's Calendar doesn't recognize it as such. The Scrivener word processor recognizes it as a link, but Microsoft Word doesn't.