Questions tagged [automator]

An application developed by Apple for macOS that implements the creation of workflows.

Filter by
Sorted by
Tagged with
49
votes
4answers
46k views

Can I change the application icon of an Automator script?

I have created a couple of automator scripts. I was curios if there is a way to change the application icon, on those scripts, to something other than the robot.
48
votes
6answers
40k views

Possible to run scripts on sleep and wake?

MacBook Pro 2010 running OS X Lion. Is it possible to run scripts on sleep and wake events? My specific application is that I've got Dropbox-synced Truecrypt volumes that I regularly use on both my ...
31
votes
8answers
108k views

how to quickly reboot from OSX to Windows and back

From Windows back to OSX is fairly easy. What I would like is a few less steps to get from OSX to Windows. Currently I launch system preferences -> startup disk - then select the bootcamp partition ...
28
votes
4answers
10k views

Can Mac App Store installs & upgrades be automated?

How can I script installing or upgrading apps from the Mac App Store? I'd prefer command line tools, but AppleScript or some other API would suffice. Relevant puzzle pieces: installer: note ...
27
votes
7answers
37k views

Create global shortcut to run command line applications

What steps do I need to run a command line program via a global shortcut? I setup Automator to create a new Run Shell Script and tried to assign a shortcut in System Preferences -> Keyboard -> ...
23
votes
9answers
42k views

Create a new (.txt) File in Finder - Keyboard Shortcut

I wanted to know if there is way to set keyboard shortcuts to make new files in Finder. For example, by default, you can create a new folder using CMD+Shift+N. Is there a keyboard shortcut to create a ...
20
votes
3answers
12k views

Run program if connected to specific wifi?

Is it possible to have a program starting automatically when I connect to a specific router, and having it stop when I disconnect from this router? Basically I want a program to run while I'm at work ...
18
votes
4answers
17k views

My Automator Workflow fails because it fails to find the git command within the 'Run Shell Script' command? Need help

I have an Automator workflow and one of the actions is to clone a repository. Here's the code for the 'Run Shell Script' action. The command is run within the Bash shell /bin/bash if that matters: ...
18
votes
1answer
16k views

How do I delete a Service?

If I created a service using Automator, how can I delete it if I no longer want it?
18
votes
9answers
30k views

Location of services created in Automator

Long-time ago i created a service in Automator, which still works. But i want to change the code and it isn't located in either /Library/Services/ nor ~/Library/Services/ as they are both empty Have ...
18
votes
7answers
7k views

How can I sync my iTunes music library between two Macs for free?

I have a desktop system that I use as a server. I also have a MacBook Pro that is my main computer. I've done a lot of organization and cleanup of my music library and have it all on my MacBook Pro. ...
16
votes
4answers
8k views

Creating an automated HFS+ compressed folder

I would like to set up an automated way for archiving files in OS X Lion. By archiving I mean using HFS+ compression feature on a specific folder, and make every file that I move into this folder ...
15
votes
1answer
64k views

How to create a simple keyboard macro with Automator?

How can I use the built in tool, Automator (rather than a 3rd party app), to create a simple keyboard macro? For example, I want it to press Cmd-Shift Left, then Cmd-U, then Right, etc. I tried ...
15
votes
4answers
5k views

Updating modifier key mappings through defaults command tool

I am trying to automate the inital setup of my macbook, that includes installing software and changing OS X configuration to my needs. I have tried to update the modifier keys with defaults, the ...
14
votes
1answer
26k views

Select a menu item in AppleScript without using “System Events” in 10.9 Mavericks

I was just answering another question and was reminded of a new "feature" in Mavericks. I used to have a number of small Automator Services that took no input but did something useful when tied to a ...
14
votes
2answers
16k views

How to put a custom launcher in the Dock (Mavericks)

I am new to Mac OS (I am currently using Mavericks) and I have performed google searches as well as search on StackExchange regarding my question but the discussions I came across don't quite answer ...
14
votes
1answer
2k views

How to access a clicked URL in a URL handler application created in Automator

I'm currently trying to modify the default URL handling behavior in OS X. I would like, when clicking on any link outside of a web browser, to copy this URL to the pasteboard instead of opening it in ...
13
votes
7answers
4k views

What are some useful ways to use Automator?

I've been using OS X for 3 generations of the OS already (Tiger --> Leopard --> SL) but haven't really ventured in using Automator much. What are the best ways to use Automator? (Best uses, time ...
13
votes
3answers
16k views

How do I collect all of my notes and highlights from iBooks?

I've got a lot of highlighting and notes in iBooks that I've read, and would like to be able to collect them in one easy to use and manipulate format (e.g for writing papers and citing quotes). For ...
12
votes
6answers
38k views

How do I run a cron job on a Mac?

How can I make my Mac (running the most recent OS) do a task automatically once a day? For example, I'd like to have it automatically download a copy of this open source algebraic geometry textbook ...
12
votes
2answers
29k views

How can I get Automator to mount a network volume?

I am writing an Automator "script" that rsyncs media on my 10.6.3 MacBook Pro to my Ubuntu 10.10 HTPC. I can make Automator run my shell script for rsync commands, but I can't make Automator mount the ...
12
votes
1answer
19k views

Passing arguments to 'Run Shell Script' in Automator

I want to make an Automator workflow to run a shell command. For example, I want to receive text input from the user and treat that input as a shell command instead of text. I have tried passing ...
12
votes
2answers
10k views

Automator app with a menubar icon

I've created an application with Automator. I want to have a new icon in the menubar like this: Which starts the app when I click on it. Is it possible? (without using Xcode) PS: I don't want a ...
10
votes
6answers
14k views

How to create an OSX Application to wrap a call to a shell script?

My goal is to include in a zip file what amounts to a shortcut, instead of telling my customer(s) to open up Terminal and run a shell script. My deployable essentially looks like this: $ unzip ...
10
votes
2answers
31k views

AppleScript/Automate Mail Tasks

I've been trying to help a coworker automate a weekly email compilation he sends out but haven't yet been able to figure out how address a few specific areas...first I'll explain the situation, then ...
10
votes
2answers
6k views

Automate taking a screenshot of specified area

I am trying to use automator to take a screen shot of a specified area. Though I can only find the option of taking a screenshot of a windows or the entire screen. Is there a option to to this with ...
9
votes
2answers
16k views

Batch compress multiple folders into individual zip files

I have dozens of folders that I need to compress into individual zip files. If I select all of these folders in the Finder and do "Compress [X] Items," I get one zip file containing all of the ...
9
votes
2answers
25k views

Passing a password to an Automator application

I have written an Automator application with the following shell script to open an FTP connection on my system: sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist osascript -e 'tell ...
8
votes
3answers
8k views

Renaming files/names in bulk, any smarter solution?

I have few thousand files to rename. The thing is I have the old file names and new file names as columns in a spreadsheet. Without renaming them one by one. Is there a better way to do this? ...
8
votes
6answers
14k views

How to make an existing AppleScript file to work as a service?

I made an AppleScript, saved it as a file in a specific folder on my hard drive. Now I want to assign a shortcut to it and looks like I have to make a Service via Automator, but the Run AppleScript ...
8
votes
2answers
368 views

How to replace a folder that's name is a date i.e. YYYYMMDD with folder hierarchy of year, month, date?

I have a list of folders which have dates for names. The dates are in the format YYYYMMDD (e.g. 20150129). Within these folders are text documents which are related to that specific date. I would ...
8
votes
2answers
2k views

Script to create iPhone Contacts

Does anyone know of a way to create a Contact list with a defined amount of contacts? They can be dummy entries, but I just need to create an address book with > 2000 entries. An Automator script is ...
8
votes
3answers
15k views

How to set a folder view as default for all folders in Finder?

I'd like to get the same folder view for every folder, that means, to have my stuff being sorted always by type and then by name. is that possible with automator? Till yet, I set my view via cmd+j (...
8
votes
3answers
2k views

Lock screen with LaunchBar

I extensively use Launchbar and have almost all my daily productivity items working through it. Since I use my personal MacBook at work, I do not have use a screen saver password, however, when at ...
8
votes
4answers
11k views

Checking for folder/file changes using Automator?

Is there there a way to check a folder/file for changes (includes adding files, deleting files, changes in files,...). The 'Folder action' in Automator is only checking if any files are newly added.
8
votes
1answer
8k views

How can I debug an Automator workflow?

I have a very simple automator action consisting on a shell script that should be executed in a selected folder in the finder. When I execute the action I get the message: "The action "Run Shell ...
8
votes
1answer
673 views

Is there a way to combine two fullscreen windows into a split view window with Automator/AppleScript?

I'm currently making a workflow in which I need to combine two windows into a split view window (the feature from OS X El Capitan). I'd there any way to do that with AppleScript?
7
votes
3answers
1k views

How can I keep settings consistent between Macs?

I use multiple Macs (OS X Lion). There are a lot of settings, apps, and files I'd like to keep synced up between them. Files are the easiest of the lot -- Dropbox + symlinks, Mercurial repositories, ...
7
votes
2answers
681 views

Removing all characters except digits from clipboard

I'm trying to refine a script I use within an Automator program and I would appreciate your help on this. The program is designed to mark a telephone number into clipboard make a tel:link and send it ...
7
votes
2answers
15k views

Show Results of Automator-Terminal command

TL;DR If I create a .app via Automator, how can I show results of a shell script in a dialog or terminal window? I am using Automator to run a shell script adb install /Directory/$1.apk and if I ...
7
votes
1answer
10k views

Shortcut to Clean up folder by Name?

I would like to create a keyboard shortcut to Clean Up Folder by Name. Which can be done by right-click > Clean up by > Name What is the Automator code needed to achieve this ?
7
votes
1answer
9k views

What are the storage locations of the various types of Automator workflows

The purpose of this question is to create a reference for the various default storage locations where Automator stores the files it creates and saves. I've found a few from searching, but have yet ...
7
votes
3answers
9k views

Converting WAV to MP3 using LAME and Automator

I'd like to convert many WAV files to MP3 files using LAME and Automator. I need a script that I could right click a folder and convert all the WAV files inside the folder to MP3 files. I've been able ...
7
votes
1answer
7k views

Is there an Automator action to create Keynote presentation from text file?

I need to import a text file (consisting of subtitles) into a Keynote presentation. I need to turn each subtitle into a single slide, interspersed with blank (black) slides. I'd like to create an ...
7
votes
3answers
648 views

Is there a Terminal command to open a Mac menu bar item?

Suppose I want to open a specific app which has an icon on the menu bar tray, is it possible to do it using a shell command? In my case, there is an app called "Quick View Calendar" (available in ...
7
votes
3answers
3k views

Right-click for Creating a New Document - How?

I am comfortable with creating new documents from command line on OS X (in my case El Capitan), but I wanted to explore the possibility to have Windows-like option to create a new document on right ...
7
votes
4answers
3k views

Can only run AppleScript from Automator

I have the following AppleScript which toggles the scroll direction on the trackpad: tell application "System Preferences" activate set current pane to pane "com.apple.preference.trackpad" ...
6
votes
1answer
7k views

When writing AppleScript in Automator, what is the significance of “input” and “parameters”?

When one adds a "Run AppleScript" action to a file in Automator.app (e.g., a workflow, application, or service), the following default code is presented: on run {input, parameters} (* Your ...
6
votes
3answers
17k views

How can I make an Automator service run a shell script and display the output?

I'm using Automator to run a shell script (ffmpeg transcode to h264) as a 'Service', so that I can just right click the high res .mov file and select the service. It works fine, but as it's ffmpeg it ...
6
votes
2answers
10k views

Automating ffmpeg using Automator Service

I often use ffmpeg off the command line to convert video files into mp4 on my Mac (running Mavericks). Do note, however, that I am NOT re-encoding my videos; am just changing the container from an avi ...