Ask Different (Apple)
Q&A for power users of Apple hardware and software
Latest Questions
1
votes
1
answers
465
views
osascript "authorized to send Apple events to System Events. (-1743)" when invoked via JumpCloud
I have cooked up a JumpCloud Command to automate the configuration of desktop backgrounds. I can get the command to run on a test system (Monterey, 12.4) via Shell if I approve a dialog asking for permission. When I execute via JumpCloud, I get: ``` 59:74: execution error: Not authorized to send App...
I have cooked up a JumpCloud Command to automate the configuration of desktop backgrounds. I can get the command to run on a test system (Monterey, 12.4) via Shell if I approve a dialog asking for permission. When I execute via JumpCloud, I get:
59:74: execution error: Not authorized to send Apple events to System Events. (-1743)
The command itself:
```
target_user=$(w | awk '$2 == "console"{print $1}')
export target_user
sudo -u $target_user osascript Security & Privacy > Privacy > Automation" but there are no apps listed under "Automation." Under "Full Disk Access" there's a check for "jumpcloud-agent" ... perhaps I can extend that somehow?
dannyman
(141 rep)
Jul 25, 2022, 07:15 PM
• Last activity: Aug 5, 2025, 06:01 PM
1
votes
1
answers
133
views
Can't (re-)authorize any Accessibility apps on Monterey (12.6.3)
After a forced reboot (and another reboot for good measure), the applications I allow to "Accessibility" control under System Preferences > Security & Privacy > Privacy no longer includes Rectangle.app nor allows me to add it manually. Nothing appears there anymore and nothing can be added. [
mcint
(269 rep)
Mar 18, 2023, 06:28 AM
• Last activity: Aug 5, 2025, 07:04 AM
2
votes
2
answers
1977
views
Automator.app "Watch me do" loop gets slower and slower
I have been using Automator to run "Watch Me Do" loop to click places repeatedly for tedious tasks. The loop works perfectly, but the longer the loop runs for over time the mouse movement and clicks get slower and slower. Relaunching Automator does not reset the slowdown. The only "fix" I have found...
I have been using Automator to run "Watch Me Do" loop to click places repeatedly for tedious tasks. The loop works perfectly, but the longer the loop runs for over time the mouse movement and clicks get slower and slower.
Relaunching Automator does not reset the slowdown. The only "fix" I have found is to reboot my MacOS.
Anyone here know how to fix this?
Veronica
(123 rep)
Oct 24, 2020, 09:42 PM
• Last activity: Jul 28, 2025, 08:09 AM
2
votes
1
answers
168
views
Can iPhone delete files immediately, without sending them to Trash?
Can an automation workflow be created that will delete files immediately from iPhone? This would be useful when the iPhone is too full to Delete by first moving to the Trash.
Can an automation workflow be created that will delete files immediately from iPhone?
This would be useful when the iPhone is too full to Delete by first moving to the Trash.
Mentalist
(1360 rep)
Jul 24, 2025, 10:17 PM
• Last activity: Jul 25, 2025, 12:41 AM
22
votes
13
answers
38384
views
Is it possible to change display resolution with a keyboard shortcut?
I use different screen resolutions based on the activity I'm doing during the day. For example when I'm coding I prefer to have more space available. Is it possible to associate a keyboard shortcut to change the scaled display resolution ? (see the attached screenshot) [
david-e
(323 rep)
Dec 1, 2016, 08:46 AM
• Last activity: Jul 22, 2025, 12:42 AM
1
votes
1
answers
105
views
Script to open Safari > Preferences > Websites > Notifications
I do not believe that macOS PPPC on Ventura and higher will permit this, but: Is there a way to use AppleScript (osascript) to open Safari's Preferences window and change focus to Websites > Notifications? Other web browsers can be easily scripted to show the notifications section of their settings,...
I do not believe that macOS PPPC on Ventura and higher will permit this, but:
Is there a way to use AppleScript (osascript) to open Safari's Preferences window and change focus to Websites > Notifications?
Other web browsers can be easily scripted to show the notifications section of their settings, ie:
$ open -a "Google Chrome" chrome://settings/content/notifications
This would be useful to assist an end user with disabling problematic/fake notifications.
da4
(6025 rep)
Oct 29, 2023, 04:48 PM
• Last activity: Jul 21, 2025, 01:03 PM
0
votes
2
answers
48
views
Is there an app or automation that can alter clipboard text to replace spaces with hyphens?
Is there a utility or path to streamline taking a string from the clipboard and replacing spaces with hyphens, and vice versa, on demand? > N 010 377 1 to > N-010-377-1 and the reverse If this were a one-time batch operation, or contained within a single app I controlled, it would be a non-issue. Fi...
Is there a utility or path to streamline taking a string from the clipboard and replacing spaces with hyphens, and vice versa, on demand?
> N 010 377 1
to
> N-010-377-1
and the reverse
If this were a one-time batch operation, or contained within a single app I controlled, it would be a non-issue. Find and Replace right? This is something I do frequently, but it is a single string at a time between 3rd party applications (Excel, Safari, Preview, etc.). My current workflow:
1. Copy "N 010 377 1" from PDF file in Preview
2. Paste "N 010 377 1" into browser (Safari) or spreadsheet field (Excel)
3. Manually add or remove spaces or hyphens via keyboard
In a perfect world, I would have a clipboard utility like Jumpcut where a hotkey combo would do this for me when I pasted. Something like:
⌘⇧- would paste data from clipboard replacing spaces with hyphens
⌘⇧␣ would paste data from clipboard replacing hyphens with spaces
I don't mind doing some work to set this up, but utilizing it needs to be super simple (i.e., not launching an app and doing find replace). Thank you.
DenVog
(101 rep)
Jun 16, 2025, 03:22 PM
• Last activity: Jul 17, 2025, 02:27 PM
2
votes
1
answers
199
views
Can Automator be used to visit/upload/save images from a website?
I have a folder on desktop with png images. I'd like the images to be sent to a website (Vectoriser.ai). Uploaded one image at a time (multi drop is not available) and save the result to another folder on desktop. The website process is four steps, upload/press ok/press download/press another downlo...
I have a folder on desktop with png images.
I'd like the images to be sent to a website (Vectoriser.ai).
Uploaded one image at a time (multi drop is not available) and save the result to another folder on desktop.
The website process is four steps,
upload/press ok/press download/press another download button.
I couldn't find anything in the search results that match my requirements exactly, so I'm wondering can this even be done?
I'm using an old iMac 2011 High Sierra 10.13.6
Bow
(21 rep)
Oct 25, 2023, 11:21 AM
• Last activity: Jul 17, 2025, 03:04 AM
6
votes
2
answers
2579
views
How to find and remove duplicate calendar entries (Mac OS, Yosemite)
I'm using the **Calendar** application on Mac OS X 10.10.1 "Yosemite". The calendar is laden with many years of history, and I've just imported some data from a phone as well. It turns out that some of the phone entries were new, but some were duplicates of entries already in Calendar. Note that "du...
I'm using the **Calendar** application on Mac OS X 10.10.1 "Yosemite". The calendar is laden with many years of history, and I've just imported some data from a phone as well. It turns out that some of the phone entries were new, but some were duplicates of entries already in Calendar.
Note that "duplicate" has some complicated cases. For instance, there are weekly repeating events where the phone's data correcting deleted some instances of the meeting (we didn't meet over the New Year holiday), while the original Calendar data incorrectly shows those instances occurring. Such pairs are "duplicate", even though they aren't identical.
How can I automate the process of identifying which calendar entries are duplicates, choose which one to keep, and delete the other? Is there AppleScript magic or something?
Jim DeLaHunt
(1111 rep)
Jan 7, 2015, 08:20 AM
• Last activity: Jul 2, 2025, 10:25 PM
5
votes
1
answers
4604
views
Shortcut to Clear History and Website Data
Clear History and Website Data for Safari is deeply hidden in Settings. Tap, tap, tap. With the new Shortcuts App in iOS 13 can I create a shortcut to clear history?
Clear History and Website Data for Safari is deeply hidden in Settings. Tap, tap, tap.
With the new Shortcuts App in iOS 13 can I create a shortcut to clear history?
user1785730
(674 rep)
Oct 18, 2019, 08:04 PM
• Last activity: Jun 30, 2025, 06:02 AM
0
votes
1
answers
293
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 any Chrome extensions or 3rd party apps?
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 any Chrome extensions or 3rd party apps?
Eliot Sykes
(101 rep)
Jan 26, 2022, 11:56 AM
• Last activity: Jun 29, 2025, 05:04 AM
0
votes
0
answers
9
views
automate getting ANY artwork for apple music (in 2025)
I have a large apple music library on my pc (around 180 GB). There's a LOT of missing artwork. There's a LOT of music that's not on Apple Music or Spotify in my library - a decent percentage of the music is from Bandcamp or Soundcloud or bootlegs and Music doesn't know how to find those artworks. I...
I have a large apple music library on my pc (around 180 GB). There's a LOT of missing artwork. There's a LOT of music that's not on Apple Music or Spotify in my library - a decent percentage of the music is from Bandcamp or Soundcloud or bootlegs and Music doesn't know how to find those artworks. I want to download any missing artwork, forcefully, so that every single song has an artwork of some kind baked in.
In 2025 surely there's some service, or macos desktop app, or automator script, or AI that that speed up the process of getting missing album artwork on *tens of thousands* of songs.
frumbert
(521 rep)
Jun 27, 2025, 11:10 PM
2
votes
1
answers
167
views
Mail: Select SMTP server automatically on addressee
I have two SMTP servers configured in Mail. One for school, and one for my private email. I would like that Mail automatically picks the one for school if I'm sending an email to someone of my school. This means: any email address of someone of my university ends in `@ugent.be`. So if I write an ema...
I have two SMTP servers configured in Mail. One for school, and one for my private email. I would like that Mail automatically picks the one for school if I'm sending an email to someone of my school. This means: any email address of someone of my university ends in
@ugent.be
. So if I write an email to xyz@ugent.be
, I want mail to pick my UGent SMTP server. In all other cases, I want to use my gmail SMTP server configuration.
Is this possible? If not, are there any applications that support this feature?
(Some people on the university are very strict and won't reply unless you sent the email from your university email address. And I like it separated nicely as well.)
Martijn Courteaux
(1715 rep)
Jun 21, 2015, 01:32 PM
• Last activity: Jun 27, 2025, 05:07 PM
0
votes
2
answers
2073
views
Mute/Unmute Microsoft Teams Microphone Using Mouse Button when Teams is Not Focused
I would like to mute and unmute Microsoft Teams, using a spare mouse button, when the application is not focussed. I am using a Microsoft Sculpt mouse and have a couple spare buttons, particularly the navigate back button, which I would like to reassign to the mute function. The reason I want to do...
I would like to mute and unmute Microsoft Teams, using a spare mouse button, when the application is not focussed. I am using a Microsoft Sculpt mouse and have a couple spare buttons, particularly the navigate back button, which I would like to reassign to the mute function.
The reason I want to do this is because I am typically having a conversation while working in another application and I want to avoid the delay and context switching of having to focus the Teams Application before either clicking on the mute button or using the command+shift+m keyboard shortcut.
It's inconvenient enough that I have considered using something like Touch Portal on my phone to create an easy hot button but that application isn't signed.
Microsoft does not provide Mac drivers for the Sculpt Ergonomic Mouse or Sculpt Ergonomic desktop.
Richard Collette
(109 rep)
Jan 5, 2021, 02:01 PM
• Last activity: Jun 27, 2025, 12:04 PM
0
votes
1
answers
127
views
Is it possible to automate Music.app to play a random album by one specific artist?
I have lots of 'albums' in my library in Apple Music which are by a certain artist. I find these good to work to. They are all relatively similar (dance music mixes.) I would like to make an automation so that I can trigger Music.app to play one of these albums at random. I've been looking at the Ap...
I have lots of 'albums' in my library in Apple Music which are by a certain artist. I find these good to work to. They are all relatively similar (dance music mixes.)
I would like to make an automation so that I can trigger Music.app to play one of these albums at random.
I've been looking at the AppleScript dictionary from Music.app and I can't see any way to
every album by xxx
Is there any way to do this?
Diggory
(808 rep)
May 17, 2024, 07:33 AM
• Last activity: Jun 11, 2025, 11:43 PM
0
votes
1
answers
2509
views
How to Count in an iOS/macOS/watchOS Shortcut?
I haven’t been able to figure out (or find where Apple documents variables) inside a shortcut that works with the three shortcut platforms I wish to use: iOS/macOS/watchOS. There is a repeat_count available in a repeat loop, but it is quite limited. Is a counter function possible in shortcuts?
I haven’t been able to figure out (or find where Apple documents variables) inside a shortcut that works with the three shortcut platforms I wish to use: iOS/macOS/watchOS.
There is a repeat_count available in a repeat loop, but it is quite limited.
Is a counter function possible in shortcuts?
Christopher Allen
(365 rep)
Sep 17, 2023, 06:06 AM
• Last activity: Jun 8, 2025, 12:43 PM
3
votes
1
answers
255
views
Can holding down a mouse button be automated?
I would love to be able to scroll down a very long webpage without having to be near the computer. The webpage has several thousand entries and they only keep loading and displaying as I get near the bottom of the list. Putting a heavy object on the space bar doesn't work because it's a JS frame ins...
I would love to be able to scroll down a very long webpage without having to be near the computer.
The webpage has several thousand entries and they only keep loading and displaying as I get near the bottom of the list.
Putting a heavy object on the space bar doesn't work because it's a JS frame inside a webpage.
The webpage is the list of people I follow on **Instagram**, which is reaching the limit of 7500 and I need to get to the end to quickly unfollow and monitor, as I am sure I never manually followed that many people myself.
A glitch is making the number of accounts I follow stay the same even if I unfollow accounts (a very widespread issue ).
I use a Logitech Trackman mouse on one the 2014 iMac and one of the side buttons is configured to scroll down. However I do not not how to "lock" this button in "pressed" positon (duct tape didn't work).
Another computer I have is a MacBook Pro 2019.
(Another device I would be open to do this on is an iPhone 13 Pro).
I am not finding any ways to do this simply, could this be done with Automator? I opened Automator and looked for scrolling and mouse related functions but couldn’t find anything. I am wondering if I can just record pressing the button down and have the computer repeat it indefinitely or if there is another way to do this.
I am open to system defaults, Terminal or Automator scripts, or free third-party options.
MicroMachine
(4051 rep)
Aug 19, 2024, 02:17 AM
• Last activity: Jun 3, 2025, 06:04 AM
89
votes
8
answers
71160
views
How can I make 'rm' move files to the trash can?
I use the terminal on a daily basis, I will often use `rm DirectoryName`. Sometimes I get a little impatient and do `rm *` without deliberating if it’s safe. As you can imagine, these shenanigans have sometimes come back and hit me in the face. Does anyone know how I create a mapping so `rm whatever...
I use the terminal on a daily basis, I will often use
rm DirectoryName
. Sometimes I get a little impatient and do rm *
without deliberating if it’s safe. As you can imagine, these shenanigans have sometimes come back and hit me in the face. Does anyone know how I create a mapping so rm whatever
moves everything to the trashcan which I then delete manually.
steve
(1393 rep)
Jul 18, 2011, 09:24 AM
• Last activity: Jun 2, 2025, 08:16 PM
3
votes
1
answers
163
views
Bulk copy/export name, Modification & Creation Date from multiple files in a folder
I have a bunch of files inside a folder that I want to get the Date Modified and Created from and copy it into a text document or some kind of tab delimited document. I have no idea how to do this. Opening each one and manually copy/pasting the Creation Date is not an option, as this is hundreds of...
I have a bunch of files inside a folder that I want to get the Date Modified and Created from and copy it into a text document or some kind of tab delimited document. I have no idea how to do this.
Opening each one and manually copy/pasting the Creation Date is not an option, as this is hundreds of files.
Can this operation be automated or scripted?
EDIT: I found that using the following will give me all the various date formats and puts them in a txt file, and all dates preserved:
(stat -f "%N%tAccess:%t%Sa%tModify:%t%Sm%tChange:%t%Sc%tBirth:%t%SB" *)>creation.txt
However, when I then try to copy that information into an excel sheet, even though it keeps the days and times, all the years are changed to 2023.
txt file:
> EXAMPLE.mp3 Access: Dec 9 11:48:21
> 2023 Modify: May 19 21:37:55 2020 Change: Dec 7 19:03:24
> 2023 Birth: Nov 26 06:07:58 2014
Pasted into excel spreadsheet:
> EXAMPLE.mp3 Access: Saturday,
> December 9, 2023 Modify: Friday, May 19, 2023 Change: Thursday,
> December 7, 2023 Birth: Sunday, November 26, 2023
GodzFire
(61 rep)
Dec 4, 2023, 01:29 AM
• Last activity: Jun 2, 2025, 12:03 PM
0
votes
1
answers
55
views
Is there any way to trigger some action or behaviour when a new reminder is created (e.g. by Siri)?
Is there any way to trigger some sort of action, automation, Shortcut, or webhook, *whenever a new Reminder is added*? In particular, I'm looking for a method that doesn't require interacting with the phone. There's quite a few possible workarounds if you're willing to, say, go through a multiple ca...
Is there any way to trigger some sort of action, automation, Shortcut, or webhook, *whenever a new Reminder is added*?
In particular, I'm looking for a method that doesn't require interacting with the phone. There's quite a few possible workarounds if you're willing to, say, go through a multiple call-and-response w/ a Shortcut; or run a syncing automation when you open/close the Reminders app … but none of those are robust enough for my use-case. (I'd like to sync/react to Siri's one-sentence handling of "remember to …" and "remind me to …" on Homepods.)
I'm willing to install third-party apps, and potentially even pay for a service, if it's light enough / cheap enough / flexible enough.
ELLIOTTCABLE
(903 rep)
Apr 29, 2025, 05:33 AM
• Last activity: May 29, 2025, 06:06 AM
Showing page 1 of 20 total questions