Questions tagged [automation]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

IOS Shortcuts Personal Automation Contacts Birthdays not working

I've created a contact to test the "Find Contacts with Birthdays" feature in the IOS Shortcuts App. As you can see, her birthday is Jan 30 1990. The contact also shows up on my Calendar so I know my ...
0
votes
0answers
26 views

Is it possible to AirPlay my Mac's desktop to an Apple TV via the command line?

I'm ultimately trying to automate a process which AirPlay's a Safari browser to an Apple TV. I'm familiar with the say -a "AirPlay" command which only AirPlay's audio so I was hopeful that there could ...
0
votes
1answer
56 views

How to restore recent files back to their folders?

I have recently tried to iCloud backup and I restored local files. But in doing this, accidently I pressed cancelled and local files were not backed up fully. Luckily, I found my local files in ...
1
vote
1answer
38 views

Is there an attention-free way to reboot from MacOS into Bootcamp/Windows?

The standard way to reboot from MacOS into a Bootcamp Windows partition is to restart, hold Option, then manually select the Windows partition. Is there a single Terminal command or menubar ...
0
votes
1answer
9 views

Move Dock to another screen edge when unplugging monitor

When I exclusively use my laptop screen I prefer to have the Dock on the left edge, but when I plug in my external monitor I'd like to move the Dock to it instead. Since my external screen is to the ...
2
votes
0answers
38 views

How to automatically hide/show dock depending on whether any apps are running in foreground?

In GNOME (on Linux), there is an extension called "Dash to Dock", which gives you a macOS-like dock. One very nice difference is that when you set it to automatically hide the dock, it only hides it ...
1
vote
0answers
44 views

Can I trigger a series of keyboard shortcuts with a single action on iOS?

For example, on an iPad with iOS 13, if I want to automate the following (in the app Notes): Command Shift Down Command X Command Up Down Command V Is there any way to trigger that sequence of ...
1
vote
2answers
47 views

Does keyboard maestro have a trace/verbose log?

I was experimenting with the "Highlight Location" action of Keyboard Maestro yesterday. It worked. Today it's not working. How can I troubleshoot keyboard maestro? When I press the play button on a ...
0
votes
0answers
64 views

How to open multiple folders with a specific Application (Gemini 2)?

This is a supposed to be a simple AppleScript but I have searched many post on stackexchange.com and I cannot find anything that works. Basically, "Gemini 2" is a duplicate of finder (macpaw.com/...
0
votes
0answers
22 views

Use Single Shortcut Key to Close Windows

Some windows can be closed with ⌘+w while others require the Esc key. How do you create a single key shortcut (maybe with caps lock?) that can close both types? A built-in solution in Mojave and ...
0
votes
1answer
35 views

Keep standalone bash script app open after run of script

I have a bash script that I have turned into a standalone macOS app (i.e. I created a folder Script.app which contains subfolders Contents and MacOS and in the folder MacOS resides my bash script). If ...
0
votes
1answer
35 views

How to Hide and show an app via a single shortcut?

I'd like to show & give focus to and hide an app using a single shortcut. The app (or apps) i like to use this way do not natively support this on their own. Is this possible on macOS (10.15 in my ...
0
votes
1answer
16 views

Key chords in Keyboard Maestro

I'd like to define a Keyboard Maestro macro that I can trigger if I enter a certain key chord. As a reminder, key chords are sequences of two hot key presses. Many editors like Emacs, Visual Studio ...
0
votes
0answers
19 views

Incorrect validation loop [duplicate]

I made a loop that inserts a number into a string, and by the color of the number (blue - registered, red - missing), using the standard utility Digital Colors Meter determines the color of the number....
0
votes
0answers
13 views

Hammerspoon: resize window on creation

I want Hammerspoon to resize all my windows when they are created (so I don't have to press any hotkey). They shall be positioned at a given (hardcoded) x,y position and have a given (hardcoded) width ...
0
votes
0answers
36 views

Incorrect validation loop for iMessage [duplicate]

I'm trying to do a number checker in imessage. We all know that there is no such api, so I'm trying to use the tools at hand. The main took with past issues on this site on this topic. I made a loop ...
0
votes
0answers
25 views

Tag the currently open file (not via Finder)

Is it possible (either natively or with a 3rd party app) to tag a file that is currently open and focused without depending on that app to support tags? I want to be able to easily and quickly add ...
1
vote
2answers
198 views

How can I set a scaled display resolution from the command-line in macOS Catalina?

I am trying to automate the setup of a Mac running macOS Catalina (10.15.1). I found this question: How can I set the display settings using command line . But none of the answers really explain how ...
0
votes
0answers
66 views

How to script a string from a txt file to be inserted into a given variable in turn?

I have a text file with names. Each name is on a new line. Bob Robert John Leslie Anna How can I read this text file with AppleScript so that I can use the name in each line to send an iMessage to ...
1
vote
0answers
12 views

How to scan for visible Airdrop devices via Applecript?

I'm trying to figure out a way to scan for nearby airdrop devices and display a list of them but I've had trouble finding relevant examples or documentation. Can anyone point me in the right direction?...
3
votes
1answer
80 views

Quit/open an app whenever audio output is changed on mac

I'm using Boom as an equalizer and a File Audio Boosting on my MBP when using built-in speakers. But when using a home device (with an amplifier connected by jack to the MBP) or a headphone (bluetooth ...
1
vote
1answer
32 views

Disable Wi-Fi and LAN if user is not logged in

How can I disable internet ( Wi-Fi/ LAN ) on Mac Pro while user is not logged in or when the Mac is locked?
1
vote
0answers
26 views

How to create Automator workflow to paste in authentication code within a GUI app?

I currently have created an automator workflow (in Catalina) that will paste in a two-step authentication code by a keyboard shortcut within the Cyberduck app. However, I am wondering how to possibly ...
2
votes
3answers
64 views

How can the default save format be changed for OS X Preview app?

Is there a resource showing all the possible syntax for changing the preference file for the preview app in os x? I'm using Catalina if that matters. I frequently copy an image to the clipboard and ...
2
votes
1answer
94 views

How to run an AppleScript when Safari starts up?

To use uBlock Origin in Safari 12.1.1, I run it using Extension Builder 1. But I have to go by the builder tool at every Safari startup, so the blog suggested adding the script to ~/Library/Scripts/...
1
vote
1answer
453 views

Shortcuts-app automation to prevent iPhone screen from going to sleep

I was recently playing around a bit with the new Shortcuts app on the iPhone. Is there an action to "prevent screen from going to sleep". Ideally, I'd want to activate it when a certain app is ...
0
votes
0answers
44 views

JXA Script Libraries crashes every time on macOS Catalina

Is there any information about for a deprecated support of script libraries in Javascript for Automation (JXA) on macOS Catalina ? Because I have a JXA Script Library I use for some tasks automation ...
1
vote
0answers
205 views

How to send a photo with Shortcut iOS app without needing confirmation

The attached image shows the setup within the iOS shortcut app. I'm trying to have the shortcut take a photo and send it to a predetermined number. It works fine, except for the fact that I have to ...
0
votes
0answers
47 views

Using Shortcuts app to change iOS contact names

I'm fairly new to this whole Shortcuts app and I'm not too strong with lots of programming terminology. I've had a hand-me-down phone and all contacts are in this format: Alex's Work - Jane R Alex's ...
1
vote
0answers
13 views

Toggle “Announce the Time” when presenting?

This answer shows how to programmatically toggle "Announce the time", but how can I automatically trigger this when I dis/connect from/to (certain) external displays?
2
votes
1answer
50 views

How to stop Automator / other task running in background

I have a process on my MacBook that triggers when a new file is added to certain folders, like my desktop, it copies the file and places it in another directory that is backed up online. The problem ...
4
votes
2answers
446 views

Can I create something like a macro in Numbers?

I have this long formula that is used in a lot of columns: =SE(N17<60; DEF.NÚM.DEC(SOMA(60; −N17); 1); "✔︎ Aprovado") So, when I need to change something in this formula, I need to edit each one ...
3
votes
6answers
517 views

Is it possible to script what applications should open certain file extensions?

I have a new Macbook Pro and I'm reminded that my development environment isn't tailored to what I setup on my previous Macbook. I was curious if it's possible to create a script in either AppleScript ...
3
votes
1answer
37 views

PDfs in Automator

I work in photography post production, need to make PDFs from images but with the file names shown on the PDF and 4 up instead of a single image on each page. Can anyone suggest additional plugins or ...
1
vote
1answer
31 views

How I can make sure my code is keep running?

hey I am running an optimization model in AMPL. It is huge model and I know it is gonna take a lot to be solved. How I can make sure my model keep running even when the screen become lucked? I did ...
6
votes
4answers
320 views

How to start an application when a specific disk is mounted

I store all my music on an external drive. I have iTunes set to start when I login. However, iTunes always starts before my encrypted drive has mounted, and so iTunes complains it can't find its ...
2
votes
1answer
981 views

How to skipt the prompt for time-triggered automation Shortcuts in iOS13?

I have created a simple shortcut that collects certain data and displays it via a push notification. I just told the app to run my shortcut every day at 10AM. The feature certainly works, however ...
5
votes
1answer
237 views

Is it possible to send a text file from terminal to the Notes App on MacOS?

I like how my notes in the Notes App gets synced via iCloud. I spend most of my time in the terminal during the day, so it's convenient for me to keep notes in a text file. At the moment I simply copy-...
2
votes
0answers
51 views

Default Volume Slider in Quicktime Movie Recording

Is there any way to change the default volume for a Quicktime movie recording? If always defaults to 0 (muted) when starting a new movie recording. I understand that this is done in order to prevent ...
3
votes
1answer
92 views

iOS Shortcuts App: How can I convert my Workflow to a service app?

Back in AppleScript or Apple Automator it is possible to convert workflows to a compiled read-only application. Is it possible to hide, compile or convert my iOS Shortcuts workflow to a self-running ...
10
votes
2answers
821 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:...
1
vote
1answer
46 views

Automation Item

in Mojave > System Preferences > Security & Privacy > Privacy > Automation an Installer requires access to System Events. How to find out to which app this belongs and eventually (if wants to ...
0
votes
0answers
22 views

Connect different wifi/4G on different iPhone

I have 2 iPhone signed in using the same Apple ID. What I want to achieve is this. At my office, I want one of the phone to connect to wifi and the other to connect to 4G. I know I can turn off wifi ...
3
votes
2answers
75 views

macOS 10.14: switch Bluetooth on/off based on location

I use the same laptop in 2 locations. In one location I use bluetooth to operate the mouse and keyboard, whereas in the other I don't use bluetooth at all. Apart from the seemingly defunct ...
1
vote
3answers
224 views

Node Program Runs in Terminal, but Not As a “do shell script” AppleScript

I have a call (“mercury-parser” via Yarn, using the full path to the call) that converts Web pages to lines of structured text (the page used in the call describes the service): /Users/me/.yarn/bin/...
2
votes
1answer
45 views

Automatically zip attachments on Mail getting sent

How can I have a single file or several files that I dropped into an email on Mac, automatically become a zip file before getting sent?
0
votes
1answer
80 views

Applescript to get MS Word current word count?

Is there an AppleScript command which will grab the word count of the currently open Microsoft Word® document?
0
votes
1answer
21 views

Adding column to multiple identically formatted tables in Numbers

I have a document in Number that contains many tables with the same format/columns but different content. I'd like to modify the format for all, adding a new, empty column in the same place with the ...
3
votes
1answer
55 views

Firefox on MacOS: Default filename when downloading

When downloading from Firefox on MacOS, I would like the filename to be prefixed by the ISO-date (YYYY-MM-DD-original-filename.extension). This can be achieved with a folder action in the downloads ...
0
votes
1answer
96 views

Batch edit ID3 music tags using custom algorithm

I like to keep my iTunes library organised and all files well-tagged, so I often spend enjoyable yet unreasonably long amounts of time editing all the ID3 tags manually. Call it OCD or perfectionism, ...