Questions tagged [automator]

An application, first appearing in Apple's OS X, providing a point and click interface for creating macros to automate tasks

Automator is an application for Apple's macOS, providing a graphical user interface for creating macros to automate tasks.

Resources:

1163 questions
57
votes
14 answers

macOS Mojave, Automator “Not authorized to send Apple events to System Events.”

After I updated to Mojave, I can no longer use the automator service I've previously been using with the alert below. In Security & Privacy, I already checked AppleScript Editor. Do you see any problem with my code or is this the problem of the…
Travelholics
  • 868
  • 1
  • 6
  • 9
33
votes
2 answers

Automator Variable in shell script

Is it possible to pass an Automator variable into a shell script?
switz
  • 24,384
  • 25
  • 76
  • 101
30
votes
1 answer

Automator not working with Google Chrome

I am trying to use automomator to control my UI and Google Chrome, but after recording my actions (watch me do) and then replaying them, I get the error "application chrome is not running when it is expected to." Chrome is definitely running, as I…
619deathstar
  • 323
  • 1
  • 4
  • 10
29
votes
4 answers

Remove last argument from argument list of shell script (bash)

This question concerns a bash script that is run in automator osx. I am using automator actions to get and filter a bunch of file references from the finder. Then I append to that list the name of the parent folder, also via an automator action.…
Nordanfors
  • 371
  • 1
  • 4
  • 9
23
votes
5 answers

Automatically open the Safari Debugger when the iPhone Simulator is launched

The iOS web debugger in Safari is the bee's knees, but it closes every time the Simulator is restarted. Not only is it annoying to re-open it from the menu after every build, but it makes it tricky to debug any behavior that happens during…
Luke Dennis
  • 14,212
  • 17
  • 56
  • 69
18
votes
6 answers

How to programmatically generate a PDF from any document on OSX?

I'm working on a project for OSX where the user can pick a collection of documents (from any application) which I need to generate PDF's from. The standard Macintosh Print dialog has a PDF button which has a number of PDF-related commands including…
Denis Hennessy
  • 7,243
  • 4
  • 25
  • 31
17
votes
4 answers

Using apple's Automator to pass filenames to a shell script

I have an automator script that I'd like to run on a folder. I want the script to take each file in the folder and run my shell command on it. Automator is set to pass input to stdin, but I don't think I'm using stdin correctly below, can you help…
John
  • 5,139
  • 19
  • 57
  • 62
14
votes
3 answers

Run Shellscript from Mac Automator

In OS X 10.9.5 I wrote a Shell Script (via vim). Save it and navigate to this script and sh code.shit runs perfect (in iTerm & Total Terminal). The same command in the same directory produces via Mac Automator always an ERROR. Why? in Automator and…
Teletubbi-OS X
  • 391
  • 1
  • 3
  • 13
14
votes
2 answers

Programmatically modifying parental controls on Mac OS X

Mac OS has a very basic set of parental control options that allow you to limit user's access to websites and apps, as well a set daily time limits. I want to be able to script this to do something like the following: Allow access from 8am to 9:30…
Abdullah Jibaly
  • 53,220
  • 42
  • 124
  • 197
14
votes
3 answers

How do I use the current folder name without a path as a variable in automator in Mac?

I am using Mac OSX 10.8.3. I have a workflow in Automator set up that is as follows: Ask for Finder Items Get Folder Contents Make Sequential Move Finder Items The purpose of the workflow is to automate renaming a bunch of photos that I have saved…
Tony New
  • 141
  • 1
  • 1
  • 3
13
votes
3 answers

Adding a script to MacOS finder contextual menu

I want to add an option to the finder context menu that calls hg add %1 with %1 being the full path of the selected file in finder. Of course there are more useful cases I can think of, to add to the context menu. Is there a simple way to do that…
Petruza
  • 11,744
  • 25
  • 84
  • 136
12
votes
2 answers

AppleScript / Automator : use selected text as variable

I can't manage to find how to use the selected text as a variable for AppleScript and Automator. Any ideas?
Kevin
  • 1,076
  • 4
  • 22
  • 49
12
votes
1 answer

How to create an Apple Script that runs a Terminal command?

I want to create an apple script that opens terminal and summons this command : sudo killall coreaudiod How is this possible?
NLed
  • 1,845
  • 14
  • 39
  • 68
12
votes
5 answers

Apple's Automator: compression settings for jpg?

When I run Apple's Automator to simply cut a bunch of images in their size Automator will also reduce the quality of the files (jpg) and they get blurry. How can I prevent this? Are there settings that I can take control of? Edit: Or are there any…
Melros
  • 1,238
  • 2
  • 18
  • 34
11
votes
3 answers

Delete downloads older than 30 days?

I am trying to create a task in automator that moves files in ~/Downloads to the trash if they are older than 30 days. I want this to run every day. It's not working though, Finder just hangs and stops responding and I have to Force Quit it from…
theonlygusti
  • 11,032
  • 11
  • 64
  • 119
1
2 3
77 78