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

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: 5 / 5 (8 votes cast)
 
[3,785 views] Email Article To a Friend 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: 1 / 5 (8 votes cast)
 
[11,248 views] Email Article To a Friend 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"
		activate
		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
			compose
		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 4.50 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[4,580 views] Email Article To a Friend 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: 5 / 5 (6 votes cast)
 
[3,423 views] Email Article To a Friend 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 Chrome.app (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 Chrome.app (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 OpenURLInNewChromeWindow.app 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: 2 / 5 (8 votes cast)
 
[7,038 views] Email Article To a Friend 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 com.apple.iTunes disable-elastic-scroll -bool YES

To turn it back on:

defaults write com.apple.iTunes disable-elastic-scroll -bool NO

To delete the preference:

defaults delete com.apple.iTunes 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: 3 / 5 (7 votes cast)
 
[5,397 views] Email Article To a Friend 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.25 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (4 votes cast)
 
[4,251 views] Email Article To a Friend 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: 3 / 5 (7 votes cast)
 
[32,432 views] Email Article To a Friend View Printable Version
No hints today Apps
No hints today, in honor of Memorial Day.

Spend a moment to think about those who fought.
  Post a comment  •  Comments (0)  
  • Currently 3.44 / 5
  You rated: 1 / 5 (9 votes cast)
 
[3,374 views] Email Article To a Friend View Printable Version
Change hidden iTunes preferences Apps
There are plenty of hints on this site that use the defaults command to change preferences or settings that are unavailable via the GUI. These are fine to use for isolated changes, but there are some applications where you might want to change a number of settings.

iTunes is one of these. Over the years, Apple has removed a number of options from iTunes; at least from its menus and preferences. Many of these options remain, but are hidden.

Doug Adams' free Change Hidden iTunes Preferences is an applet that lets you change a number of settings. I use it to make sure that when I rip CDs, track numbers are added to the file names; to hide Ping buttons; and to hide the arrow buttons that display next to tracks. Other options it offers are the ability to turn on half-stars for ratings (useful for smart playlists), showing the "Libary" playlist at the top level of the iTunes source list, and to create playlists for new purchases such as albums.

This is a simple GUI tool that allows you to check some buttons and click Apply. So if you want to make changes to some of these hidden settings, check out this applet.
  Post a comment  •  Comments (6)  
  • Currently 4.14 / 5
  You rated: 1 / 5 (7 votes cast)
 
[9,367 views] Email Article To a Friend View Printable Version