Archives for February 2013

TUAW Post > AppleScript Productivity > Create OmniFocus Followups from Contacts

ofocus_scriptAs an OmniFocus for Mac user, it's important that I can quickly create tasks at any time, in any app. OmniFocus makes this pretty easy, by providing integration with OS X Mail, a keyboard shortcut for clipping content in apps such as Safari, a system-wide Quick Entry window, and a Services menu item. One feature OmniFocus lacks, however, is direct integration with the Contacts app. Suppose I am in Contacts, for example, and I need to schedule a followup phone call or email to one of my clients? Sure, I could bring up the Quick Entry window and enter the task, but I want something a bit more streamlined. I can accomplish just what I need by writing some custom AppleScripts. The following two examples demonstrate how to write AppleScript-based plug-ins for the Contacts app, which add OmniFocus followup options right into the email and phone number popup menus of your contacts.

[Read more on TUAW...]

MacTech Article > AppleScripting System Preferences

Whether you manage one Mac or many, applying system preferences and settings can be a real pain in the neck, especially if you regularly have to re-apply the same settings.  Maybe you're an admin who manages an entire network of Macs and you need to make a sweeping change across all of your machines. Or, maybe you just want your Dock on the left when you're at work and at the bottom when you're at home.  Regardless of the situation, if you need to make regular changes to settings on your Mac, AppleScript can probably help you streamline the process.  In this month's column, we'll take a look at some simple ways you can use AppleScript to gather system information and tweak settings.

[Read the full article in MacTech magazine's January 2013 issue, available in print and in the MacTech iPad Newsstand app]

TUAW Post > AppleScripting OmniFocus > Send Completed Task Report to Evernote

ofocus_scriptI've mentioned before thatOmniFocus is my task manager of choice. Each morning, I pull up a list of scheduled tasks for the day, and focus on getting them done. In OmniFocus, I've set up Perspectives (saved window states) for both Due tasks and Completed tasks. What I really want, however, is something that will pull out recently completed tasks and summarize them in Evernote, my note management app of choice. This way, I can maintain a historical log of my progress, and pull out summaries of completed tasks to send to clients. Since this type of integration isn't built into OmniFocus or Evernote, I wrote an AppleScript to do it.

[Read more on TUAW...]

TUAW Post > AppleScripting Dates > Elapsed Time Calculator

script_heartSince Valentine's Day is this week, I thought I would take this opportunity to share an AppleScript I wrote to calculate how long my wife and I have been married. With this baby, I'll never be accused of forgetting how long it's been when our anniversary rolls around. The script determines the elapsed time between now (the current date and time), and a prior date and time (such as our anniversary). It then displays the result in seconds, minutes, hours, days, weeks, months, and years.

[Read more on TUAW...]

TUAW Post > AppleScripting Notification Center > Scheduling Do Not Disturb

nc_scriptMountain Lion's Notification Center is great for keeping you in the loop, but it can be a huge distraction when you need to get stuff done. Sometimes, a little peace and quiet is all you need to stay productive.

As you may know, iOS 6 includes a handy Do Not Disturb feature, which can be turned on to disable notifications. It can even be set to automatically enable/disable itself at scheduled intervals. Mountain Lion also lets you disable Notification Center. Just open Notification Center and drag down to access a Show Alerts and Banners toggle switch. Note that this is a temporary setting, and disabled notifications automatically re-enable at midnight.

Unlike iOS 6, though, Mountain Lion doesn't give you an option for enabling/disabling notifications on a schedule. At least, it doesn't provide a built-in option for this. With a little customized help from AppleScript, Automator, and the Calendar app, it is possible.

In this post, you'll create two Calendar Alarm Automator workflows, which can be configured to run at scheduled times to enable or disable Notification Center alerts and banners.

[Read more on TUAW...]