Mac Basics- Automator. Apple may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Apple can therefore provide no guarantee as to the efficacy of any proposed solutions on the community forums.
Use Automator to Convert and Resize Image Files Posted on September 8th, 2017 by One of the little known tools available in macOS that can save you lots of time is Automator. This app allows you to create workflows, which you can use to — as its name suggests — automate certain tasks on your Mac. If you’re familiar with AppleScript, you might want to think of Automator as being like AppleScript without the need to write any code.
You don’t have to know any commands; Automator shows you which commands — or actions — are available, and you can drag and drop them to create routines. You can then run these routines in the Automator app, as services via a contextual menu, or in applets that you can save and run by double-clicking or by dragging and dropping files on them. In this article, I’m going to introduce you to Automator, and I’m going to show you how to quickly and easily create two applets: one converts image files into a pre-determined format, and the other resizes images to a pre-determined size. Here’s how to start working with Automator.
Getting to Know Automator The Automator app is located in your /Applications/Utilities folder. Launch it, and you see an open dialog.
To create a new Automator workflow, click New Document. You’ll see this: Automator can create a number of different types of documents, including:. Workflows can be run from within the Automator app.
Applications can be run by double-clicking, or by dragging and dropping files on their icons. Services are activated from the Services menu in apps that support this technology. Print Plugins are available from the Print dialog in any app. Folder Actions can run when automatically when you add items to folders you attach them to. Calendar Alarms run when an event triggers them in the Calendar app.
Image Capture Plugins run inside the Image Capture app, that you can use to scan documents or import images from a camera, SD card, or iPhone. Dictation Commands run when you use macOS’s Dictation feature, and say a specific phrase. The most useful of these are, for most people, services and applications. The term workflow best describes what you create within the Automator app, even if you save it as something else.
I’ll use that term in the rest of this article to discuss what I’m creating, even though I’ll explain how to create an application. Creating an Image Conversion Application If you take photos, you may want to share them to your website or to an online gallery. If your images are not in JPEG format, you may need to export them from an image editing app, or you may need to convert them. If you do this often, you may find it easier to use your original images and convert them en masse. This Automator workflow will allow you to do that.
Simply drag and drop images on its icon, and it converts them in a flash. Since this is most useful as an application — on which you can drag and drop files — let’s start by creating a new application. In the dialog you see in the first screenshot above, click Application, then click Choose. Automator shows you a library of apps and actions on the left, and an empty area on the right. This right-hand section is where you will build your workflow. Whenever you create an application, it can work by default with drag and drop. You drag one or more items on the applet’s icon, rather than having to select items in an Open dialog.
Automator tells you that this workflow receives files and folders as input. Next, we want to find an action that will convert image files. Click Photos in the Library column, then find the Change Type of Images action. (You’ll see in my screenshot that there are two versions of this action; one with the iPhotos icon, another with the Acorn icon. Acorn is an image editor that I have on my Mac. Some apps provide Automator actions that leverage the features of their apps.) When you select an action in the Library columns, a section at the bottom left explains what these actions do.
For the Change Type of Images action, it tells you what type of images the action can receive. Drag the Change Type of Images to the right. When you add this action, Automator will tell you that it will replace the images you use as input, and ask if you want to add a Copy Finder Items action to keep the originals. I’m going to go ahead without this, but you may want to do this so you have both your original images and their conversions. You have five choices for the output this action generates. Click the To Type menu and choose what you want; I chose JPEG for this example.
You should now save your workflow. Press Command-S, give it a name, and make sure you save it as an Application. Now, find a file in one of the formats this workflow can accept; it can be BMP, GIF, JPEG 2000, PDF, PNG, or TIFF. (It can accept JPEGs as well, but it will just convert them to the same format.) Drag the image on the applet’s icon, and you’ll almost immediately see that your image has converted.
Creating an Image Resizing Service You saw above how easy it is to create an application; now, I’m going to create a service. This type of workflow is accessible from the Finder’s contextual menu when you right-click on one or more items. Create a new document in Automator, but choose Service. At the top of the right hand pane, choose Service receives selected image files in Finder. Next, in the Photos section of the Library column, choose Scale images. You can tell Automator how to scale the images: either by a number of pixels for the longer side, or by a percentage.
If, for example, you want to scale images to 1000px, enter that in the text field. Save the workflow; press Command-S and choose a name for it. You won’t choose a location, because Automator saves it in the appropriate folder for services. Go to the Finder and select an image file. Right click, and you’ll see, at the bottom of the menu, the service that you’ve just saved. Select that menu item, and the service runs, scaling your image.
You’ve seen that Automator can be very easy to use, and can save you a lot of time. In future articles, I’ll look at some of the other neat things you can do with this app to make working with files and folders quicker and easier. New to macOS? Learn tips and tricks at Intego's New Mac User Center!
Want to get the most out of your new MacBook, iMac or other Apple computer? Whether this is your first laptop or you’ve just switched from Windows, there are a few things you should know about your new Mac, like basic keyboard shortcuts or how to use the various features macOS has to offer. Learn more about what your Mac computer can do for you at the Intego New Mac User Center: About Kirk McElhearn Kirk McElhearn writes about Macs, iPods, iTunes, books, music and more on his blog. He is co-host of the and PhotoActive, and a regular contributor to The Mac Security Blog, TidBITS, and several other websites and publications. Kirk has written more than twenty books, including Take Control books about iTunes, LaunchBar, and Scrivener.
Follow him on Twitter at. This entry was posted in and tagged. Bookmark the.
By One popular feature in MacBook’s Mountain Lion — Automator — can save you a tremendous amount of time behind the keyboard. You use Automator to create applications with a relative of AppleScript called AppleEvents. (In case you’re not familiar with AppleScript, it’s the simple programming language that you can use to automate tasks and applications within Mountain Lion.) Of course, writing an application might sound daunting — akin to single-handedly building your own nuclear submarine over a long weekend — but Automator is actually easy to use. Heck, you might find it downright fun! You can also create workflows, which are sequential (and repeatable) operations that are performed on the same files or data, and then your Automator application can automatically launch whatever applications are necessary to get the job done.
Here’s a great example: You work with a service bureau that sends you a CD every week with new product shots for your company’s marketing department. Unfortunately, these images are flat-out huge — taken with a 12-megapixel camera — and they’re always in the wrong orientation. Before you move them to the Marketing folder, you have to laboriously resize each image and rotate it, and then save the smaller version. With help from Automator, though, you can build a custom application that automatically reads each image in the folder, resizes it, rotates it, and even generates a thumbnail image or prints the image, and then moves the massaged images to the proper folder.
You’d normally have to manually launch Preview to perform the image operations and then use a Finder window to move the new files to the right location. But now, with Automator, a single double-click of your custom application icon does the trick. You find Automator in the Utilities folder in Launchpad (or, from a Finder window, in your Applications folder). Currently, Automator can handle specific tasks in more than 80 applications (including the Finder), but both Apple and third-party developers can add new Automator task support to both new and existing applications.
To create a simple application with Automator, launch the application and follow these steps:. Select Application and click Choose. Click the desired application in the Library list. Automator displays the actions available for that application. Drag the desired action from the Library window to the workflow window.
Modify any specific settings provided for the action you chose. Repeat Steps 2–4 to complete the workflow. Click Run (in the upper right) to test your script.
Use sample files while you’re fine-tuning your application lest you accidentally do something deleterious to an original (and irreplaceable) file!. When the application is working as you like, press cmd+Shift+S to save it. In the Save dialog that appears, type a name for your new application. Click the Where pop-up menu and specify a location where the file should be saved. Click the File Format pop-up menu and choose Application.
Click Save. Your new Automator application icon includes the Automator robot standing on a document. Why, most normal human beings would call you a programmer, so make sure that you’re inscrutable from now on!
If you’re going to use your new Automator application often, don’t forget that you can make it more convenient to use by dragging the application icon to your Dock or to your desktop. To find all the actions of a certain type in the Library list, click in the Search box at the top of the Library window and type a keyword, such as save or burn. You don’t even need to press Return! If your Automator application should run every time you log in — for example, the application tracks your time on a project — follow these steps to set up the application as a login item:. Open System Preferences. Display the Users & Groups pane.
Click the Login Items button. Click the plus button at the bottom of the list. Navigate to the location of your new Automator application. Now your Automator application is really automatic. Watch your significant other gape in amazement as your MacBook begins to work without you touching the keyboard! (If you’ve added the application icon to your Dock, you can also simply right-click the icon and choose Options→Open at Login from the right-click menu that appears. Either way, your MacBook gets the message.).