Questions tagged [automation]

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

Filter by
Sorted by
Tagged with
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 (...
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 ...
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 ...
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 ...
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?
0
votes
1answer
353 views

Download entire iTunes purchase history as CSV file (MacOS High Sierra)

Has anyone found a way to download iTunes Purchase history into some type of csv or text format? The closest thing I could find was this StackExchange answer of a great applescript that could ...
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 ...
2
votes
1answer
285 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 ...
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. ...
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 ...
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
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 ...
3
votes
3answers
6k views

Keyboard shortcut flip screen

How can I create a keyboard shortcut that flips my screen upside down? I know how to enable this setting in System Preferences but I want to be able to bind it to a shortcut. Is it possible to make ...
2
votes
4answers
2k views

AppleScript alternatives

I've recently discovered AppleScript. AppleScript affords a simple, natural way to programmatically simulate keyboard-and-mouse interaction with Mac applications. AppleScript is great, however it ...
2
votes
2answers
591 views

How do I run an app using launchd at regular intervals?

I have an app which is written in AppleScripting language which checks if the S.M.A.R.T. status is 'Verified' if it is not then it will automatically show me a dialog alert. But I need it to run every ...
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 ...
2
votes
1answer
517 views

Automator: Find Reminders by list?

I would like to retrieve all the Reminders in a specific reminders list with Automator. Searching for reminder, the available actions are “Delete Reminders”, “New Reminders Items”, “Filter Calendar ...
1
vote
1answer
677 views

Get latest Time Machine backup when backup disk is unplugged

I know i can get the time stamp of the latest Time Machine backup with the command tmutil latestbackup | grep -E -o "[0-9\-]+$" but this only works when my backup disk is plugged in. If not, i get the ...
1
vote
2answers
261 views

How to activate DND automatically?

I use a MacBook Pro at work which is most of the time connected to a docking station via a lightning cable at my desk. There I usually turn off do not disturb (DND) mode and activate screensaver/...
3
votes
2answers
640 views

Have Mojave's Dark Mode switch PyCharm theme to Darcula

Is there a way to trigger 3rd party apps to change to dark themes when Dark Mode is turned on in macOS Mojave? Specifically, can I have PyCharm switch theme automatically to Darcula when I turn on ...
3
votes
2answers
1k views

Any easy way to search for & replace characters in JPG file names in a folder?

Have a MacBook Pro 15 (Oct2009 vintage), and am running 10.8 (Mountain Lion). Is there an easy way to search for and replace chars in JPG file names in a folder file list? I'm working with over ...
3
votes
1answer
144 views

App for changing between a work and private mode

I use my Mac for private and work. Between this two scopes I share a lot of configuration. Because of that I want to use only one account. Here is my question: Is a app existing with which I can ...
1
vote
2answers
599 views

How to change scrollbar position in AppleScript?

I have an AppleScript .scpt file that is assigned to a keyboard shortcut via the third-party application, FastScripts. The script opens a specific, fixed, pre-determined URL in a new Google Chrome ...
1
vote
2answers
3k views

Automator: Safari: Display Webpages, but no entry area?

I'd like to have Safari automatically open up a webpage when an action is run, but with this action, it appears there is no area where I can enter the particular webpage that I want Safari to display (...
1
vote
1answer
61 views

How to prevent apps from from not letting you restart Mac OS

When I press restart button I mean it. Though Netbeans, iTerm, XAMPP think that they know better than me, and I get an error that the process has been stopped because of one of these apps. Is there ...
1
vote
1answer
504 views

Automate removing the last page of a bunch of PDFs

I have a folder containing hundreds of PDFs, and I would like to remove the last page of each one in a quick way. How can I let my Mac automate this task? Do I need additional software to do this?
0
votes
1answer
56 views

PDF page manipulation, from 2 page per sheet to one page per sheet

I have a PDF with following pattern: I need to transform each page of this PDF into two distinct pages, as follows: and So, if I had a PDF with 12 pages (2 slides for each page) I will expect a ...
-3
votes
1answer
141 views

Where is the reference to find out how to customize mac behaviour [closed]

Background This question asks how to programmatically change the cursor size. I actually have a long list of items I would like to customize every time I create a new user on mac, and I'm not sure ...