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

1
vote
1answer
29 views

automating “Reset Advertising Identifier” is it possible?

I want to use osascript or some other way to automate "Reset Advertising Identifier" is it possible?
-1
votes
1answer
19 views

Start a window on top of a full screened space [duplicate]

How can I open a window on top of a full screened space? I full screen a video in Safari. I want to run some app that opens a little window on top of that full-screened video. I don't mind what ...
0
votes
2answers
42 views

Is there any program to delete cache files automatically?

Every time I need to clear cache, I have to go inside each folder and delete the contents. Doing it via terminal deletes the whole folder which is not recommended. What shall I do?
3
votes
1answer
46 views

make my laptop tell me when battery is low even while “show battery status in menu bar” is not checked

I unchecked "Show battery status in menu bar" in System Preferences > Energy Saver, because I use coconutBattery instead (and obviously I don't want to just re-check that). But this means that now my ...
18
votes
3answers
11k 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 ...
-1
votes
1answer
24 views

10.14.x App & Applet, Accessibility & Automation Madness

Just FYI . . .  The following was submitted to Apple at https://www.apple.com/feedback/macos.html (788 character limit): Greetings, folks! With every boot into macOS 10.14.x (the best since ...
0
votes
0answers
13 views

Complete automation with AirPlay 2 updates for TVs?

Now that AirPlay 2 update is coming for TVs, how much does it automate the control of TVs? I was wondering if turning on and off the tv can be controlled by HomePod and Siri, changing source, etc.
1
vote
1answer
634 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 ...
3
votes
3answers
5k 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 ...
5
votes
4answers
12k 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 ...
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
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
0answers
38 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
42 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
29 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 ...
3
votes
2answers
133 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
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 ...
4
votes
1answer
43 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 ...
0
votes
0answers
17 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 ...
1
vote
1answer
36 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
35 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
21 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 ...
2
votes
1answer
66 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 "...
0
votes
0answers
36 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
72 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 ...
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 ...
1
vote
1answer
27 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
71 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 ...
2
votes
2answers
424 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 ...
1
vote
1answer
27 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 ...
1
vote
0answers
142 views

Monitor /private/var/log/system.log for connected users

How do I monitor system log for lines like: <host> sshd: <user> [priv][<process>]: USER_PROCESS: <process> ttys000 I'd like to automate an AppleScript / bash script to ...
0
votes
0answers
25 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 ...
3
votes
3answers
161 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 ...
2
votes
2answers
334 views

Add specific services to network location with terminal

I want to automate the creation of my network locations (say Home and Work) and was looking into networksetup -createlocation <location name> [populate] Adding populate adds default services to ...
0
votes
1answer
297 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 ...
3
votes
3answers
885 views

Using Apple Remote Desktop for managing iOS devices?

Im currently evaluating using Apple Remote Desktop for multi laptop and desktop management. Can it also be used for iOS device management ? We've got a range of devices - iPhone, iPads which are ...
3
votes
4answers
8k views

How to run custom AppleScript in the background at all times?

Given an AppleScript file designed to poll for an application dialog box every 30 seconds, how can I easily setup my Mac OS so that this AppleScript file starts every time I login silently in the ...
1
vote
1answer
587 views

How can I truncate filenames after X number of characters using Automator or AppleScript?

I have IFTTT sending several new desktop wallpapers per day from Reddit to Dropbox. These wallpapers arrive often with very long filenames. I need a way to automatically shorten their names (without ...
3
votes
1answer
55 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
87 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:...
2
votes
1answer
785 views

`scutil --nc start` VPN not working - macOS 10.13 High Sierra

Problem My VPN dis-/connect workflow script scutil --nc start "My VPN connection" isn't working since upgrading to macOS High Sierra (stable Version, v10.13.2). Details Context I used an Alfred ...
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
149 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 ...
4
votes
2answers
863 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 ...
2
votes
2answers
208 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 ...
3
votes
1answer
691 views

Is there a faster way to insert text at cursor in AppleScript than “keystroke”?

This is for a .scpt file, triggered by a keyboard combo in FastScripts, entitled "Type As Single Line Plain Text." The AppleScript code takes the clipboard text, removes all rich text formatting, and ...
1
vote
0answers
127 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
564 views

Close menu bar menu with applescript

tell application "System Events" to tell process "SystemUIServer" tell (menu bar item 1 of menu bar 1 where description is "system sound volume") click end tell end tell will open the ...
0
votes
1answer
49 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 ...
3
votes
3answers
532 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 ...