Questions tagged [automator]

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

Filter by
Sorted by
Tagged with
29
votes
7answers
38k 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 -> ...
48
votes
6answers
41k 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 ...
50
votes
4answers
47k 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.
19
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: ...
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 ...
2
votes
1answer
17k views

How to create an Automator service to run a script on all files in a folder

I want to create a service using Automator to run a shell script on all files in a folder, say delete all log files. What I have done is Created a new service in automator. Added a "Run Shell Script"...
31
votes
8answers
109k 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 ...
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
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. ...
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 ...
12
votes
2answers
30k 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 ...
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 ...
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.
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 ...
4
votes
2answers
3k views

Run script before restart/shutdown

Is it possible to execute a script/command right before OS X is shutting down or restarting? I'd like to run sudo apachectl stop to stop apache from auto-starting.
3
votes
1answer
3k views

ffmpeg working from command line in Terminal but not in an Automator shell script!

I have just compiled my own copy of ffmpeg on my system and it's located in the following path: /opt/local/bin/ffmpeg When I run the following command in Terminal.app, it runs smooth: ffmpeg -i /...
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 ...
14
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 ...
15
votes
1answer
66k 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 ...
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 ...
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 ...
6
votes
3answers
5k views

Drag to convert Automator Action into Applescript

In Automator, there is a way to quickly convert an Action into its equivalent Applescript in Automator, I think by dragging it in some tricky way. I saw this some time ago but have now forgotten. I'...
6
votes
2answers
2k views

Package command line tools into an automator script or app?

I'd like to know if there's a way I could package compiled command line tools together as part of an automator script or an app. Let's say, for example, I want to use a command line tool called foo ...
10
votes
2answers
32k 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 ...
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 ...
3
votes
1answer
3k views

Pass a variable (folder pathway) to AppleScript in Automator

I am trying to pass a variable that has been set in Automator to an AppleScript within Automator. My Automator workflow is as follows: Ask for Finder Items (only allowing folder type) Set Value of ...
2
votes
3answers
6k views

Automatically launch a program or action when an external drive or disk is connected

I have an external drive. Is it possible to launch a program or perform an action when I connect it or plug it in?
2
votes
2answers
2k views

How to change filepath structure using automator (windows to mac)?

I use a mac at work and people send me windows file paths all day. Does anyone know how to convert the filepath using applescript in an automator so I can right click in an email and then open it? ...
2
votes
1answer
318 views

Can automation service to get the parent folder path?

I already have a service that will create a network file:/// link to a share point over AFP but I would like to have one that does the parent folder of a file. If I right click a file I would like to ...
2
votes
2answers
1k views

How do I get Automator to process images using ImageMagick in a command script?

I'm making an Automator workflow that uses the shell script action to process a selection of images with the imagemagick composite command. Only I'm having issues getting it going. According to the ...
2
votes
1answer
2k views

Open a URL in Chrome Canary as incognito

I am currently using this Automator AppleScript to create a service to open a URL using Chrome Canary in incognito mode on run {input} set theURL to input if application "Google Chrome Canary"...
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 ...
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 ...
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? ...
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 ...
6
votes
1answer
3k views

Run Command Line Script from Finder's contextual menu

I have a shell script that deletes exif data from images. I would like to right-click the folder with the images and execute the command from the context menu. How can I do this? The Shell script is:...
6
votes
1answer
12k views

How to create a service (shown in the context menu on the URL) in Safari?

I want to create a service which will be shown in the context menu when I right-click on any link in the Safari (need get the URL into the service). This is my current contextual services menu on the ...
6
votes
3answers
3k views

Emulating associative arrays in AppleScript

A problem that would be trivial to solve with key=>value pairs. For each item in list_a, find the matching item in list_b and compare a single attribute (calculate scale ratio for two sets of images). ...
3
votes
3answers
683 views

How preserve JPEG date stamps during Automator scaling?

Automator services embedded as a context menu are a great way to quickly scale down JPEGs in the finder. Right click the file, choose your scaling script, done in seconds. The problem is it ...
3
votes
2answers
5k views

How to Automate Cropping Images?

Is there any way to automate cropping images on Mac? (Not the whole file, but part of the file.) I've tried this with Automator but the cropping function just makes the whole image smaller instead ...
1
vote
0answers
287 views

Automator-script with an OCR-software to automatically add OCR to material? [duplicate]

The OCR software could be anything like PDFPen, ABBYY FineReader Express or Adobe Acrobat Pro. Automator does not list any features such as 'Add OCR layer to' or show any OCR programs under Automator. ...
1
vote
5answers
14k views

How can I create a stand alone APP to run a terminal command

I have the requirement to manually run the OSX maintenance scripts in OSX (Lion / Mountain Lion). I would like to create a completely stand alone application that would achieve the following goals: ...
6
votes
2answers
23k views

How do I get Automator actions for Microsoft Powerpoint and Word?

I'm trying to set up Automator with a folder action to convert any Powerpoint or Word documents I drag into it to PDFs. I found this question: How do I script Powerpoint to save a directory of PPTX ...
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 ...
6
votes
3answers
9k views

OS X Automator “Take Screenshot” Issue

I need to automate a screenshot task, so I thought why not use automator? I found the "Take Screenshot" Action and started to play with it. The problem is is that is sets the file name and when the ...
4
votes
1answer
2k views

Automator - Running Node Command in AppleScript Error

I am trying to run an AppleScript that runs a node command like I would run it in terminal and appear to have the right start with the code, but I'm getting hung up on Automator not recognizing the ...
4
votes
3answers
2k views

Can I use Automator or some other method to extract EXIF GPS data from batches of photos on my Mac?

I need a way of extracting EXIF GPS data, using my Mac, from a bunch of photos taken on an iPhone. So for example, if I put 1000 photos into a folder, I want an easy way of extracting all the GPS ...
4
votes
2answers
789 views

How to export Text replacements from the Keyboard System Preference from shell?

There are a few users here that use the same replacement text between several machines. We'd like to be able to sync up the replacement table between the systems. Right now the manual way of doing ...
3
votes
1answer
3k views

Automator -> send file to email (from filename)

Im trying to create an Automator folder action that sends an email with an attached file. In my folder the files will be generated with the email as name: Example: name@company.com.jpg, othername@...
2
votes
1answer
2k views

Running a gpg shell script to decrypt a file via Automator

I regularly need to decrypt a gpg-encrypted file (always the same) to simply view it in TextEdit. I have a very simple shell script for that. It looks like this: #!/bin/sh outfile=`mktemp -t $$` # ...