Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [automation]

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

0
votes
0answers
10 views

Automatically change power settings

This question got me thinking: What are all of the settings you could manipulate with the same command-line application, and what are their codes? Although I don't frequently run low on battery, it ...
2
votes
0answers
37 views

How can I make this script faster?

Below is a script intended to press the up arrow key every time a pixel of #535353 is encountered at 555,888. This is intended to create a bot for the Chrome dino game. However, for some reason the ...
1
vote
1answer
31 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 ...
0
votes
0answers
27 views

How to keystroke inside parallels virtual machine?

I have windows 10 installed on my mac using parallels desktop. I want to send a key combination to windows machine for navigating between browser tabs (opened inside virtual window 10) from mac using ...
1
vote
1answer
23 views

Create Context Menu Items in Photos app

I have seen several blog posts and articles about how to create context menu items in Finder and have been motivated to try creating a Context Menu (right-click) Items inside the Photos app. Using ...
0
votes
0answers
16 views

How can I set a file password for a Numbers file with AppleScript?

Is it possible to activate the password protection (that is available in the file menu, like described here) of a Numbers file via AppleScript? And if yes, how? As an alternative: could this be done ...
3
votes
2answers
81 views

Getting a text file with the url of open tabs

I got used to this routine my idle times: Open hacker news, SE, other sources on my iphone. Open interesting links as new tabs. Read for a while. Leave tab to remind myself to save it somewhere. The ...
1
vote
0answers
32 views

What causes an automator app from a network share so that normal users can't run it?

I have an application that I made in Automator which is literally just running a shell command. It's stored on a network share and when I copy it to another mac the root account and admin account can ...
0
votes
0answers
13 views

Keynote: can I tie a textbox to contents of text file?

I have a keynote presentation where I wish to display the contents of a text file in a series of text boxes one per page of the keynote presentation. The stupid way to do it is to use split to divvy ...
0
votes
0answers
26 views

Keynote Automation using Applescript/Java

I'm looking to create an AppleScript to automate my Keynote workflow. Basically, I want to replace a marker in the Presenter Notes with text from a table (Numbers, Excel, or other). I found this ...
5
votes
1answer
65 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 ...
1
vote
1answer
23 views

Create a custom Quick Action to create a zip file with password

How to create a custom Quick Action to create a zip file with password. I understand, to create a zip file with password the following command-line can be used: zip -er archive.zip /path/to/...
1
vote
1answer
26 views

App to track hours in each work site [closed]

I'm a contractor and I visit my customer places, I would like to install an app that does automatically detect how much time I spend for a customer at which location with an ability to mark the ...
0
votes
0answers
20 views

Skim - Changing highlight colors with keyboard

I have been trying to build a script that allows me to easily change the highlighter color in Skim by keyboard shortcuts. If the keyboard cannot be used in the script, I do have Keyboard Maestro, so ...
5
votes
1answer
40 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 ...
3
votes
3answers
132 views

Is there any way to convert a bunch of .ogg files in a folder to .mp3 using ffmpeg?

Is there any way to convert a whole heap of .ogg files in about 30 folders in a folder containing those folders to .mp3 files and put them in another folder using the command ffmpeg? The previous ...
4
votes
1answer
52 views

Automator :: Remove 6 digit date from filename; append current date

I apologize in advance if this has been answered but have performed a lengthy search in hope of a solution. I have a working Automator app that appends the current six-digit date (YYMMDD) to the end ...
1
vote
2answers
79 views

Can AppleScript search deeply for the largest file contained below a folder?

I need to make an AppleScript that would find the biggest file in selected directory (even if its inside another folder) and show full path on screen. This is what I have so far, but it doesn't work:...
1
vote
0answers
14 views

Send an email message via script upon startup, before user login

Is there any way to automatically send an email message (as a notification that my server box has rebooted, usually due to power failure) to myself upon system startup, before user login? I am not ...
2
votes
1answer
114 views

How to programatically set Terminal theme/profile

Context for this question: I'm writing a bash script to automatically setup any Mac with my tools/preferences, ideally with one command if possible. The question: I have a .terminal theme file that ...
2
votes
2answers
161 views

How to deploy Automator workflow to clients?

For a specific use case, I've developed a Folder Action workflow with Automator. When a file gets created in a folder 'abc', the workflow kicks of and executes a shell script. This workflow needs to ...
1
vote
0answers
95 views

Auto logout inactive users

My iMac is set up using Parental Controls to limit how long my kids can use it. When their time is up, they are no longer able to use the iMac. However, their accounts are not logged out, and ...
0
votes
1answer
45 views

How can I find duplicate adjacent cells in Numbers?

I have a Numbers sheet that is thousands of rows long. As an example in the image, the sheet has two columns with URLs. What I need to do is find the rows that have the same URL in the two adjacent ...
2
votes
1answer
52 views

Getting process currently open in full screen mode

I have a simple AppleScript that works when initiated from an application that is not in full screen mode but does not work when in it's in full screen mode: #!/usr/bin/osascript tell application "...
3
votes
3answers
501 views

Can AppleScript or any other script measure a Macbook's wifi signal strength?

At my home I have two separate routers due to poor signals when being in one location opposed to another. When I work on my Macbook from different locations I find it annoying when I have to switch ...
0
votes
2answers
74 views

Paste files to multiple destinations

I get into this situation quite often but haven't found a solution. I have a group of CSS files in the clipboard that I need to paste + replace into several different destination folders. My folder ...
2
votes
2answers
337 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 ...
2
votes
1answer
136 views

automator fifa 19 web app

I'm trying to click the reset button in Fifa 19 web app with automator. codes I've tried. tell application "Safari" activate tell current tab of window 1 do JavaScript "document....
3
votes
1answer
78 views

How can I install this script as a folder action?

I'm trying to setup a script as a folder action that will identify and change unwanted characters in the name of a file added to a target folder. The intent is to have this automation run as a ...
2
votes
2answers
559 views

Automator: Service to move files into new subfolders based on file extension *within any selected folder*

I've been searching for quite a while now but can't seem to find relevant instruction for this particular task. I'm brand new at this so apologies if I'm missing something basic. Like many ...
4
votes
1answer
375 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. ...
1
vote
1answer
31 views

How to create Siri shortcut for Animojis

I want a Siri shortcut to open the Messages app showing the thread with myself. So I have to use the Open App action, and open Messages. But is it possible to pass variables to the action so that ...
2
votes
1answer
28 views

List recent non-recurring calendar events

I'm trying to build a shortcut that will show me a list of my ad-hoc non-recurring calendar events to help remind me what I've achieved when preparing quarterly reviews. I can use Find Calendar ...
2
votes
1answer
176 views

Any way to open a URL in a script without having it open in a browser

The situation: My mobile carrier offers for free to send SMS notifications by following a URL. What I'd want: Include these URLs in various scripts to get notifications when I'm away from keyboard. ...
2
votes
1answer
72 views

Create macro for Sketch App

I want to create a macro for Sketch. I want to execute some commands, for example, save the file, run some plugins, etc. Is there a way I can do this? I'm using a Macbook Pro with OSX 13, I use this ...
2
votes
0answers
48 views

How can I simulate repeated keystroke on Mac?

I am looking for a method that allows me to press and hold down a key, for example "X", and instead of pressing just once, I want it to be read as multiple presses in a very short period of time. So ...
2
votes
0answers
78 views

How do I employ AppleScript in Python?

I made a program to generate contracts in bulk based on data from an .xlsx file. I originally made it for PCs, and now I'm trying to create a mac version. Everything seems to be running smoothly, but ...
1
vote
0answers
16 views

Automating wifi login

I have a wifi network that loads a webview on connecting that has fields for username and password and a login button. is there a way to automate the login process when that network is connected?
1
vote
1answer
67 views

Can you debug interactively in Workflow?

I’ve been creating some mobile workflows, and debugging has become a bit of a chore. My current method of doing so has simply been to add a Quick Look and Exit Workflow step. Since Workflow execution ...
0
votes
1answer
41 views

How to automate deleting what's inside the search box in the Dictionary app after 3/5 seconds?

I use the Dictionary app many times when I'm reading a very old novel, and sometimes I write two words side by side without realising it (until I get no result), with that said, I need to tweak the ...
1
vote
3answers
81 views

How to script brightness turning down and up?

I am trying to create a applescript that puts my brightness to the max or minimum, but I don't know how to. I am trying to use this script repeat 10 times tell application "System Events" ...
3
votes
2answers
526 views

What is the keystroke code for space bar in applescript?

I am trying to create a applescript which utilises the keystroke spacebar I have this code tell application "System Events" keystroke {Space} end tell But When I play the script "space" just ...
1
vote
2answers
119 views

How to open a .app which is inside the Contents/Resources/ of the script?

I am trying to create a applescript that when I double click on it, the code activates an (or multiple) application/s from inside it. e.g. I just click on this script and it opens Photo booth and COD.
0
votes
0answers
74 views

Detecting a Floating Menu in Touch Bar with AppleScript

I'm trying to write a simple script using AppleScript that can identify and close a floating menu on the touch bar. An example, for clarity: Suppose that I've opened the Spotify floating menu on the ...
0
votes
1answer
33 views

Finding minimized apps through terminal

I would like to know how to find what apps are minimized in the dock but through the terminal? The idea is to make a script that pauses minimized apps in order to reduce memory usage but the first ...
1
vote
0answers
45 views

Garageband 10.3 cannot see automation curves

I cannot see automation curves in Garageband 10.3. I select Automation in the track, select parameter from menu, but no curves appear in the track.
1
vote
2answers
119 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/...
1
vote
1answer
35 views

What does errAEWrongNumberArgs error mean running AppleScript?

I copied a script that I found online, but it will not run. The error I receive is Logical operator NOT used with other than 1 term (errAEWrongNumberArgs:-1721) Here is the script. on run {input, ...
1
vote
0answers
43 views

How to use workflow to email Health export files?

Is it possible to set up a scheduled email that sends Apple Health data as an attachment? I want to send data to my personal trainer and I forget to send it sometimes. Can I do it via Workflow? Are ...
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 ...