Fix Terminal.app scanning on macOS 15 Sequoia#3
Open
davidacimovic wants to merge 1 commit intonjerschow:mainfrom
Open
Fix Terminal.app scanning on macOS 15 Sequoia#3davidacimovic wants to merge 1 commit intonjerschow:mainfrom
davidacimovic wants to merge 1 commit intonjerschow:mainfrom
Conversation
On macOS 15, Terminal.app's AppleScript bridge breaks when iterating windows with `repeat with w in windows` — accessing `id of w` or `name of w` throws error -1700. This causes the app to show "No terminals open" despite Terminal.app running with open windows. Fix by using bulk property fetch (`name of every window`) combined with index-based access (`window i`, `tab j of window i`), which works correctly on both macOS 14 and 15. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
repeat with w in windowsand accessingid of wthrows error -1700 ("Can't make id of window into type text")name of every window) + index-based access (tab j of window i) which works on both macOS 14 and 15Details
The root cause is a macOS 15 regression in Terminal.app's AppleEvent handling. Window iterators (
repeat with w in windows) produce references that lose access to properties likeidandname. However:name of every windowstill workwindow istill workstab j of window istill worksTest plan
🤖 Generated with Claude Code