ANNOUNCE: AppleScript Basic Technics (32) Control multiple apps

I wrote a new e-book about AppleScript. PDF 39 pages (In Japanese).

https://piyomarusoft.booth.pm/items/6309423

It is “common sense” to operate and process multiple applications with one AppleScript, but it was pointed out that the style of operating and processing multiple applications with AppleScript is rather unique.

Working with multiple apps is not a special story, and it is not that difficult. It’s something you do on a daily basis, so if you understand the principles, you’ll be able to write flexible and versatile scripts to help you “actively make your job easier.”

Table Of Contents:

First: Make sure to turn off Stage Manager first on macOS 13 or later
macOS 13.x
macOS 14.x
macOS 15.x
Other features that you might want to turn off

Multi-app control: Major 3 patterns

Multi-app controls
What does each app do in terms of automated process flows?
Multiple App Operation Pattern (1) Command Invocation
Multiple App Operation Pattern (2) File I/O
Multiple App Operation Pattern (3) Processing Selected Locations

Specific examples of multi-app control handling

Each app can’t understand the objects of other apps
To understand objects in other apps
Let’s take a closer look at the attribute values of the object
Reproduce text on Keynote on Pages

Most processing cannot be achieved by copying and pasting by GUI Scripting

Copy and paste behavior in GUI Scripting?
Reflecting the text color of objects across different apps

Multi-app controls: specific examples

Use the functions of App B based on the data of App A
Example of operation of multiple apps and functions