Questions tagged [automation]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
21 views

Is there a way to automatically save Pages documents copies as PDF on every save?

Is there a way to enable Pages (version 10.1 (6913)) to automatically save a copy of the current document as PDF every time I save it to avoid a manual export?
0
votes
0answers
7 views

How to chain action of third party app to a short cut

I want to be able to chain several actions into a shortcut on mac. I'm on macOS 10.14.6 For example: Open Zoom, if not opened yet Start new meeting without video Share Screen of 2nd Desktop (ideally ...
0
votes
1answer
31 views

Sharing iOS pictures onto private cloud

I and my partner have an iPhone which we use for taking pictures. We would like our pictures somewhat combined on a private server (Linux; e.g. NextCloud, WebDAV etc -- scripting/automation on the ...
0
votes
1answer
48 views

Handling permissions to run a bash script

I'm sending a bash script as a .command file to a friend. This person is not very tech savvy which is why I'm sending it in the first place, the goal is for the .command file to run through the shell ...
1
vote
1answer
46 views

Is there a MacOS automation that can detect pixels on screen?

I need to automate some keyboard and mouses actions depending on what is shown on the screen. But because the applications don't have applescript hooks, there is no way to know of certain events ...
1
vote
2answers
39 views

Automatically print incoming email on an iPad

I'd like to automatically print all incoming email to my printer. I don't think there's any way to do this with the native mail client, perhaps there is another app that does this? It's definitley ...
0
votes
1answer
46 views

Reliable shortcut for non-ASCII text insertion

I occasionally use text strings such as ¯\_(ツ)_/¯ Unfortunately, I don't have a ¯ or a ツ on my keyboard, so using such strings can be a bit of a pain, usually involving a web search and copy and paste....
0
votes
1answer
55 views

Catalina: How to add System Events to System Preferences > Security & Privacy > Privacy > Automation?

The problem In a script I'm using AppleScript to reload the browser when a change happens. I start this in the builtin terminal of my IDE, WebStorm. Since MacOS Catalina this yields the following ...
2
votes
1answer
23 views

Can outlook365 for mac be installed and connect to an email server via a script?

Back in the old days of windows we would use 'roaming profiles' which were very buggy and unreliable but would autoconfigure some network shares and outlook so they could start using any computer. ...
1
vote
0answers
22 views

Shortcut app step for activating the Low Data Mode setting when opening an app

AIM : When I open a movie app, such as Netflix or Shudder, I want the Shortcut app to trigger the Low Data Mode setting automatically so that the current movie app is now the only app using the WiFi ...
1
vote
1answer
26 views

How to get (logical) screen size from a shell script?

Using system_profiler SPDisplaysDataType, I can retrieve the size of a Mac's display in pixels. However, the command tell application "System Events" to get the size of every window of every process ...
0
votes
1answer
53 views

Error “Not authorised to send Apple events to Terminal.” when starting Maxima

I downloaded Maxima and installed on Mac OS Mojave (10.14.6). I followed instructions and remove the quanrantine attributes : $ sudo xattr -d -r com.apple.quarantine /Applications/Maxima.app ...
0
votes
0answers
5 views

View Homekit Sensor in Toolbar

I have some sensors that I would like to be able to glance at to see their values in the toolbar on my Mac. Is there a program or an API to let me do this?
1
vote
3answers
67 views

How to open a fixed URL + what's in the clipboard via a script & bind it to a shortcut?

Will this applescript work? Tell Application "Safari" to open location "http://www.site.com/" end tell Tell Process "Safari" Keystroke "l" using command down Tell application "System Events" to ...
0
votes
0answers
16 views

Is there a way to automate the launch and close of an app based on another app?

I want app A to launch and close depending on when app B is launched and closed. Is this possible in macOS? It's sorta mentioned in this questions Can launching an app trigger the launch of another ...
1
vote
1answer
25 views

Edit pages document programmatically

I want to know if it's possible to edit pages document using Python or other scripting tools. I need to modify the paragraph style of lines containing a date (e.g. 2020/05/02), which can be easily ...
1
vote
1answer
37 views

Automatically convert cooking recipe units

I am looking for a way to manipulate cooking recipe texts in such a way, that measurement in units foreign to me are converted to the ones I know. For example: 2 cups of milk → 568 ml of milk Here ...
0
votes
1answer
49 views

Programatically modify tag visibility, order

I need to programatically alter both the visibility and default sort order for tags, explicitly in Catalina: I have different categories of tags that, depending on what project I'm working on, I'd ...
1
vote
0answers
48 views

How can I run automated GUI tests for JVM apps without interrupting my work?

I need to write automated GUI tests for apps built with and running on OpenJDK 14 (Swing & JFX) on Catalina. This is easy, but when the tests are running the windows pop up on my screen, taking ...
0
votes
0answers
14 views

How to always run a workflow when scanning a document?

I want to tag every file that I scan with a 'Scan' tag. I successfully wrote the shell script that does the tagging part, but now I am struggling to start it when scanning my documents. Here is what ...
0
votes
1answer
22 views

Auto run a shell script when connecting to a network? (wifi or utp)

Is there a way to make macOS run a custom script whenever it (re)connects to any WiFi or Ethernet network? Basically, whenever my macbook connects to any network (wired or wireless) I would like to ...
1
vote
1answer
27 views

Trigger custom script on specific log message

I am using AirServer for Airplay on my Mac. As far as I know, AirServer does not provide an interface to run scripts on specific actions. However, I found a AirServer specific message inside the ...
0
votes
0answers
37 views

Merge multiple folders and subfolders with differing names in macOS

I have multiple folders and subfolders that I need to merge. Merging them manually would take ages (300+ folders). I can't figure out how to use ditto correctly to solve my problem. I do not know if ...
0
votes
1answer
21 views

Why does show hidden files shortcut only work intermittently?

I am running Catalina on a 2015 13" Macbook Pro and at random times the default ⌘ Command⇧ Shift . shortcut for showing/hiding files will stop working. I read previous threads that mostly refer back ...
0
votes
0answers
8 views

AutoLogin multiple users and return to Login Screen

Background: I have an old MacPro which I am using as a file server. Now I have created several additional users, one for each family member, to sync the iCloud Photo Libraries to the MacPro to have a ...
0
votes
0answers
12 views

Is there a way to list all file type associations for a program?

For example, list all file type associations that exist for BBEdit so I can change them all to Atom or vice versa (using the suggestion here: How to change multiple file type associations on the Mac ...
0
votes
1answer
63 views

How do I hide Terminal windows using AppleScript?

I am using an AppleScript where I need to open many Terminal Windows using: repeat while counter > windowAmount tell application Terminal do script "" end tell end repeat Is there ...
0
votes
1answer
25 views

apple numbers Filling data into a table using AppleScript

I have a document on numbers with 3 sheets. 1-data entry table (based on the "data" sheet). 2-copy dada table with: -- I.an additional column containing the following formula if(reference ...
0
votes
0answers
54 views

How to insert image into Numbers with AppleScript

I'm trying to create an AppleScript that will: find the value of cell "x" tell application "Numbers" to ¬ tell table 1 of sheet 1 of document 1 set theimagename to value of cell "A8" ...
0
votes
1answer
56 views

AppleScript to Rename file list to Specific Names

I've spent hours researching this and I can't seem to find an answer, so your help would be greatly appreciated! I have an audio recorder that outputs 16 files that are always named the same. ...
0
votes
1answer
101 views

How to use Launchd? [duplicate]

(sorry if this is a bad question. I am new to apple coding) I want to run a .scpt file at a specific time, once a day, every day using launchd (if there is a better way please tell me) I am running ...
1
vote
0answers
45 views

automator: sorting image with ocr

I have a folder with screenshots of a document, in every image I have an article number in the same exact position. Ideally, I would like something in a text file or to add to numbers table. what is ...
2
votes
2answers
55 views

Applescript app keeps crashing

Whenever I try running this code it does not log the text. repeat set myTime to (time of (current date)) set precisetime1 to 82800 set precisetime2 to 84600 set ...
1
vote
0answers
43 views

macOS How to turn on airplay automatically on setup

I have a Mac mini, and I use it without wired monitor . Every time, I connect to it with my old Macbook by screen sharing, and turn airplay on, mirroring the screen to a portable monitor. then close ...
1
vote
0answers
44 views

Open an app windowless

Can we launch apps hidden (i.e. without windows, the same effect we get on ⌘H) via JavaScript for Automation (JXA)? The best I could achieve so far is: const app = Application('AppName') if (!app....
1
vote
1answer
44 views

How to control volume of music based on “Now Playing”?

I'd like the Mac to mute itself when there's an ad on Spotify. It comes in a pair, 30 seconds each. I now have to hit mute button, then guess if a minute is over yet and then unmute it. Solid ...
0
votes
0answers
10 views

wget on Mac - download all links in a webpage [duplicate]

How do you use wget to download all links on a webpage. I have tried a variety of different wget commands, as I understand that it can mirror and download an entire website including its links for ...
0
votes
0answers
26 views

Application refuses to open files via Finder

I have an application that I'm trying to automate opening a file for. When I try to associate this app with a specific file type in Finder, I get this error: The document "Document.<ext>" ...
0
votes
2answers
67 views

Quicker way to copy files to a set of different folders for classification purposes

I think this is a pretty classic setup, hence I'm hoping for a solution here. In the finder, I have a folder "pictures" containing 15,000 pictures. For each of these pictures, I'd like to send it to ...
1
vote
0answers
159 views

Automator slows down to a crawl following a simple AppleScript workflow?

Context: I am trying to use Automator to turn the pages of a web-based e-reader open in Google Chrome, copy their respective HTML code from Chrome Developer Tools (which is already kept open), save it ...
0
votes
0answers
71 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
38 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
71 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
52 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
24 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
49 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
65 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
91 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
68 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
23 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 ...

1
2 3 4 5
9