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

Disable low resolution in Retina Macbook Apps
If you have a Retina MacBook Pro, you'll find a new checkbox in the Get Info window for an application: it says "Open in Low Resolution." This box is checked for Pages, for example. Unchecking it cleans up the text enormously. Why would the box be there and why is it checked for iWorks packages? (And is there any harm in unchecking it and getting clearer text?)

[kirkmc adds: Can't test this one, unless someone wants to send me a Retina MacBook Pro... If anyone has insight into the questions at the end of the hint, feel free to comment.]
  Post a comment  •  Comments (10)  
  • Currently 3.00 / 5
  You rated: 3 / 5 (4 votes cast)
[18,614 views]  View Printable Version
Disable iPhoto sharing via AppleScript Apps
I needed an automated way to disable/enable iPhoto sharing with ControlPlane. I used GUI scripting in AppleScript to accomplish this task. The most recent version of the script below can be found here.

How to run it: osascript toggle_iphoto_sharing.scpt "disable" "no"
- the first parameter is the status to set sharing to - disable or enable
- the second parameter is whether or not to start iPhoto to make the change
Note: iPhoto must be running for this script to change anything.

on appIsRunning(appName)
	tell application "System Events" to (name of processes) contains appName
end appIsRunning

on run argv
	set a_stat to (item 1 of argv)
	#set a_stat to "disable"
	set start_iphoto to (item 2 of argv)
	set do_work to "no"
	if not appIsRunning("iPhoto") then
		if start_iphoto is equal to "yes" then
			set do_work to "yes"
		end if
		set do_work to "yes"
	end if
	if do_work is equal to "yes" then
		tell application "iPhoto" to activate
		tell application "System Events"
			tell process "iPhoto"
				click menu item 3 of menu "iPhoto" of menu bar 1
				click button "Sharing" of tool bar 1 of window 1
				if value of checkbox "Share my photos" of group 1 of group 1 of window 1 is equal to 1 then
					if a_stat is equal to "disable" then
						click checkbox "Share my photos" of group 1 of group 1 of window 1
					end if
					if a_stat is equal to "enable" then
						click checkbox "Share my photos" of group 1 of group 1 of window 1
					end if
				end if
				click button 1 of window 1
			end tell
		end tell
	end if
end run

  Post a comment  •  Comments (5)  
  • Currently 3.80 / 5
  You rated: 2 / 5 (5 votes cast)
[3,572 views]  View Printable Version
Spot upscaled images on retina MacBook Pro Apps
Cabel Sasser of Panic shared something interesting on Twitter yesterday. He said that running the following command will highlight images that haven't been upscaled by doubling their size:
defaults write -g CGContextHighlight2xScaledImages YES
I don't have a retina MacBook Pro to test this, but this should be useful for developers, or simply for others who want to see which images are native retina resolution and which are not.
  Post a comment  •  Comments (1)  
  • Currently 3.88 / 5
  You rated: 4 / 5 (8 votes cast)
[3,918 views]  View Printable Version
Use keyboard shortcuts to skip and pause Flash videos Apps
My Macworld colleague Dan Frakes tweeted recently about something he stumbled on when viewing Flash videos on YouTube. Using the J, K and L keys, he found that he was able to skip ahead and back, and pause or play these videos.

Use the following keys to:

J - skip back 10 seconds
K - pause/play
L - skip forward 10 seconds.

These only work with Flash videos; if you load HTML5 videos on YouTube, these shortcuts don't work.

It's worth noting that some websites mention that you can use arrow keys and the spacebar to perform the above actions, but these don't work on Macs.

Why don't you try it out with this video by one of my favorite artists, The Grateful Dead, performing Ripple, from a concert I attended more than 30 years ago.
  Post a comment  •  Comments (11)  
  • Currently 2.75 / 5
  You rated: 2 / 5 (8 votes cast)
[13,237 views]  View Printable Version
Create new e-mail message with attachment with Sparrow Apps
Here is an Automator action I made for creating a new e-mail message with an attachment from the Finder using Sparrow. It is similar to the built-in service for Mail.

Just create a new service, specify that the "Service receives selected: Files or Folders" in "Any Application."

Then, add a "Run Applescript module". Copy and paste the code below.

This works with multiple attachments. Now you should have a contextual menu item after selecting items in the Finder. You can tweak this by opening Keyboard preference pane in System Preferences.
on run {input, parameters}
	tell application "Sparrow Lite" -- or "Sparrow"
		set theMessage to make new outgoing message
		tell theMessage
			repeat with ii in input
				make new mail attachment with properties {filename:ii as alias}
			end repeat
		end tell
	end tell
end run
[kirkmc adds: This was submitted by e-mail by Tom F. I don't have Sparrow to test it. One thought: at the beginning, should it really be for "Any Application?" This only works in the Finder, so I think it should be just the Finder in that part of the workflow.]
  Post a comment  •  Comments (3)  
  • Currently 3.25 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (4 votes cast)
[4,814 views]  View Printable Version
Spotlight keyword to find webarchive files Apps
In Lion's Spotlight, type kind:web and Spotlight returns webarchive files. Type kind:webarchive, however, and Spotlight does not return any files.

This behavior happens in Lion and Snow Leopard. I have not tested previous Mac OS X versions.

[kirkmc adds: Yes, this is what happens. Oddly, webarchives aren't listed in Apple's Help entry on Spotlight keywords, and, in this hint from 2007, based on a blog post of mine, it's not present either. I've written a fair amount about Spotlight for Macworld (notably this 2008 article which features a long list of such keywords), and never mentioned webarchives.]
  Post a comment  •  Comments (3)  
  • Currently 3.67 / 5
  You rated: 1 / 5 (6 votes cast)
[3,557 views]  View Printable Version
Keyboard shortcut for opening current Safari page in Google Chrome Apps
Assigning a shortcut to open Safari's current page in Google is simple but breaks frequently, because the menu item name includes Chrome's version number. The simple fix is to use an Apple Script like Mike Hardy's as a proxy to Google Chrome. I'm describing this in more detail in this blog post, which is also reproduced below.

Currently shipping Macs come without Adobe Flash Player preinstalled, and I’ve been running that same setup without Flash for quite a while now myself. More and more webpages work fine without Flash and only the occasional video requires it. When that is the case, I simply go to the Develop menu (enable it in Safari's Advanced preferences if you don’t have it) and select Open Page With > Google (20.0.1132.21). Since Google Chrome comes with Flash preinstalled, this is a simple way to switch to a Flash-enabled browser.

Now, rather than choosing Chrome from the menu it would be nice to assign a keyboard shortcut for this menu item, and this is actually quite simple: Open the keyboard preference pane in System Preferences, select ‘Application Shortcuts’ and add a shortcut for the Google (20.0.1132.21) menu item to Safari. However, the problem here is that the menu item contains the version number of Chrome and since Chrome updates frequently (and in the background), you’ll find yourself with a broken shortcut very soon.

The fix for this is a little Apple Script by Mike Hardy which tells Google Chrome to open the URL via an Apple Script command. If you run this script once, it will register itself as a application that can handle URLs, and will therefore also appear in the list of browsers under Open Page With. Opening a page with this script will open the current page in Chrome just like before, but the menu item will stay the same no matter which version of Chrome you have installed. You simply assign the shortcut to this "browser" instead of the ever-changing Chrome.

As an added benefit (and actually the reason Mike Hardy wrote the script in the first place) is that the page opens in a new window and not in a new tab (which can be quite annoying when using virtual screens). See Mike’s blog post for more details how to use his script in that context.
  Post a comment  •  Comments (8)  
  • Currently 3.75 / 5
  You rated: 1 / 5 (8 votes cast)
[7,382 views]  View Printable Version
Disable elastic (rubber band) scrolling in iTunes Apps

A recent hint described how to disable elastic scrolling in many Lion applications. You can disable this effect in iTunes alone by setting the hidden preference "disable-elastic-scrolling".

To turn off elastic scrolling in iTunes, enter this in Terminal:

defaults write disable-elastic-scroll -bool YES

To turn it back on:

defaults write disable-elastic-scroll -bool NO

To delete the preference:

defaults delete disable-elastic-scroll

I have included this option in the latest version of my AppleScript Change Hidden iTunes Preferences.

[kirkmc adds: I find it interesting that this key uses the term "elastic" and the one in the previous hint uses "Rubberbanding." Which means that I had to make the title of this hint include both...]
  Post a comment  •  Comments (2)  
  • Currently 4.43 / 5
  You rated: 5 / 5 (7 votes cast)
[5,634 views]  View Printable Version
New poll: Mac App Store and software purchases Apps
In honor of the "sandboxalypse," or the day that Apple started imposing sandboxing rules on the Mac App Store, I thought it would be interesting to see how Mac OS X Hints readers use the Mac App Store. Head over to our new poll about the Mac App Store and software purchases.
  Post a comment  •  Comments (14)  
  • Currently 3.00 / 5
  You rated: 1 / 5 (5 votes cast)
[4,393 views]  View Printable Version
View console log in Terminal Apps
Back in the day, prior to Leopard, there was a console.log file, which contains errors and messages for the current user's account. When Leopard came around, this file was removed, and the system-wide logging system (ASL) replaced it. Those messages are still recorded, but when you view logs in Console, you can't see them on their own.

I was doing some research today for an article, and wondered where that file went, and how one could view it, since the full system.log contains so many entries that it can be hard to wade through. I found a forum thread from 2008 which explains that you can see what used to be in console.log by running syslog -C in Terminal. You can also run this command to save these entries in a file, then view them in vim: syslog -C > /tmp/console.log; view /tmp/console.log. Or, if you simply want to save this information in a text file, you can do this: syslog -C > /Desktop/console.log.

While this isn't new, it's good to know, if you're looking through logs in Console in search of information.
  Post a comment  •  Comments (13)  
  • Currently 3.29 / 5
  You rated: 2 / 5 (7 votes cast)
[37,192 views]  View Printable Version