Sample Header Ad - 728x90

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
276 views
Shortcut to toggle Bluetooth in Montery via blueutil shell script executed with AppleScript in BetterTouchTool
I have set the Mission Control key in BetterTouchTool to execute an AppleScript and it worked fine before the update from Mojave to Montery which I just did do shell script "../bluetoggle.sh" content of file is #!/bin/sh blueutil -p toggle but can't execute in BetterTouchTool.. it says [![enter imag...
I have set the Mission Control key in BetterTouchTool to execute an AppleScript and it worked fine before the update from Mojave to Montery which I just did do shell script "../bluetoggle.sh" content of file is #!/bin/sh blueutil -p toggle but can't execute in BetterTouchTool.. it says enter image description here Executing file from Terminal works flawless. Executing another script (do shell script "../karaprof.sh") in BetterTouchTool with following content to switch profile in Karabiner also works perfectly #!/bin/sh pro0="e" pro1="g" cli='/Library/Application Support/org.pqrs/Karabiner-Elements/bin/karabiner_cli' name=$("$cli" --show-current-profile-name) if [ "$name" = $pro0 ]; then "$cli" --select-profile $pro1 else "$cli" --select-profile $pro0 fi So my guess is I need to set permission for BetterTouchTool to execute scripts in Terminal, but how? I can't figure
needlol (134 rep)
Oct 19, 2022, 07:57 AM • Last activity: Aug 5, 2025, 10:01 AM
1 votes
1 answers
664 views
macOS Terminal Command to Disable Desktop Widgets?
Looking to find a way to use a terminal command to disable/enable desktop widgets in macOS Sonoma. The closest I have been able to find so far is a [script][1] that does this. However, I would like to do this from terminal, or from another app (such as BetterTouchTool) without running the script if...
Looking to find a way to use a terminal command to disable/enable desktop widgets in macOS Sonoma. The closest I have been able to find so far is a script that does this. However, I would like to do this from terminal, or from another app (such as BetterTouchTool) without running the script if possible. Thanks!
XRegex (11 rep)
Nov 3, 2023, 12:32 AM • Last activity: Aug 5, 2025, 06:34 AM
0 votes
1 answers
139 views
How do I modify the folder screenshots are saved to in this AppleScript in Automator?
This apple script seems to be doing exactly what I wanted it to do, (save screenshots both to a file location and to the clipboard) but I can't for the life of me figure out how to change this script to point at a different folder (currently it is saving to the Desktop) I'm not very familiar with Au...
This apple script seems to be doing exactly what I wanted it to do, (save screenshots both to a file location and to the clipboard) but I can't for the life of me figure out how to change this script to point at a different folder (currently it is saving to the Desktop) I'm not very familiar with Automator or AppleScript and haven't been able to pin down where that is being set so that I can change it This line looks relevant: set thePathFilename to POSIX path of (path to desktop folder as string) & theFilename And this is the full script on run {input, parameters} -- # Screen Shot to Clipboard and File -- # Clear the clipboard so the 'repeat until isReady ...' loop works properly. set the clipboard to "" -- # Copy picture of selected area to the clipboard, press: ⌃⇧⌘4 -- # Note that on my system I need to keystroke '$' instead of '4'. -- # I assume this is because the 'shift' key is being pressed. tell application "System Events" keystroke "$" using {control down, shift down, command down} end tell -- # Wait while user makes the selection and releases the mouse or times out. -- # Note that the time out also acts as an escape key press of sorts. In other -- # words, if the user actually presses the escape key it has no effect on this -- # script like it would if pressing the normal shortcut outside of the script. -- # -- # As coded, the time out is 5 seconds. Adjust 'or i is greater than 10' and or -- # 'delay 0.5' as appropriate for your needs to set a different length time out. -- # This means, as is, you have 5 seconds to select the area of the screen you -- # want to capture and let go of the mouse button, otherwise it times out. set i to 0 set isReady to false repeat until isReady or i is greater than 10 delay 0.5 set i to i + 1 set cbInfo to (clipboard info) as string if cbInfo contains "class PNGf" then set isReady to true end if end repeat if not isReady then -- # User either pressed the Esc key or timed out waiting. return -- # Exit the script without further processing. end if -- # Build out the screen shot path filename so its convention is of -- # the default behavior when saving a screen shot to the Desktop. set theDateTimeNow to (do shell script "date \"+%Y-%m-%d at %l.%M.%S %p\"") set theFilename to "Screen Shot " & theDateTimeNow & ".png" set thePathFilename to POSIX path of (path to desktop folder as string) & theFilename -- # Retrieve the PNG data from the clipboard and write it to a disk file. set pngData to the clipboard as «class PNGf» delay 0.5 try set fileNumber to open for access thePathFilename with write permission write pngData to fileNumber close access fileNumber on error eStr number eNum try close access fileNumber end try activate display dialog eStr & " number " & eNum buttons {"OK"} default button 1 with title "File I/O Error..." with icon caution end try -- # Convert the POSIX path filename to an alias. set thePathFilename to POSIX file thePathFilename as alias -- # Hide the file extension as is the default. tell application "Finder" try set extension hidden of thePathFilename to true end try end tell Which I found here: Copy screenshot to clipboard in addition to saving the file
Benjamski (1 rep)
Nov 17, 2022, 05:31 PM • Last activity: Aug 5, 2025, 01:07 AM
0 votes
0 answers
17 views
Open app two spaces to the left of Desktop using Automator
Would like to open an app (say Apple Music) two spaces to the left of Desktop using Automator Apple Mail already reliably opens one space to the left of Desktop (I'm not sure how but it does). I think its possible with an Apple Script but I'm not sure of the syntax.
Would like to open an app (say Apple Music) two spaces to the left of Desktop using Automator Apple Mail already reliably opens one space to the left of Desktop (I'm not sure how but it does). I think its possible with an Apple Script but I'm not sure of the syntax.
pmagunia (1171 rep)
Aug 3, 2025, 08:59 PM
1 votes
1 answers
260 views
Script to group and sort folder contents
I'm trying to make a button on finders toolbar that will group the open folders items by kind and sort by name. I found a script online that ive modified that appears to do this, t stops after changing to icon view and doesnt appear to do anything else. tell application "Finder" activate tell the fr...
I'm trying to make a button on finders toolbar that will group the open folders items by kind and sort by name. I found a script online that ive modified that appears to do this, t stops after changing to icon view and doesnt appear to do anything else. tell application "Finder" activate tell the front Finder window set the current view to icon view set the toolbar visible to true end tell tell icon view options of front Finder window set properties to {sort column:name column, sort direction:normal, text size:12, uses relative dates:true, calculates folder sizes:true, shows icon preview:true} end tell tell application "System Events" to tell process "Finder" tell menu item "Show View Options" of menu of menu bar item "View" of menu bar 1 to if exists then click tell checkbox "Always open in icon view" of window 1 to if (exists) and value is 0 then click tell checkbox "Always open in list view" of window 1 to if (exists) and value is 1 then click tell checkbox "Date Modified" of group 1 of window 1 to if (exists) and value is 1 then click tell checkbox "Date Created" of group 1 of window 1 to if (exists) and value is 1 then click tell checkbox "Size" of group 1 of window 1 to if (exists) and value is 1 then click tell checkbox "Kind" of group 1 of window 1 to if (exists) and value is 0 then click tell checkbox "Version" of group 1 of window 1 to if v(exists) and alue is 1 then click tell checkbox "Comments" of group 1 of window 1 to if (exists) and value is 1 then click tell checkbox "Label" of group 1 of window 1 to if (exists) and value is 1 then click end tell end tell
SUBZ3RO (127 rep)
Nov 17, 2022, 05:03 AM • Last activity: Aug 3, 2025, 06:04 PM
0 votes
1 answers
46 views
Automating blocking a contact and deleting a message in Mail app
If I select an Apple Mail Message and right click it, a pop up appears with several choices including **Block Contact** and **Delete**. I'm trying to create a little Automator and/or AppleScript routine that will do both to a selected message, but I don't know where to find the AppleScript commands...
If I select an Apple Mail Message and right click it, a pop up appears with several choices including **Block Contact** and **Delete**. I'm trying to create a little Automator and/or AppleScript routine that will do both to a selected message, but I don't know where to find the AppleScript commands to tell Mail what to do other than **tell** *application* "Mail".
miamistax (1 rep)
Mar 2, 2025, 12:28 AM • Last activity: Aug 2, 2025, 06:05 AM
0 votes
1 answers
275 views
How to send an image to the back (layer) using Applescript in Keynote?
I'm inserting a new image into an existing Keynote document. When the image is inserted, it is on the front layer covering some other objects. I would like to send it to the back layer. Is there a built-in Applescript command to do that? ```applescript tell application "Keynote" activate tell (open...
I'm inserting a new image into an existing Keynote document. When the image is inserted, it is on the front layer covering some other objects. I would like to send it to the back layer. Is there a built-in Applescript command to do that?
tell application "Keynote"
	activate
	tell (open result_keynote)
		tell third slide
			tell (make new image with properties {file:screenshot_file})
				set height to screenshot_height
				set width to screenshot_width
				set position to screenshot_position
                -- set layer position here
			end tell
		end tell
	end tell
end tell
Martin Tarjányi (101 rep)
Nov 14, 2022, 01:27 PM • Last activity: Aug 1, 2025, 02:08 AM
15 votes
10 answers
12211 views
Fixing "not allowed to send keystrokes" error in Automator workflow
MacOS Ventura 13.3 but I have had some form of this problem on and off for a couple years. I have a simple workflow that types the current date in ISO 8601 format, it is a single AppleScript action like `tell application "System Events"...keystroke $DATE` essentially. It breaks, often, with an error...
MacOS Ventura 13.3 but I have had some form of this problem on and off for a couple years. I have a simple workflow that types the current date in ISO 8601 format, it is a single AppleScript action like tell application "System Events"...keystroke $DATE essentially. It breaks, often, with an error saying the workflow is "unable to send keystrokes". Perhaps something resets on OS upgrades, I'm not sure, but I wish I better understood the steps necessary to fix it. I gave Automator, AppleScript Utility, and the workflow itself the Accessibility permission "allow the applications below to control your computer"—as [this answer says](https://apple.stackexchange.com/a/401262/67860)—but that alone does not seem sufficient (but might be necessary?). I don't see any relevant keyboard settings. I suspect some or all of these apps also need to be on the Settings > Privacy & Security > Automation list...except there is no way to add (or remove, for that matter) apps to that list. There is no "plus" button and dragging an app onto the list does nothing. I've read here and in Apple's forums some suggestions that an app is supposed to request this permission the first time it needs it and to add an app to the list you should reinstall it. A fine solution...but you cannot reinstall Automator _or_ AppleScript Utility, they cannot be deleted. The workflow itself also does not trigger a prompt for this permission, as far as I can tell, and I doubt giving it access would be enough. **How is one supposed to add applications to the Automation list?** Is there a CLI to this list?
phette23 (331 rep)
Mar 29, 2023, 04:34 PM • Last activity: Jul 31, 2025, 04:53 AM
0 votes
3 answers
526 views
Keyboard shortcut (or automator app) to open currently open finder window?
I have a Stream Deck and I am hoping I can make a button I can press that will activate finder and move me to a currently open finder window - just as if I clicked on Finder on the Dock. (I can do this for every other app by just launching the app) I figured out how to "launch" finder by launching t...
I have a Stream Deck and I am hoping I can make a button I can press that will activate finder and move me to a currently open finder window - just as if I clicked on Finder on the Dock. (I can do this for every other app by just launching the app) I figured out how to "launch" finder by launching the Finder app tucked away in the System folder, but it doesn't quite do what I want (see below.) I've gotten very close from these other articles: https://apple.stackexchange.com/questions/114933/is-there-a-keyboard-shortcut-to-bring-up-finder https://apple.stackexchange.com/questions/322902/how-to-automate-right-clicking-finders-dock-icon-and-choosing-action But they all do the same thing as > open -a Finder in terminal——they make Finder active, but *if I have a finder window open on another monitor in full screen* it does not move to it, it only shows Finder in the menu bar. I can't seem to find a way emulate the exact action of clicking the icon in the dock, which *does indeed* jump to the correct "spaces desktop" (full screen Finder window) on another monitor, whether via keyboard shortcut, shortcuts app, stream deck's app, automator, AppleScript, or terminal command - however I am by no means an expert in automator, Shortcuts, AppleScript, or terminal. I tried "watch me do" in automator, and it'd work if I didn't hide my dock, but I do. :/
Dusey (21 rep)
Sep 12, 2022, 09:54 PM • Last activity: Jul 29, 2025, 02:10 PM
1 votes
0 answers
17 views
How to get/display real volume level of external monitor (in SketchyBar, shell script) on macOS?
I'm trying to display the volume icon and percentage of my external monitor (Dell U4025QW) audio output in SketchyBar on my MacBook Pro (M1). The goal is to show accurate volume and mute status in the bar. What I want to achieve: - Show current volume % and mute icon for my external monitor in Sketc...
I'm trying to display the volume icon and percentage of my external monitor (Dell U4025QW) audio output in SketchyBar on my MacBook Pro (M1). The goal is to show accurate volume and mute status in the bar. What I want to achieve: - Show current volume % and mute icon for my external monitor in SketchyBar. - Have volume update live as it changes. - Fall back gracefully when using the built-in display (i.e. display volume of built-in speakers). I'm using the following snippet in my SketchyBar plugin:
VOLUME=$(osascript -e "output volume of (get volume settings)")
MUTED=$(osascript -e "output muted of (get volume settings)")

source "$CONFIG_DIR/env.sh"
source "$CONFIG_DIR/icons.sh"

if [ "$MUTED" != "false" ]; then
    ICON="${ICONS_VOLUME}"
    VOLUME=0
else
    case ${VOLUME} in
        100) ICON="${ICONS_VOLUME}" ;;
        [5-9]*) ICON="${ICONS_VOLUME}" ;;
        [0-9]*) ICON="${ICONS_VOLUME}" ;;
        *) ICON="${ICONS_VOLUME}" ;;
    esac
fi

sketchybar -m \
    --set "$NAME" icon=$ICON \
    --set "$NAME" label="$VOLUME%"
When using the built-in MacBook Pro display, this works perfectly. When using the external Dell monitor, osascript always returns missing value for volume or 0, despite the volume HUD showing the correct volume and the keyboard volume keys working. From research and testing, it seems that: - External monitors using Thunderbolt/USB audio output often do not expose their volume controls via macOS scripting APIs (like AppleScript). - macOS seems to "fake" or cache the volume changes for these devices in the UI but does not expose the actual volume programmatically. - The mute status is exposed and scriptable, but volume percentage is not. Is there any known way, tool, or API to programmatically get the real volume level of an external Thunderbolt or USB audio device (such as a monitor) on macOS?
Jusi (161 rep)
Jul 26, 2025, 01:13 PM • Last activity: Jul 26, 2025, 05:49 PM
0 votes
1 answers
237 views
Siri Shortcuts error - I'm trying to run an Applescript that uses "System Events"
I'm trying to run an Applescript that centers the window with focus. The shortcut works well, but when I try to use voice command with Siri a "System Event" error occurs, apparently Siri does not have access authorization. Someone has already seen this problem. [![Screenshot showing the error.][1]][...
I'm trying to run an Applescript that centers the window with focus. The shortcut works well, but when I try to use voice command with Siri a "System Event" error occurs, apparently Siri does not have access authorization. Someone has already seen this problem. Screenshot showing the error. Translation of the error from Portuguese to English: I'm sorry, there was a problem. Shortcuts say: "System Events got a Error: Shortcuts is an assistive access no Allowed."
Luiz Siqueira Neto (31 rep)
Nov 9, 2021, 01:45 PM • Last activity: Jul 25, 2025, 10:07 PM
6 votes
4 answers
3660 views
How can I see how long my computer has been active (as in not idle)
I've seen a variety of solutions to check how long my machine has been idle, and I know I can check how long since last reboot with `uptime`, but I'm curious if there's a way to see how long since my computer was last idle. Maybe since the last time the power save settings kicked in, or last time si...
I've seen a variety of solutions to check how long my machine has been idle, and I know I can check how long since last reboot with uptime, but I'm curious if there's a way to see how long since my computer was last idle. Maybe since the last time the power save settings kicked in, or last time since the screensaver turned on / monitor turned off, etc? I'm fine using an applescript or shell command to determine this, if those are the best solutions.
hookedonwinter (161 rep)
Jul 18, 2012, 02:52 PM • Last activity: Jul 24, 2025, 01:06 PM
4 votes
1 answers
2487 views
Use Google speech to text instead of Apple's
Google currently has much higher quality speech transcription. You can try it easily by going to [doc.new][1] and pressing `Cmd-Shift-S` and talking. Compare to using the built in system from Apple (pressing `Fn` twice). Ideally there would be a good way to do this, but if that doesn't work, hacky i...
Google currently has much higher quality speech transcription. You can try it easily by going to doc.new and pressing Cmd-Shift-S and talking. Compare to using the built in system from Apple (pressing Fn twice). Ideally there would be a good way to do this, but if that doesn't work, hacky is the next best thing. An AppleScript or Hammerspoon script that instantly pops up a Google Docs window, and then inserts the result is better than nothing. Given that things like this https://dictation.io/speech exist, or this jsfiddle it seems like it should be possible to at least have an extension that can interface with other applications to enable dictation input, but I haven't found any yet. Is there any way to somehow use this instead of the built in transcription, e.g. with a keyboard shortcut?
avv (282 rep)
Jun 13, 2020, 01:30 AM • Last activity: Jul 23, 2025, 11:01 PM
22 votes
13 answers
38381 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) [![enter image description her...
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) enter image description here
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
1 answers
197 views
Can an Automator workflow generate an Application?
I'm building a "Wizard" of sorts that uses Automator and some Appliescript, and at the end I would like it to generate an "Automator Application" that does things when launched, that are based on the inputs from the wizard. Is this even possible? Can one Automator workflow, actually generate an appl...
I'm building a "Wizard" of sorts that uses Automator and some Appliescript, and at the end I would like it to generate an "Automator Application" that does things when launched, that are based on the inputs from the wizard. Is this even possible? Can one Automator workflow, actually generate an application from the results? I know software can create software, but is this possible within Automator's capabilities? **EDIT: As noted in the comments below the post, osacompile seems like it might get me where I want to go, but now I have a new problem with that.** Here's a screenshot of my automator steps: Automator routine Here's the code of the erroring module (Send iMessage): on run {input, parameters} set sms_address to item 1 of input set email_address to item 2 of input set sms_content to item 3 of input set email_subject to item 4 of input set email_body to item 5 of input set savePath to (path to desktop as text) & "test.scpt" set code to "osacompile -e 'tell application \"Messages\"' -e ' set imessageservice to 1st service whose service type = iMessage' -e ' set iMessageBuddy to buddy " & sms_address & " of imessageservice' -e ' send " & sms_content & " to iMessageBuddy' -e ' end tell' -o " & quoted form of POSIX path of savePath do shell script code return input end run Note that the lines are broken up that way because it was the only approach I could find where I didn't get any errors just because of adding line breaks (I can put this code all on one line and get the identical error) Here's the error I receive: osacompile error message I haven't been able to figure out what the problem is here but it seems like I'm not passing the variables in the way a bash script expects. Have tried a bunch of other approaches and nothing has worked any better, but this is the one that seems the most sensible to me, knowing how I would normally pass variables into a script. **EDIT 2: To simplify further, here is the standalone code I'm current debugging in AppleScript Editor and without any line breaks to not confuse the issue:** set sms_address to "person@gmail.com" set sms_content to "sms content" set savePath to (path to desktop as text) & "test.scpt" set code to "osacompile -e 'tell application \"Messages\"' -e ' set imessageservice to 1st service whose service type = iMessage' -e 'set iMessageBuddy to buddy " & sms_address & " of imessageservice' -e 'send " & sms_content & " to iMessageBuddy' -e 'end tell' -o " & quoted form of POSIX path of savePath do shell script code
JVC (2951 rep)
Jul 14, 2020, 11:41 PM • Last activity: Jul 21, 2025, 12:00 PM
1 votes
1 answers
133 views
My automated "click" Applescript has just stopped working
Right up until a week ago, my simple Applescript that had to simply click on a specific coordinate on screen just stopped working. Here is the Applescript: tell application "System Events" click at {693, 619} end tell And I automate it's trigger at a specific time of day with the help of osascript (...
Right up until a week ago, my simple Applescript that had to simply click on a specific coordinate on screen just stopped working. Here is the Applescript: tell application "System Events" click at {693, 619} end tell And I automate it's trigger at a specific time of day with the help of osascript (recommended for Applescripts) using the following plist file. Label com.mouseclick.plist ProgramArguments /usr/bin/osascript /Users/mugenvoid/Downloads/mouseclick.scpt StartCalendarInterval Hour 6 Minute 10 I've added this plist file to the LaunchDaemons folder of my core Library folder. This will ensure it's a global daemon, so it should have the highest chance of always triggering correctly. Beyond that, I've given all the relevant access and permissions (Accessibility, Automation, disk access etc) for this setup to work correctly. To ensure the job is loaded correctly and functional, I use an application called Launchcontrol 2. Over there, it is always loaded in correctly and the status shows as OK. Despite all these checks and balances, the script just doesn't click on the specific coordinate no more. It was always working perfectly fine up until a week ago and I haven't made any changes whatsoever to this whole setup. The Launchcontrol 2 application has some launchd(8) logs of the job trigger event at the designated time that I would like to share. Perhaps it will help with the debugging. Here it is: 2024-10-22 06:10:03.808584 internal event: WILL_SPAWN, code = 0 2024-10-22 06:10:03.808688 service state: spawn scheduled 2024-10-22 06:10:03.808692 service state: spawning 2024-10-22 06:10:03.808727 launching: xpc event 2024-10-22 06:10:03.810543 xpcproxy spawned with pid 28683 2024-10-22 06:10:03.810593 internal event: SPAWNED, code = 0 2024-10-22 06:10:03.810599 service state: xpcproxy 2024-10-22 06:10:03.810718 internal event: SOURCE_ATTACH, code = 0 2024-10-22 06:10:03.827675 service state: running 2024-10-22 06:10:03.827703 internal event: INIT, code = 0 2024-10-22 06:10:03.827709 job state = running 2024-10-22 06:10:03.827726 Successfully spawned osascript because xpc event 2024-10-22 06:10:10.104597 exited due to exit(0), ran for 6293ms 2024-10-22 06:10:10.104617 service state: exited 2024-10-22 06:10:10.104630 internal event: EXITED, code = 0 2024-10-22 06:10:10.104633 job state = exited 2024-10-22 06:10:10.104665 service inactive: com.mouseclick.plist 2024-10-22 06:10:10.104681 service state: not running To the best of my knowledge, I've checked everything possible from my end and am still faced with this roadblock. I'd really appreciate your support here! Condensed view of what I've tried so far: - Under the Privacy & Security settings section, I enabled Accessibility for osascript, launchcontrol and the script editors I've used for the Applescript and the plist file. See image attached below. Accessibility Settings - Under the Privacy & Security settings section, under Automation, the requisite access has been given to Osascript and relevant applications. See image attached below. Automation Settings - Ensured the job is loaded correctly with no errors and that it is loaded in as a global daemon (by adding the plist file to the LaunchDaemons foler in my core Library folder). See image attached below. Launchcontrol 2 job view - Verified the script file and plist file and found no syntax errors (code used for both has been shared above). - Ran the script file from the Script Editor itself to confirm if it's working fine and got the following results. See image attached below. Script run results
Anshu Chang (21 rep)
Oct 22, 2024, 07:41 AM • Last activity: Jul 21, 2025, 03:02 AM
0 votes
1 answers
208 views
How to export edited pictures from 'Photos" app with Applescript while preserving the image metadata?
I have written long ago an Applescript script that exports pictures selected in Apple Photos app with various basic options, such as adding borders, adjusting size, tuning for Web publishing, etc, and the addition of metadata copyright info using an exiftool command thru a shell script. But I cannot...
I have written long ago an Applescript script that exports pictures selected in Apple Photos app with various basic options, such as adding borders, adjusting size, tuning for Web publishing, etc, and the addition of metadata copyright info using an exiftool command thru a shell script. But I cannot figure how to preserve the original files metadata in the exported images, and this turns out to become a critical need now in my current activities. I am considering locating the original file in the "Masters" Photo Library folder, extracting and saving the metadata with an exiftool command, and applying the same metadata to the exported files, but the simple task of obtaining the POSIX path of the original file proves to be challenging (I am 72 years old) and the other tasks challenging as well. Anyone here with better ideas ?
Yves (205 rep)
Feb 16, 2024, 12:11 PM • Last activity: Jul 17, 2025, 09:02 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
Showing page 1 of 20 total questions