2022 Developer Survey is open! Take survey.

Questions tagged [automation]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
11 views

Search all of Apple Music with AppleScript?

So I'm working on a project to convert Spotify to Apple Music playlists and I'm utilizing AppleScript to do so. I was wondering if anyone knows how to search all of Apple Music when utilizing the ...
user avatar
1 vote
1 answer
10 views

Any way to trigger a Shortcut based on notifications from a given app?

Is there any way that I could trigger a Shortcut/Automation based on a notification from a particular app? The app does not have any awareness of Shortcuts (it doesn't come with any of its own ...
user avatar
  • 480
1 vote
3 answers
86 views

Taking the first 7 characters of a folder name and appending it

I have a lot of folders named the same way with the year at the start and I would like to somehow move the year to the end of the folder name For example, current folder name: (1999) Robert Wyatt - ...
user avatar
  • 11
0 votes
1 answer
17 views

Keyboard shortcut to hide the extension of selected files in Finder

How can I set up a keyboard shortcut to hide the file extension of each selected file in Finder? For example, if ⇧⌘E were such a shortcut, I could conveniently press ⌘A to select all files in the ...
user avatar
1 vote
0 answers
40 views

looking for a way to script a mac os install

I have 100+ laptops that I need to image to Catalina and want a way to script the install. I know this at the very least used to be possible because it worked for us in the past. My goal is to option ...
user avatar
  • 11
0 votes
0 answers
31 views

Run script upon Xcode project creation?

Is there a way to run a shell script upon creating an Xcode project? I plan to do this so that I can store the project in OneDrive, but use the shell script to make an alias in iCloud Drive. Is there ...
user avatar
  • 11
1 vote
0 answers
9 views

Play music on HomePod for a fixed amount of time without Siri

Siri doesn’t work with my voice. I want to play music on my HomePod for a fixed amount of time Generally I start it via my iPad but I could start it via my Mac if it would help. Then I would like ...
user avatar
  • 409
1 vote
0 answers
16 views

Automating mouse position

Is there anything in AppleScript, Automator, Swift or anything else I can program which would allow me to set the position of the mouse? My plan is to find a way of moving the mouse to the centre of ...
user avatar
  • 2,887
0 votes
1 answer
47 views

How to select a tab/window with AppleScript

I am trying the fullscreen just one of several Preview tabs with AppleScript by fn + F how can I select the tab by its name? tell application "Preview" to activate delay 0.1 tell application ...
user avatar
  • 205
1 vote
0 answers
49 views

How can I get a link to Microsoft Outlook message?

In prior versions of Outlook, AppleScript could be used to get a link to message/s like this: tell application "Microsoft Outlook" set theSelection to (get current messages) ... In ...
user avatar
  • 222
0 votes
1 answer
59 views

How To Change Preview Default Settings

When I open a PDF in Preview it always defaults to the Two Page setting and Always Show Sidebar, and I have to redo these things manually every time I open a file. How can I fix this. Also, I wish to ...
user avatar
  • 205
0 votes
1 answer
22 views

How can I delete node_modules folders in projects that I have not recently touched?

I want to look for folders (let's call each of them $folder) containing node_modules/ folder. node_modules folders are places to install javascript libraries, and these libraries themselves often have ...
user avatar
0 votes
0 answers
17 views

How can I run a script to add keyboard shortcuts on macOS?

See also: How to script a global keyboard shortcut in MacOS I like to maintain some scripts I use to set up new Macs the way I like them. One thing I would like to automate is the setting of some ...
user avatar
  • 521
0 votes
1 answer
38 views

Share Live Photos with non-apple (android and windows) users

I enjoy taking and reviving Live Photos in my iPhone. But I stumbled upon, when some familiar ones using non-apple devices wanted me to share those with them. How can I (batch) convert Live Photos ...
user avatar
0 votes
0 answers
59 views

Triggering an automation shortcut on iPhone when a call is picked up

I would like to run an automation or a shortcut every time I pick up an incoming call or dial an outgoing call. What is the trigger I should use? Does such kind of a trigger even exist?
user avatar
0 votes
0 answers
65 views

Open finder directory in terminal emulator of choice?

I'm using a launcher app called Raycast which lets me run script commands anywhere. On their github I found community Applescripts that have functionality I want (opening current finder folder), but ...
user avatar
  • 1
3 votes
1 answer
79 views

In Finder, how dynamically change folder icon's color when said folder contains .git folder?

Looking for an automated way, in macOS Finder, to change a folder icon from its default blue to green, based on whether or not it contains a .git repository. Can this be scripted or automated with a ...
user avatar
  • 31
0 votes
0 answers
6 views

Select a predefined browser while opening a link from a specific app

Do you know guys if it's possibile to set a 'rule' by which every clicked link in the Discord app is automatically opened in Brave, while others link follow the canonical predefined setting and are ...
user avatar
  • 1
0 votes
1 answer
131 views

How to add a 10 minute reminder through shortcut?

I'm on iOS 15 and what I'm looking for is a way to add a 10 minute reminder to 'wake up'. I can do the same by asking Siri to 'remind me to wake up in 10 minutes', but I'd like a way to create a ...
user avatar
1 vote
1 answer
32 views

Triggering a paste from the command line

Is there any way to trigger a paste in the windows manager, for example, if I got a text box focused in an application, say, Safari, and I run the command from the command line, it would trigger a ...
user avatar
0 votes
0 answers
212 views

Not authorized to send Apple events to System Events. (-1743)

I can execute my Apple Script when I load/open it from Apple Script Editor. No errors. However, I have added Editor to the menu bar of my Mac (Catalina OS) with my script copied to the User Scripts ...
user avatar
  • 1
4 votes
3 answers
2k views

How to use terminal to visit a site and take screenshot?

I am aware curl on Mac lets you visit a site from the command line. Is there a way to visit that site then take a screenshot and download it?
user avatar
  • 205
0 votes
0 answers
4 views

Automate: go to url, fill in Form, Download PDF, Email

I would like to automate this process that i currently need to do once per day: open a specific url Type in a password click next click a button select the first element of a list/ click that click a ...
user avatar
1 vote
1 answer
93 views

Can the iPhone be configured to read aloud (text) Messages as they come in?

Whether at my desk or in the car, it would be great to hear text messages read automatically when they arrive. Picking up the phone while driving is a bad idea and this feature could prevent a lot of ...
user avatar
  • 11
0 votes
0 answers
19 views

How to add "Open in Safari" to Chrome right-click menu?

When I'm in Chrome, I'd like to be able to right-click on some links and choose "Open in Safari" from the Services submenu. As a security precaution, how can this be done without relying on ...
user avatar
0 votes
1 answer
52 views

Is there a way of toggling dark mode using the Shortcuts app?

I've come across ways (AppleScript to toggle dark mode with fading and How to toggle dark mode on and invert colors using Automator) of toggling dark mode using Automator and AppleScript, but haven't ...
user avatar
1 vote
1 answer
43 views

Using iOS “Shortcuts” app, once I define a shortcut, how can I call it from the automations tab?

So basically what I have done is define a simple iOS “Shortcut” that has a name (“Ask the cleaning lady to come”). It simply cues up a short text message to a lady in my contacts and asks me if I want ...
user avatar
1 vote
2 answers
68 views

Can Finder have a service (control click / right click) to add file cut and paste instead of using key shortcuts?

I want to add cut command to right click menu in finder. Do not want to use xtrafinder at this time...catalina (sip) defaults write com.apple.finder AllowCutForItems 1 =did not work Would there exist ...
user avatar
  • 183
0 votes
1 answer
36 views

Restore session (reopen windows) after a **CLI** shutdown on Big Sur

I'm automating some tasks, like brew upgrade then shutdown, or Duplicati backup (no Time Machine), wait for cloud sync then shutdown, but I can't seem to find a CLI command which WILL reopen my ...
user avatar
0 votes
0 answers
19 views

Create shortcut to Settings > Keyboard > Text Replacement

Is there any way to create an Icon/Shortcut on my Homescreen which will directly get me to: Settings > Keyboard > Text replacements? Even with Shortcuts and so called automation I wasn‘t able to ...
user avatar
  • 101
1 vote
0 answers
74 views

How to display default chrome history in Alfred?

Alfred beginner here. I found this awesome workflow which enables chrome browser history search in alfred. Is there a way to add default chrome browser history to it? I want to type ch and have the ...
user avatar
1 vote
0 answers
151 views

A shortcut to switch audio output and play podcast for 15min

I use to listen to podcast before sleep. But that actually means: On iPhone 12, open overcast app and start playing Switch audio output to homepod Set it to stop playing after 15min (I expect to be ...
user avatar
  • 631
6 votes
1 answer
261 views

Make all displays black

I use my MacBook with the internal display and two screens attached, so 3 displays in total. Sometimes I need to do work at my desk without using the computer, and I find that the displays distract me ...
user avatar
  • 163
0 votes
1 answer
56 views

Create Zoom link shortcut

I am looking for a way to automatically add a Zoom link to my meetings which I create with Apple calendar. The option to add a video conference seems to be for FaceTime only. Is there a way to ...
user avatar
  • 13
0 votes
0 answers
32 views

is it possible to trigger iPhone shortcut by address on received email?

How to create shortcut based on sender address on received email ?
user avatar
  • 1
0 votes
1 answer
158 views

Equivalent of xdotool script to open lots of terminal tabs and do actions, on macbook

I'm just migrated to macbook from ubuntu, for development. I had a bash script in ubuntu which opened lots of terminal tabs, and entered various commands in each one, like going to a particular folder,...
user avatar
1 vote
0 answers
24 views

AppleScript script to AirDrop file to a specific device? [duplicate]

Is it possible to create an AppleScript script that automatically takes the selected file in Finder and share it via AirDrop with a specific device? I am also open to non-ApplesScript ways of doing ...
user avatar
  • 141
0 votes
0 answers
27 views

Automatically relaunch VirtualBox VM when it crashes

Is there some way to automatically relaunch a VirtualBox VM if it happens to crash? My VM occasionally crashes and has to be relaunched which I can do manually when I'm at my computer, but I'd like ...
user avatar
2 votes
1 answer
87 views

Set view settings for many folders at once

I have a large number of folders which I'd like to all be displayed with certain columns in a certain order. I've tried copying the .DS_Store file from a folder that's set up correctly to a folder ...
user avatar
  • 14.5k
0 votes
0 answers
12 views

How do I have another app close automatically when a specific app opens? (and the opposite as well)

Specifically Matlab does not work well with Magnet open. So I want Magnet to quit when I have Matlab open but I want Magnet running whenever Matlab is not open. (I have magnet open at launch rn) I was ...
user avatar
  • 21
1 vote
0 answers
783 views

How would I export data from Python to spreadsheet (Apple Numbers Format)?

I'm currently trying to automate the export of data from a Python script to Apple's .numbers spreadsheet. Currently, I export from Pandas using .csv. My specific use-case is to update an existing ...
user avatar
0 votes
0 answers
21 views

Is there any way to launch an application on iOS while another application is running via any kind of automatic trigger?

I'm setting up a home automation system with a wall-mounted iPad that will be running the home control application with the display being kept always-on. The problem is that the dorbell is from ...
user avatar
  • 101
0 votes
1 answer
59 views

Applescript Autotyper that let's me type out lines from a text file

I'm trying to create a script that let's me either type out random phrases from within a list. OR takes this list from a text file and types it. set theFile to "/Users/michaelelebiju/Desktop/Math ...
user avatar
3 votes
2 answers
853 views

Can AppleScript detect if Netflix or YouTube is playing?

I have a script that detects if QuickTime Player is playing something in general but I also need a way to detect if Safari is playing something specific like Netflix or YouTube but if it could detect ...
user avatar
0 votes
1 answer
147 views

How to detect with AppleScript if something is playing?

I am trying to add this subroutine to my script but must have something wrong with the syntax. It's not accepting the "end mySay" Also how can I detect if a browser is playing something? on ...
user avatar
0 votes
0 answers
29 views

Trigger terminal command when camera turns on mac

I am trying to automate adjusting the volume on my mac when my camera turns on (e.g. for hangout meetings, I need to turn volume up, but when meeting is over I need to turn volume back down). The ...
user avatar
0 votes
0 answers
26 views

How to create a file that will start 3 different instances of iTerm (or 3 different windows in iTerm) and run a command in each one of them?

Every time I restart my mac I have to open a bunch of iTerm windows/split panes and in each one of them run some commands to start my project. How can I do that in macOS?
user avatar
  • 11
0 votes
0 answers
9 views

Is there a way to generate at once or merge all changes in Pages?

I am working on a long document using Pages, with change tracking enabled, and numerous changes have been made. I have made changes to previous (tracked) changes. This results in a messy change log. ...
user avatar
0 votes
0 answers
27 views

How to autostart and repeat a script on macOS login

I'm using Emacs mu4e, it needs an external program like getmail to fetch POP3 emails. I need to execute a shell script command: getmail --getmaildir=~/.config/getmail/ --rcfile=example@gmail.com How ...
user avatar
0 votes
0 answers
45 views

AppleScript to get the ordering index of open windows on the desktop

I am fairly new to AppleScript. I have been trying to find a way to get the order or index of all visible windows front to back regardless of application i.e. 1st is the frontmost on the Desktop then ...
user avatar

1
2 3 4 5
11