ANNOUNCE: AppleScript Practical technics (1) GUI Scripting

I wrote new ebook about GUI Scripting. PDF 283 pages (Written in Japanese).

■ What is GUI Scripting (UI Element Scripting)?

Not all functions are posted in the AS glossary ①
Not all functions are posted in the AS glossary ②
GUI Scripting that calls non -compatible functions
What is GUI Scripting?
GUI Scripting is operated by System Events
Operation application ①
Applications to be operated ②

■ Operate AppleScript non -compatible functions

Call a function that cannot be used from AS in Keynote
It is indispensable to check the behavior of the GUI application
Examples of menu items operation
List of execution results ①
List of execution results ②

■ Allow GUI Scripting execution

GUI Scripting is invalid in default state
Register AppleScript execution application
When set, GUI Scripting enables enabled
Script menu is also required
Material: AppleScript execution environment on macOS ①
Material: AppleScript execution environment on macOS ②

■ How to find a reference to GUI parts

Menu item: Tree with the menu at the top
Objects on the window: Window is standard
How to seek simple GUI parts

■ Characteristic operation you want to do with GUI Scripting

GUI Scripting effective check
Acquisition of attribute values ​​(Properties)
Acquisition of attribute values ​​(AX-ATTRIBUTES)
Click on GUI parts
Click on the specified coordinates
Reference material: GUI Scripting coordinate system
Pop -up menu item selection
Key input operation
Item selection
Display of context menu
Scroll operation
Save/write file
Click on the modal dialog that you have generated
Drag & drop operation
Japanese IM character input mode acquisition/setting

■ Forced mouse cursor forced and forced click

Need to move the mouse cursor
Forced mouse cursor forced and click

■ GUI Scripting commentary in the actual battle level AppleScript

Connect PDF output of PAGES, etc. below specified folders
Actual main Script part
The relevant part of GeneratePdflib
The point that this program was affected by the environment
Reference Materials: Display/Hide Switching of Desktop

■ How to use Accessibility Inspector

GUI parts search tools in Xcode
Screen configuration of Accessibility Inspector ①
Screen configuration of Accessibility Inspector ②
Select the target from the process list and inspection
Screen display during tracking GUI parts of the specified process
Screen display during tracking pose for GUI parts

■ Prepare for OS and application updates

GUI configuration changes for each OS update
Separate only the GUI Scripting processing part into a subroutine
Separate the GUI Scripting processing part into the library
For a structure that is less likely to be affected by OS updates

■ What is the reliability of GUI Scripting?

What is the reliability of GUI Scripting?
General reliability measurement method
Tendency and countermeasures based on experience
Problems facing GUI Scripting and its solutions
The following processing is performed before the specified processing is over
Name collision if there is a process with the same name ①
Name collision if there is a process with the same name ②

■ GUI Scripting sample collection

Obtain all menu titles for the specified application
Get the selected text
Rewrite the selected text
Get a reference to the front window of Safari
Get the application name to which you belong from reference to GUI parts
Get information on the icon registered in Dock
Write the text you are selected in Keynote vertically
Write the front window vertically in coteditor

■ GUI Scripting Material Collection

■ AppleScript material collection

MacOS version and AppleScript trends
MacOS and AppleScript element technology history
AppleScript commentary for each MacOS
History of Applescript auxiliary tools in MacOS
System Events AppleScript Listing Dictionary Change
AppleScript Each runtime environment information
AppleScript Reservation List
AppleScript error code

v1.1 update. (282 pages → 315 pages)

update1: macOS 13 update
update 2:UI Browser information (how to use it)
update 3: Control “System Settings”…sample scripts to display each panes
update 4:Sample how-to write GUI scripting AppleScript with low-compatible macOS apps