Print selection on a Mac

Tue Aug 12, 11:02 AM

Unbelievably, Mac OS X offers no “print selection” option. There’s no way to highlight some text on a page and then print only that, rather than the whole thing.

Here’s the solution.

  1. Download Print Selection Service. It’s free of charge, courtesy of Schubert IT.
  2. Install it and reboot. This is important.
  3. Open System Preferences and click the Keyboard icon.
  4. Click the Shortcuts tab and then the Services entry in the list on the left.
  5. Put a tick alongside Print Selection.

From now on, simply select the text you want to print, right click the selection, select the Services submenu, and select Print Selection. On some Macs the “Print Selection” entry might simply appear on the menu that appears when you right click. Alternatively, you may be able to tap Shift+Cmd+T to print the selection, which you’ll probably need to do in apps like Microsoft Word that don’t show Service entries on the right-click menu.

Keir Thomas

,

Know better?

---

Quick access Private Browsing mode in Safari to access paywall sites

Sun Jul 20, 06:10 PM

I’m using Safari… again. Don’t ask. it’s a troubled history. A few features are missing from my days using Opera and also Google Chrome, and one in particular is the ability to quickly activate Private Browsing mode. I do this solely when I’m blocked by a paywall at a news site that relies on cookies to count how many “free” visits I’ve made. Private Browsing makes it appear that I’m a new user, so I get to see the page.

Here’s a trick that’ll let you activate Private Browsing in seconds and see the page.

There’s no keyboard shortcut for Private Browsing but it’s really easy to add one.

  1. Open System Preferences and then click the Keyboard icon.
  2. Click the Shortcuts tab, and then select App Shortcuts in the list on the left.
  3. Click the Plus button and then type Private Browsing into the Menu Title field. Place the cursor in the Keyboard Shortcut field beneath and then type Cmd+Shift+P.
  4. Click Add.

If you get blocked by a paywall, just tap Cmd+Shift+P and then Cmd+R to refresh the page.

Keir Thomas

,

Know better?

---

20 things you don't know

Fri Jul 18, 01:04 PM

Macworld UK: 20 iPad and iPhone tips you won’t believe you’re not already using. See how many of them you don’t know!

Keir Thomas

,

Know better?

---

Quitting everything

Mon Apr 28, 01:16 PM

A reader of Mac Kung Fu recently got in touch asking if I knew of an app that would do the following:

  1. Quit all open files in all apps;
  2. Quit all apps except for one.

He wanted this because he found Mac OS X’s strategy of resuming open apps on boot-up/login to be unsatisfactory.

There’s a tip in the book that explains how to use AppleScript to quit all apps but it wasn’t as sophisticated as this. However, hacking together something to do the trick wasn’t difficult. As always when giving out AppleScript I should point out that I’m not an AppleScript expert or even a programmer (although, of course, this is what’s so great about AppleScript — it caters to people like me).

Here’s the script — just open AppleScript Editor and paste it in, then save it out as an app. This will quit all apps except Microsoft Word but you can change the name of that app for any other app in the first line of the code:

tell application "System Events" to set quitapps to name of every application process whose visible is true and name is not "Finder" and name is not "Microsoft Word"
repeat with closeall in quitapps
	try
		tell application closeall to close every window
	end try
	quit application closeall
end repeat
Keir Thomas

,

Know better?

---

Removing errant Mail email addresses

Mon Apr 28, 01:06 PM

A year or two ago a friend switched email addresses and told me to stop using the old one. I did what any of us might, which is to go to the Contacts app on my Mac and remove the old address, in favour of the new one. This should then change my iCloud address book too. It did, and it appeared worked fine.

Fast forward to today when the same friend complained I was still using the old email address.

The reason is that the Mail app on a Mac uses both the address book and its own, private list of recent addresses. My friend’s old address was in that list and Mail autofilled it when I typed his name. To view this list you can click Window > Previous Recipients. The best policy is to search by name, select the errant address, and click the remove from list button.

Alternatively, you could select all the items in the list and remove them all, relying only on your contacts list/iCloud address book.

Keir Thomas

,

Know better?

---

Mac menu bar apps

Thu Apr 10, 02:06 PM

I’ve become a fan of Mac menu bar apps — those mini-apps that run as icons near the clock at the top right of the screen. In fact, I thought I’d share my list of favourites. Share your own in the comments below.

First, here’s a snapshot of my current menu bar, chopped in two so it’ll fit on-screen:

From left to right the icons are:

Cloak 2: Ultra-easy VPN software that automagically protects me when I’m on public Wi-Fi because it knows what are safe and unsafe networks. It has companion apps for the iPad and iPhone, and costs just $3 per month. MacWorld did a review recently, which is much more useful than anything I can add.

iBetterCharge: Click on it and it shows the battery charge level of any iPads, iPhones, or iPod Touches that have been used via iTunes (provided they’re on the same Wi-Fi network). It’ll also tell you when they’re running out of charge, and when they’re fully charged. There’s a few minor bugs but it’s otherwise pretty neat. Free of charge.

FormatMatch: Sits there and does nothing more than strip the formatting out of any text copied to the clipboard. I can copy text from a website, for example, and instantly paste it in without worrying the font will be wrong and that I’ll have coloured text (and without having to hit the ridiculously complicated “paste unformatted” keystroke). It’s free but I’d pay for a version that stripped out everything but bold and italics, because often I want to keep them when copying and pasting. Free via the Mac App Store.

unDock: Click it and it ejects any attached removable storage devices like disks or USB sticks. My MacBook Pro spends most of its time on my desk attached to a 1080p monitor plus at least one external drive, but when I need to take it somewhere I click this icon, wait a few seconds, then unplug everything. $1.99 in the Mac App Store although there’s also a lite version for free that unmounts just one drive.

Identical: Drag one file to this icon, then another, and you’ll see instantly if they’re identical. I use it a lot when I need to, which is when working collaboratively. Free of charge in the Mac App Store.

Shades: Click and a slider appears to adjust screen brightness, but with a caveat. That 1080p monitor I mentioned earlier is a crappy Samsung model that broke after two years of use. It has two issues: the buttons to adjust settings no longer work reliably, and if it’s set to anything other than maximum brightness it emits a whistle that drives me crazy. Maximum brightness gives me a headache. So, I hike-up the brightness to 100% and use Shades to “fake” adjust the brightness, which it does by applying a dark screen overlay. It’s a bit temperamental but works very well and doesn’t affect screenshots. Free of charge.

Spideroak: Encrypted cloud backup software with possibly the worst client app I’ve used in 20 years of desktop computing. The background service appears pretty solid but because of the client I can’t really recommend it. It’s around $100 per year for 100GB.

Skitch: Click to create a screenshot, usually by dragging around the area I want to capture. Ideal for my day job of computer journalism. Drag the icon beneath each captured screenshot to a Finder window to copy the PNG screenshot there. It’s supposed to integrate with Evernote but you can ignore that. Free in the Mac App Store.

Dropbox: Installed because some of my colleagues use it. I don’t really need a day-to-day cloud storage service other than for backup (see Spideroak, above).

Little Snitch: Acts as an outgoing firewall, telling you when apps attempt to access the Internet and blocking them if you select to. I owned a previous version that stopped working when I upgraded to Mavericks. I’m loathe to pay for an upgrade to a new version, partly because the developer insists on adding tax on top of the cost (why?), so this is the trial version that works for three hours until nagging you that it’s only a trial.

Bluetooth: The built-in Mac Bluetooth icon.

Time Machine: In addition to Spideroak I backup to an attached G-Drive via Time Machine. I recently restored my entire MacBook Pro from a Time Machine backup after a botched Windows 8 installation, and it worked like a dream (aside from iCloud not quite syncing properly, which was fixed by deselecting and reselecting iCloud in System Preferences.)

Speaker: The Mac speaker icon — click to adjust the volume plus other things.

Battery: The Mac battery icon — click to see remaining battery life, plus other things.

Fast User Switcher: The Mac icon that lets you switch between user accounts without having to log out. I sometimes create dummy accounts as part of my computer journalism, and have a DTP account with lots of fonts installed within it for when I have to layout books as part of my other job.

Day-O: Replacement for the built-in menu bar clock and date display. Click it and a simple calendar appears showing the current month, which is a feature I really miss from my days using Windows. Although I installed Day-O for the calendar feature, I found it can be configured to show just about any type of date and time info in the menu bar. In addition to the usual numbers, I have it show the week and day number as a kind of carpe diem. The year’s wasting away and there’s lots to be done! The time/date formatting code I use, which you can also use:

d MMMM yyyy '(day 'D', week' w')' • E, h:mms

Spotlight: The Mac search icon that forms the heart of my Mac experience. It’s how I start apps (hit Cmd+Space, type the first few letters of the name, and hit Enter when it appears beneath) and how I open files (type the first part of the filename or what I know to be in the file, and hit Enter when it appears beneath). In Mavericks it’s starting to go a little senile, however. I have iTunes installed, and iTunes Producer. If I search for “iTunes”, the Producer app is always the first choice in the list. Why? Surely it should be iTunes? It’s the same when I search for Disk Utility — Disk Tools Pro appears above it. I get around this by typing only DU — did you know that Spotlight lets you search by initial letters only?

Notifications: The Mac notification system. I find the pop-up notifications from apps useful (provided I see them before they slide away) but not the notification area that appears when you click this icon. Whenever I look at it, I find a tonne of old notifications. Like quite a bit of Mavericks, the notification system is only half-finished and needs more work. My experience is that quite a few Mac features start out as semi-useful, and mature into actually quite useful things later on (although I’m still waiting for Dashboard.)

Keir Thomas

,

Know better?

---

iPad and iPhone Kung Fu — Now available!

Sat Mar 1, 09:55 AM

I’m really pleased to say that my new book, iPad and iPhone Kung Fu, is now available! And it’s the first book I’ve had published that’s in colour!

It’s full of over 300 poweruser tips for iPad and iPhone users, which is something that’s rare. Most of the tips you simply won’t find elsewhere. I’ve explored every nook and cranny of iOS to provide tips for apps like Mail, Maps and Safari, and the iWork/iLife apps like Garageband and Pages. Even though I say so myself it’s a great book that I’m very proud of.

You can buy from the publisher as an eBook, paper book, or combo deal, or you’ll also find it at all good bookstores such as Amazon.

Keir Thomas

,

Know better?

---

Running "full" Android on a Mac

Wed Feb 19, 12:27 PM

Sometimes I want to check-out Android apps. Although I have an Android tablet, for initial investigation it’s easier for me to use a virtualised Android setup on my Mac.

The problem is that although there’s one or two projects to bring Android to x86 architecture, such as modern Macs use, they don’t bring with them the useful Google apps, such as the Google Play store. Esssentially they’re bare-bones Android, probably because of licensing issues, and complexities involving accessing an app store full of ARM-based apps.

It turns out it is actually possible to run a pretty convincing ARM-tablet or ARM-phone Android experience on a Mac, including things like the Google Play Store. And it runs pretty quickly too. Here’s the basic steps.

  1. Download and install VirtualBox.
  2. Visit the Genymotion site, register with them, and download their Android virtualizer for Mac OS X.
  3. Start Genymotion and then install either the basic custom 10in tablet or 7in phone packages as directed.
  4. Start the virtual machine so the Android desktop appears, then using your Mac’s browser download the ARM emulation package. Drag and drop the zip file on top of the Android window (DON’T unzip it first!) You’ll be asked if you want to add-in the modification. Choose to do so then quit and restart the Android virtualisation.
  5. Download the Google apps package again using your Mac, and repeat the step above — drag and drop the zip file on top of the Android window. Again, install it when prompted. Quit and restart the Android virtualisation.
  6. Once the Android virtualisation restarts you’ll have a clone of a bog-standard Android tablet and/or phone, and will be invited to setup from scratch, as if powering-on a new Android device.

Some tips for general use are not to resize the window, because this can cause flickering.

Many thanks to Stack Overflow user anp8850 for figuring out this solution.

Keir Thomas

,

Know better?

---

Looking for "assistive devices" in Mavericks?

Wed Oct 23, 05:00 PM

Some apps like TextExpander require you to activate assistive device support, which until Mavericks was located in the Accessibility section of System Preferences.

In Mavericks the whole caboodle has moved to the Privacy pane of the Security & Privacy section of System Preferences. Scroll down to the Accessibility icon on the left-hand side, then tick to allow TextExpander to work.

Keir Thomas

,

Know better?

---

Alter Word's cursor blink rate

Tue Apr 30, 10:58 AM

Have you ever noticed that Microsoft Word on the Mac has a slower text cursor blink rate compared to the rest of the system? I’m not sure why this is but it means that it’s not hard to ‘lose’ the text cursor when editing a document — often I have to stare at the page until the cursor starts blinking again so that I know where it is.

Luckily, this can be fixed easily. Quit all Microsoft Office apps, then open a Terminal window (it’s in the Utilities list of the Applications list in Finder) and paste-in the following, which will match the cursor blink rate with that of the rest of the system (triple-click the line to select all of it before copying):

defaults write ~/Library/Preferences/com.microsoft.Word.plist NSTextInsertionPointBlinkPeriod -int 500

If you want a really fast blinking cursor, like computers of old, try this instead:

defaults write ~/Library/Preferences/com.microsoft.Word.plist NSTextInsertionPointBlinkPeriod -int 100

To restore the default setting, again quit all Microsoft Office apps and type the following into a Terminal window:

defaults delete ~/Library/Preferences/com.microsoft.Word.plist NSTextInsertionPointBlinkPeriod
Keir Thomas

,

Know better?

---

« Older



(c) 2013 Keir Thomas. Unauthorized reproduction in any form is prohibited. Short quotations from this blog
are cool so long as you provide a citation and a link to http://www.mackungfu.org.