Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Navigate and manipulate Calendar events with arrow keys Apps
Arrow keys now allow you to move through events in Calendar. If you select one event, you can move around through all your events by using the arrow keys. Note that you can't highlight an all-day event using the arrow keys except in Month view.

Another behavior that might be new: if you hold down the Control key, a left or right arrow key will move a highlighted event right or left across days and the up/down keys will move the event in 15-minute increments when you are in Day or Week view, or move it up or down the calendar in Month view.

[kirkmc adds: Is this new in 10.8? I don't use iCal; um, Calendar.]
  Post a comment  •  Comments (1)  
  • Currently 3.50 / 5
  You rated: 3 / 5 (6 votes cast)
 
[1,962 views] Email Article To a Friend View Printable Version
AppleScript to get Google search URL Apps
In Safari 6, with the new combined URL and search field, if you type search terms into the field, then press return, you'll get a Google page with the results, but you won't get a search URL in the address field. Some people want to save searches at times. Macworld's Dan Frakes tweeted an AppleScript which does just that and Many Tricks developer Peter Maurer improved on it. Run the script and it will get the URL for the frontmost tab then send it to the clipboard, from which you can paste it where you want.
tell application "Safari"
	set the clipboard to URL of current tab of window 1 as string
end tell
As Dan Frakes later pointed out on Twitter, you can also drag the favicon to a finder window. You can double-click the resulting file to redo the search, or you can press the Spacebar to Quick Look it and see a live search with clickable links. For a search, the favicon is the magnifying glass icon at the left of the search field.

So, how many other ways can you find to save a Google search URL?

Update: Jordan Kay posted an even shorter version on Twitter:
 tell application "Safari" to set the clipboard to URL of current tab of window 1 as string
  Post a comment  •  Comments (2)  
  • Currently 2.63 / 5
  You rated: 3 / 5 (8 votes cast)
 
[2,917 views] Email Article To a Friend View Printable Version
Cycle through conversations in Messages Apps
If you have multiple conversations visible in Messages, you can cycle through them using a keyboard shortcut: press Control-Tab to cycle down, and Shift-Control-Tab to cycle up.

There seem to be some inconsistencies. When testing this, if I had my cursor in the text field, sometimes the keyboard shortcut wouldn't work and would instead highlight the name in the To section above the conversation.
  Post a comment  •  Comments (6)  
  • Currently 3.00 / 5
  You rated: 1 / 5 (5 votes cast)
 
[3,436 views] Email Article To a Friend View Printable Version
Drag e-mails to create reminders Apps
After installing Mountain Lion, I was looking for an easy way to convert the e-mails I receive into reminders to act on later. After trying in vain in Mail (right clicks, menus, etc.) I found the solution is simple. Just drag an e-mail from Mail to Reminders and a new Reminder is automatically created with the subject of the e-mail as title and a link to the e-mail in the notes.

[kirkmc adds: To be honest, I expected there to be a clearer way to do this: a toolbar button in Mail, or a contextual menu item. I think a lot of people - like me - use their inbox as a to-do list. Being able to add them to the Reminders app can be very useful.]
  Post a comment  •  Comments (9)  
  • Currently 4.14 / 5
  You rated: 2 / 5 (7 votes cast)
 
[13,060 views] Email Article To a Friend View Printable Version
TextExpander shell script snippet to set Safari 6 default fonts Apps
Apple removed the default font settings preferences in Safari 6, but one can easily change them with a set of Terminal commands. More fun, though, is using TextExpander's Shell Script Snippet feature to do it. Slight advantage: once the snippet is in your collection, you can edit the snippet to change the fonts at any time without having to dig up the commands from your memory. Note that you have to quit and restart Safari for the changes to take effect.

Save the following text as a shell script:
#!/bin/bash
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2StandardFontFamily 'Lucida Grande'
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DefaultFontSize 14
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2FixedFontFamily Consolas
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DefaultFixedFontSize 11
Update: The submitter, Michael Cohen, wrote me saying that his brother Norman Cohen improved on the above script. I'll leave the original there, but below is a newer version, where the script quits and restarts Safari, and using TextExpander's fill-ins, lets you specify the fonts and sizes on the fly:
#!/bin/bash
if [[ $(ps -ax | grep -i safari | grep -v grep | wc -l) -ge 1 ]] ; then osascript -e "tell application \"Safari\" to quit";  fi
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2StandardFontFamily '%filltext:name=font-face:default=Lucida Grande%'
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DefaultFontSize %filltext:name=default-font-size:default=14%
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2FixedFontFamily '%filltext:name=fixed-font-face:default=Consolas%'
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DefaultFixedFontSize %filltext:name=fixed-font-size:default=11%
osascript -e "tell application \"Safari\" to activate"
[kirkmc adds: As mentioned above, you can run each line individually, or change them as you wish to your preferred font and size.]
  Post a comment  •  Comments (3)  
  • Currently 4.00 / 5
  You rated: 4 / 5 (7 votes cast)
 
[9,765 views] Email Article To a Friend View Printable Version
New Poll: What grade would you give Mountain Lion? Apps
So Mountain Lion has been out for a week, and a lot of people who read this site have developer accounts and have been using it for longer than that. What do you think of it? The best version of OS X ever? Needs more work? A total failure?

For this poll, you get to play teacher and give Mountain Lion a grade. Pass or fail? Vote here.
  Post a comment  •  Comments (7)  
  • Currently 4.00 / 5
  You rated: 3 / 5 (5 votes cast)
 
[3,058 views] Email Article To a Friend View Printable Version
Use launchd to schedule repeating tasks Apps
OS X uses a framework called launchd for "starting, stopping and managing daemons, applications, processes, and scripts." (Quote from Wikipedia.) You can use launchd to schedule any task you want to run at specific times or intervals.

Nathan Grigg has posted a simple, clear tutorial, Schedule jobs using launchd which gives an introduction into how this process works, and how you can use it to schedule repeated tasks on your Mac. You'll have to edit plist files, and you may want to install some third-party tools, but this can be useful if you want to set up your own tasks. You could use cron, but, as Grigg says, "Unlike cron, launchd does not assume that your computer is always running. So if your computer happens to be sleeping at the time a job is scheduled, it will run the job when it wakes up."

Another place to look is this tutorial no the Doug's AppleScripts for iTunes web site. Doug presents launchd as a way of running his Update Expired Podcasts script at regular intervals.
  Post a comment  •  Comments (8)  
  • Currently 3.00 / 5
  You rated: 1 / 5 (7 votes cast)
 
[40,952 views] Email Article To a Friend View Printable Version
Find if an application is from the Mac App Store Apps
I was rooting around my system today, and wondering if there's any way to find out if an application is from the Mac App Store. The Info window - when you select an item and press Command-I - doesn't say anything, but the System Information application does. There is an "App Store" column which says yes or no for each application.

I figured there had to be another way, and eventually found that the mdls command gives some of this information. Running mdls <app name> returns a lot of information, but near the top of the list are a few lines like this:
$ mdls /Applications/Smarts.app 
kMDItemAlternateNames             = (
    "Smarts.app"
)
kMDItemAppStoreAdamID             = "438671026"
kMDItemAppStoreCategory           = "Music"
kMDItemAppStoreCategoryType       = "public.app-category.music"
kMDItemAppStoreHasReceipt         = 1
kMDItemAppStoreInstallerVersionID = "8330689"
kMDItemAppStoreIsAppleSigned      = 1
kMDItemAppStorePurchaseDate       = 2012-06-13 07:14:43 +0000
kMDItemAppStoreReceiptType        = "ProductionReceipt"

The kMDItemAppStoreHasReceipt is what says whether or not it is a Mac App Store application, but you can see some other Mac App Store information there, such as the category (non-MAS apps have this too, interestingly), the purchase date, the application's ID, etc.

My interest in this is purely academic, but it could be useful to find all Mac App Store applications on a given Mac; you could use the kMDItemAppStoreHasReceipt key in a search, for example. If you run this in Terminal, you'll get a list of all your Mac App Store applications:

mdfind "kMDItemAppStoreHasReceipt=1"

Note that if you have any volumes excluded from Spotlight searches, their Mac App Store apps won't be listed in the results. (H/t to Thomas for that command.)

If anyone has any other ways of finding this information, feel free to post them in the comments.
  Post a comment  •  Comments (9)  
  • Currently 3.63 / 5
  You rated: 5 / 5 (8 votes cast)
 
[4,470 views] Email Article To a Friend View Printable Version
Turn off ads in Parallels Desktop Apps
The latest version of Parallels Desktop apparently has the sleazy feature of displaying ads, even though you've paid for the software. Simone Magnelli tweeted a defaults command that you can use to turn them off:

defaults write com.parallels.Parallels\ Desktop ProductPromo.ForcePromoOff -bool YES

Now I don't use Parallels - I use VMware Fusion - and I'm glad I don't. I haven't tested this, so if someone could confirm that it works, and post in the comments, I'd appreciate it.
  Post a comment  •  Comments (9)  
  • Currently 4.25 / 5
  You rated: 2 / 5 (8 votes cast)
 
[6,705 views] Email Article To a Friend View Printable Version
AppleScript to open current Safari page in Google Chrome via LaunchBar or TextExpander Apps
We ran a hint last month about opening the current Safari page in Chrome, but Padraic Renaghan came up with a nice AppleScript that he uses to open the page in Chrome via a LaunchBar action.

property theURL : ""
tell application "Safari"
	set theURL to URL of current tab of window 1
end tell

if appIsRunning("Google Chrome") then
	tell application "Google Chrome"
		if (count of (every window where visible is true)) is greater than 0 then
			-- running with a visible window, ready for new tab
		else
			-- running but no visible window, so create one
			make new window
		end if
	end tell
else
	tell application "Google Chrome"
		-- chrome app not running, so start it
		do shell script "open -a \"Google Chrome\""
	end tell
end if

-- now that we have made sure chrome is running and has a visible
-- window create a new tab in that window
-- and activate it to bring to the front
tell application "Google Chrome"
	tell front window
		make new tab with properties {URL:theURL}
	end tell
	activate
end tell

on appIsRunning(appName)
	tell application "System Events" to (name of processes) contains appName
end appIsRunning
He got the original idea from another AppleScript to open Chrome via TextExpander , created by Tim Arnold. Here's his script:
property theURL : ""
tell application "Safari"
	set theURL to URL of current tab of window 1
end tell
if appIsRunning("Google Chrome") then
	tell application "Google Chrome"
		make new window
		set URL of active tab of window 0 to theURL
		activate
	end tell
else
	tell application "Google Chrome"
		do shell script "open -a \"Google Chrome\""
		set URL of active tab of window 0 to theURL
		activate
	end tell
end if

on appIsRunning(appName)
	tell application "System Events" to (name of processes) contains appName
end appIsRunning
With the former, you save the script with any name you want, and type an abbreviation in LaunchBar to activate it. With the second script, you set a TextExpander abbreviation to run the script, and just type the abbreviation. Both of these scripts could be used in other applications: other launchers like LaunchBar, and other snippet expanders like TextExpander, as long as they support AppleScripts. Both are nice ways to quickly open a Safari page in Chrome.
  Post a comment  •  Comments (7)  
  • Currently 3.33 / 5
  You rated: 2 / 5 (6 votes cast)
 
[6,476 views] Email Article To a Friend View Printable Version