Questions tagged [automation]

Any thing that helps perform repetitive tasks via an application or script

Filter by
Sorted by
Tagged with
39
votes
3answers
46k views

How is Adobe Update Notifier auto launched on Mac OS X?

It seems the Adobe Update Notifier sometime autolaunches on startup, however I cannot find where it's launched from. I've checked in Lingon as well as my login startup items but it's not there. Any ...
21
votes
12answers
20k views

Start/stop internet sharing from a script?

Is there a way to start/stop internet sharing from the command line or maybe an apple script? The thing is that I move around my laptop between home and work. At one place I get wireless internet (...
20
votes
8answers
7k views

Easy way to copy paste file paths on Macs

I am working on some long procedures that will need to reference a lot of file paths of documents located locally and on various external drives and servers. In all cases we are using Apple Macs with ...
19
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
3answers
6k views

How to update App Store application from command line?

I would like to force an update of App Store applications from the command line. How can I do this?
10
votes
2answers
775 views

How to md5 a list of filepaths contained in a file?

I have a folder containing many folders containing many files. Thousands. I can do find . -type f > ./FILE-LISTING.TXT to create a file containing many thousands of file paths that looks like this:...
9
votes
3answers
2k views

Enable/disable Time Machine depending on network connection type

I've not got a great Wi-Fi setup here at home and it sometimes results in failed Time Machine backups. Is there a way of specifying that Time Machine only backs up under certain circumstances - i.e. ...
8
votes
2answers
9k views

Allow application to control computer (assistive devices) on Mavericks via Terminal?

I'm currently working on automated instalation of Mavericks 10.9. I have NetBoot set up. Everything works OK untill I want to execute Applescript. Since the release of new version I need to manually ...
7
votes
2answers
678 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
3k views

GUI PGP / GnuPG application

I encrypt all of my documents before storing them in the cloud with GnuPG. My wife needs access to the documents, but running gpg -d foo.pdf.gpg at the command line is annoying to her. Does anyone ...
7
votes
2answers
4k views

How do I make a bash script so that I can drag its input on top of the icon?

I need to make a bash script to that I can drag a .rar file on top of it and then the script will receive the pathname of that file as argument 1 ($1). I have made the bash script, but how do I make ...
7
votes
4answers
4k views

Using Apple Script to Manage Sound Output Selection

I am brand new here and I have an additional clarification or need additional help for an issue from this thread - Applescript: "can't get tab group 1 of window" (El Capitan) In my ...
7
votes
1answer
3k views

How do I know a mac needs to restart?

Is there a way to figure out from a script whether a Mac needs to reboot? A file, the presence or contents of which I could monitor perhaps? I'm looking for an equivalent to the file /var/run/reboot-...
7
votes
1answer
1k views

Execute a custom script when OS X 10.8 is in Power nap?

Apple new feature of OS X 10.8 in new Macs "Power Nap" checks email and does make backups. Is it possible to execute a custom script (bash, AppleScript,...) when OS X 10.8 is in Power nap mode? For ...
7
votes
3answers
3k views

Is there an easy way on a Mac to split an audio file at defined intervals?

I have a 45 minute long audio (.m4a) file. I would like to split this audio file into a separate audio file every 2 minutes. So, that: AudioFile1.m4a is created from [00:00] to [02:00] of ...
6
votes
5answers
3k views

How to flash screen from command line

Is there a way to flash the screen from the command line? I am looking for the same effect that Accessibility does for "Flash the screen when an alert sound occurs", but I don't want it for every ...
6
votes
2answers
191 views

Save open applications and tabs state to file and be able to restore

I have 2 computers with the same applications installed and I use both for work. I would like to seamlessly move from one to the other and recreate the state of open applications I had in the previous ...
6
votes
1answer
647 views

Sending Keystrokes to a Window when it Loses Focus

I am running virtual machines for testing on a second Space using Virtualbox, and the problem is that when I'm on the primary space, the virtual machine continues to use a lot of CPU time and kills ...
5
votes
2answers
1k views

Create script to disallow using Mac at night?

I want to stop watching too much pornography at night. It'd be useful if I were to create a script to automatically turn off my Mac at 11:00 PM and keep it turned off until 7:00 AM. If I power the ...
5
votes
6answers
3k views

App that allows to paste text snippets in any applicaton?

I'm looking for an OS X application that will allow me to add text snippets, like common text responses to emails or signature postings or whatever standard text phrases I wish to save and resuse. ...
5
votes
2answers
2k views

macOS unattended install

I know how to create a bootable USB drive from which I can install macOS. However, the usual macOS installer is interactive, I can't just plug in the installation media and let it do its work. The ...
5
votes
2answers
120 views

How To Have A Custom Action Located Within An Applescript.app, Execute Only On Every Fifth Launch Of The Application

Okay here is my situation. I have created a script whose function is to ultimately back up my script files which I save to my iCloud Drive/Script Editor folder, to two different locations. Each ...
5
votes
1answer
227 views

AppleScript to return condition depending on audio file length

I'd like to use Hazel (a rule-based file system automator) for macOS to automatically move mixtape audio files from one folder to another, if their duration is longer than 30 minutes. Hazel doesn't ...
5
votes
4answers
14k views

How can I make iPhone silent for a specific amount of time?

On Android phones, there are apps (not native functionality) to make the phone silent for the next N minutes starting right now. This is different than setting specific times of day like Do Not ...
5
votes
2answers
1k views

Is there a keyboard shortcut that I could use to set a task priority in Reminders.app on a Mac?

I know that if I want to create a new task in Reminders and I write something like: Buy milk tomorrow at 3:00pm Reminder.app understands by itself that the date and the time of execution of the ...
5
votes
1answer
95 views

How can I create a Finder alias in a bash script that reads arguments from the command-line?

I'd like to write a bash script that takes 2 inputs: path to actual file path of a Finder alias file (not a unix link) to be created that refers to 1. The bash script should pass these inputs to an ...
5
votes
1answer
2k views

Can an alias be added to the dock via the command line?

I found this article but it handles the GUI solution. I would like to automate the setup of a new machine, and do that I've created Dropbox shares of a number of my common configurations. (I could ...
5
votes
1answer
7k views

Blank page removal tool for PDF?

A command line tool is preferred, but not required. Preview and PDF Pen and dozens of other apps can delete arbitrary pages from a PDF file and save the result. The key problem I can’t solve is how ...
5
votes
4answers
16k views

Is it possible to automatically back up my mac to Microsoft OneDrive?

I'm not sure there is a way to do what I want to do. Now that I have Office 360 + 1TB of free space, I'd like to set my mac to do monthly backups to OneDrive. I'm looking for the following features. ...
5
votes
1answer
3k views

How can I make Text to Speech use different voices for different languages? [duplicate]

I am learning French and sometimes need to use Text to Speech to fix my pronunciation. As English is my second language, I also sometimes use Text to Speech with it. The problem is that the English ...
4
votes
2answers
4k views

Upgrade OS X operating system from the command line

You can upgrade software with sudo softwareupdate --install --all. Is it possible to upgrade the OS itself from the command line?
4
votes
2answers
1k views

How to have locatedb created / updated automatically?

I ran locate blob.txt and I got: $ locate .bashrc WARNING: The locate database (/var/db/locate.database) does not exist. To create the database, run the following command: sudo launchctl load -w /...
4
votes
1answer
2k views

Can AppleScript be used to brute force a FileVault drive where the password is lost?

I make a terrible mistake. I totally lost my paper with the secret password for my encrypted external GUID hard drive. This external drive contains many pictures but also some works documents very ...
4
votes
3answers
2k views

Script to change downloaded mac wallpaper automatically?

I want to change my mac wallpaper daily with microsoft bing images. I found this script that download the daily picture automatically, but I sill have to set the wallpaper automatically. Is it ...
4
votes
1answer
357 views

How to change multiple file type associations on the Mac at once?

I want to change my default media player in macOS. (In my case, I want to change it to my own AppleScript-created instance of VLC that I exported as ‘VLC-New-Window.app’, which is scripted to always ...
4
votes
4answers
3k views

Auto Generating and Printing PDF Files From Markdown?

I'm looking for a way to automatically have my computer generate and print PDF files from a folder full of markdown files. So, every morning at 5AM I'd want my computer look at my /markdown-files ...
4
votes
1answer
66 views

Restart an app if it is force quit

I have the Freedom app installed to control my procrastination. However, I can force quit Freedom from the Activity Monitor, and the remainder of the week just goes by without me getting anything ...
4
votes
5answers
14k views

How to unrate multiple album ratings at the same time?

I'm using iTunes 12.2.1.16 and today I realized that there is something called 'album rating'. This messes up my ordering according to the track rating. Suddenly there are songs appearing with hollow ...
4
votes
1answer
420 views

How do I get the Shortcuts app in iOS 12?

I recently upgraded my iPhone 5s and iPad mini 4 to iOS 12. I came across Shortcuts app for iOS 12 in this review article. I think Shortcuts app is pretty interesting and would like to give it a try. ...
4
votes
1answer
2k views

How do I run my automator service without opening automator?

I created an automator service that duplicates a specified folder to the desktop, but I'm unsure how to run this service whenever I need it without having to open automator. I was thinking it would ...
4
votes
2answers
1k views

Is it possible to change a Finder List View column width in AppleScript?

I want to create an AppleScript that opens five predefined folders in five different tabs in one new Finder window with predefined bounds and then shifts the active tab of this window to tab one. I ...
4
votes
1answer
53 views

Is it possible to have the “Find” field engaged on open of .rtf file?

When I click on the Dock shortcut of a specific .rtf file to open the file in TextEdit, my cursor is by default set in front of the first character of the first line of the document. However, I would ...
4
votes
2answers
2k views

How to disable Spotlight indexing when on battery?

Every time I add a few MBss of files to my SD disk, Spotlight starts eating battery (per Activity Monitor Energy Impact) for one to several days indexing them. How can I make indexing to turn off ...
4
votes
1answer
2k views

How does XCode install a .pkg file in a different location?

I'm looking to install the IOS Simulators via the command-line. From the plist it downloads, I can see this: <dict> <key>dependencies</key> <array/> <key>...
4
votes
2answers
2k views

Batch resize .svg files

I have a folder (original_svg_files) with more than ten thousand .svg files in different sizes and I need to resize each one of them. The name should be the same with the original .svg file and the ...
4
votes
1answer
53 views

Send clicks to multiple windows / spaces

Is there a way to duplicate or send clicks to multiple (specific) windows or spaces? For instance, an AutoHotkey script would look like the following to make three different clicks in three different ...
4
votes
3answers
632 views

How do I download all PNGs on a page with iOS Workflow?

I want to save all of the PNGs from this goofy website so I can turn them into a PDF. I thought I'd use Workflow for iOS, which I've never used before. I get the contents of this page and then get ...
4
votes
1answer
780 views

How can I start a Hangouts phone call with Applescript/Terminal?

I want to initiate a Google Hangouts phone call with Applescript. Hangouts has an AS dictionary, but with only the default suites. I want to emulate opening the Hangouts popup, typing in a phone ...
4
votes
1answer
244 views

How to change icon of an app through Terminal

I want to customize my app icons, but there's a lot of them, and I don't want to be tedious and go through the whole Get Info process over and over again. Is there any way to write a program, ...
3
votes
2answers
15k views

How do I automatically enable Personal Hotspot when my Bluetooth device is in range? (Similar to Tasker for Android)

I use a spare smartphone with no SIM card as a navigation tool in my car. This works fine with offline maps, but I can't use things like Waze. I also have an iPhone which I carry around with me, which ...