MacTech Article > Introduction to AppleScriptObjC (Cocoa-AppleScript)

AppleScriptObjC, also known as Cocoa-AppleScript, is a framework in OS X. It was initially released with OS X 10.6, and serves as the official replacement for AppleScript Studio, which Apple deprecated at the time. AppleScriptObjC is used by scripters to write rich, fully featured Cocoa apps in AppleScript. Think of AppleScriptObjC as the “Pro” version of AppleScript. For building simple scripts, AppleScript alone works great. For building advanced and complex scripts, perhaps with advanced interfaces, you want to think about moving to AppleScriptObjC.

If you’re a hardcore AppleScript developer or regular MacTech reader, then you’ve probably heard of AppleScriptObjC. You may have worked your way through a tutorial, and maybe even created a very simple app. If you haven’t used AppleScriptObjC yet, then you may have used Xcode in the past to develop AppleScript Studio apps. This month’s column starts with the basics. It provides a very introductory look at AppleScriptObjC. While we won’t build an actual app just yet, we’ll explore some of AppleScriptObjC’s core concepts and syntax.

[Read the full article in MacTech magazine's Fall 2012 Special issue, available in print and in the MacTech iPad Newsstand app]

TUAW Post > Cascade Finder windows with AppleScript

You're busy. You've got tons of things going on at any given time. Your Mac's screen is constantly cluttered with a bazillion Finder windows, and you keep shuffling them around to find the one you need. Sure, Mission Control in Mountain Lion lets you view all of your Finder windows at once in a pretty tiled view. But, it doesn't sort them, and with a ton of little windows, finding the one you want is no piece of cake. How nice would it be if the Finder had a "Cascade Windows" feature? With a little help from AppleScript, your wait is over. In this post, you'll write a simple AppleScript that sorts your opened Finder windows and cascades them, making it quick and easy to find the one you want and clearing your cluttered screen in the process.

[Read more on TUAW...]

TUAW Post > Create Evernote 5 template notebooks with AppleScript

Evernote 5 is a wonderful app for gathering information and keeping it organized and synchronized between your devices. In Evernote, you create notebooks and fill them with notes. These notes can be anything - thoughts, web clippings, files, photos, audio, etc. Whenever you need to recall information you've added to Evernote, just type in a few keywords to instantly locate it.

This post shows how to use AppleScript to create template notebooks that contain default template notes. You can use these templates for creating new projects, jobs, or anything else you might need.

[Read more on TUAW...]

 

Macworld > Ask the Script Doctor: Working with Text

Ask the Script Doctor is a regular column in which we solve real-world Mac problems using AppleScript and Automator. If you have a problem you’d like us to solve, send an email to the Script Doctor for consideration.

Whether we’re writing novels or email, we all use text all the time. AppleScript is a great tool for making text-focused work easier and more efficient. For that reason, I get a lot of questions about how to simplify common text tasks. Here are a few of those questions and my answers.

[Read more at Macworld.com, subscribe to the print edition, or get Macworld on your iPad...]

Do you have a scripting problem or a question for the Script Doctor? Send it to scriptdoctor@macworld.com.

TUAW Post > Build a Photo Calendar with Automator

I'm very happy to announce that I am now writing automation and productivity tips for The Unofficial Apple Weblog (TUAW).

My first post is an Automator how-to.  It shows you how to create a Print Plugin that shows up in the PDF menu when you print a document. This specific plugin lets you print a photo calendar right out of the Calendar app.  It's fun, and it shows off some of the cool stuff you can do with Automator.

[Read more on TUAW...]

Macworld > Ask the Script Doctor: Solving Mail problems

I'm very happy to announce my new scripting column for Macworld, Ask the Script Doctor.  The first one focuses on answering reader questions about AppleScripting Mail.

[Read more at Macworld.com, subscribe to the print edition, or get Macworld on your iPad...]

Do you have a scripting problem or a question for the Script Doctor? Send it to scriptdoctor@macworld.com.

 

Save 35% on Peachpit Mac Automation Made Simple Videos

My 8 chapter Mac Automation Made Simple video series is 35% off through the end of the year if you use coupon code VIDEO12.

[Learn more here or visit the Peachpit website]

MacTech Article > Understanding AppleScript Dictionaries

Over the years, I’ve written dozens of AppleScript articles for MacTech.  Check the archives, and you’ll find my introductory articles on scripting various applications, error protection, looping, branching logic, and much more.  One topic that has somehow eluded my column is AppleScript dictionaries.  Since dictionaries continue to be a source of confusion for many scripters (trust me, I receive questions about them all the time), I’d like to take this opportunity to try to clear the air.

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

MacTech Conference 2012 > Deploying an AppleScript Server

I'll be speaking about AppleScript servers at the upcoming 2012 MacTech Conference.  Hope to see you there.

-Ben Waldie

 

Deploying an AppleScript Server

AppleScript automation capabilities have existed on the Mac for years, and are widely used throughout the Mac enterprise market. Like many businesses, you may be using scripts to streamline your user workflows and improve productivity and efficiency.

In this session, you'll learn how to take scripting to the next level by deploying a dedicated AppleScript server. Find out how your users can hand off files and other data to the server for processing, allowing them to focus their attention on other important tasks. Explore ways of implementing schedule-based scripts, which can run at night or during other downtime. Get tips for migrating existing scripts to function in an unattended environment.

Any Mac professional who wants to increase efficiency, improve quality, and take workflow automation to the limit will not want to miss this session.

Attendees will learn:

  • What an AppleScript server is, and what it can do
  • Tips for implementing your own AppleScript server
  • Tips for implementing folder watching scripts
  • Tips for implementing scheduled scripts
  • Tips for migrating existing scripts for use on an unattended machine

The MacTech Conference runs from October 17-19, 2012 in Los Angeles.  It's a 3-day, immersive, technical conference specifically designed for Apple developers, IT Pros, and Enterprise.

[Learn more or register on the MacTech Conference website...]

MacTech Article > Automation and App Usage in Mountain Lion

Unless you’ve been living under a rock, you’ve probably heard rumors about automation-related changes in Mountain Lion.  Here are the big ones going around… Gatekeeper doesn’t let you run apps or scripts that aren’t in the Mac App Store – third party app and script distribution is dead!  Sandboxing prevents apps from talking to one another – AppleScript and inter-application automation are dead! First, let’s get something straight.  These are rumors.  Second, like lots of rumors, they aren’t true.  So, what’s the real deal, then?

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