Post

Replies

Boosts

Views

Activity

Reply to Where to find some commonly used AppleScript examples to automate basic MacOS tasks?
Here are some AppleScript-oriented websites and technotes (mostly quite old): https://www.macscripter.net http://www.macosxautomation.com https://dougscripts.com/itunes/index.php https://computers.tutsplus.com/tutorials/the-ultimate-beginners-guide-to-applescript--mac-3436 https://developer.apple.com/library/archive/technotes/tn2002/tn2106.html https://developer.apple.com/library/archive/technotes/tn2065/_index.html https://developer.apple.com/library/archive/technotes/tn1164/_index.html
Feb ’23
Reply to How to open Software Update in System Settings on Ventura from applescript?
System Settings is the name of the application that used to be known as System Preferences. In macOS Ventura, you open System Settings by choosing the "System Settings..."menu item near the top of the Apple menu, at the left end of the standard menu bar. When you oopen System Settings that way, its window always has a sidebar containing the items that used to be shown as preference pane icons. They are listed, not grouped by named categories as they used to be. And some things that I think used to be shown as preference panes now appear instead as items in the main window when General is selected in the sidebar.
Oct ’22
Reply to How to open Software Update in System Settings on Ventura from applescript?
I've been working on this. System Settings on Ventura is not scriptable, at least for now, so you must use GUI Scripting. Here is what I have working so far in my Project: activate application "System Settings" tell application "System Events" tell process "System Settings" delay 1 tell splitter group 1 of group 1 of window 1 tell group 1 -- sidebar tell outline 1 of scroll area 1 set rowCount to count of rows repeat with rowNum from 2 to rowCount - 1 if (exists static text 1 of UI element 1 of row rowNum) then if value of static text 1 of UI element 1 of row rowNum is "General" then select row rowNum exit repeat end if end if end repeat end tell end tell delay 1 tell group 2 -- window pane tell group 1 of scroll area 1 of group 1 -- top click button 2 end tell end tell end tell end tell end tell
Oct ’22
Reply to Accessibility inspector not working
Accessibility Inspector 5.0 (112) is working fine in Xcode 13.3.1 running on my M1 iMac under macOS 12.3.1. I do have to turn it on frequently by clicking its activation button, and I had to set it up to show advanced element values the first time. My similar UI Browser application is still working fine, too. https://pfiddlesoft.com/uibrowser
Apr ’22
Reply to Direct access not available
The Accessiblity authorization in the Privacy tab of the Security & Privacy pane of System Preferences thinks that an AppleScript applet has turned into a new and different application every time you edit, recompile and re-save the applet. Your Mac therefore thinks the revised applet is unauthorized and refuses to run it. You can quickly and easily solve this problem by unchecking and re-checking the applet's checkbox in the Accessibility authorization. The applet will then run correctly when you double-click it. Here's a simple script to test this: activate application "Finder" tell application "System Events" tell process "Finder" click menu item 1 of menu 1 of menu bar item "Apple" of menu bar 1 end tell end tell
Jan ’22