Skip to content

fix: address iTerm by bundle identifier - #1

Merged
philippwallrafen merged 1 commit into
mainfrom
fix/iterm-applescript-bundle-id
Oct 4, 2026
Merged

philippwallrafen merged 1 commit into
mainfrom
fix/iterm-applescript-bundle-id

Conversation

@philippwallrafen

Copy link
Copy Markdown
Collaborator

Finder launches that select iTerm2 currently fail while compiling the runtime AppleScript with Expected end of line but found class name at create window ....

The terminal detector already identifies iTerm by its stable bundle identifier (com.googlecode.iterm2), but the AppleScript addresses the app by the hard-coded name iTerm2. Installations commonly use the bundle name iTerm.app, so osascript can fail to load iTerm's scripting dictionary and then parses window as an unknown class.

Use application id "com.googlecode.iterm2" for both the running-state check and the tell block. This keeps the runtime AppleScript aligned with the existing bundle-ID-based detection and avoids dependence on the app's filename/display name.

@philippwallrafen
philippwallrafen merged commit 427d0d2 into main Oct 4, 2026
2 checks passed
@philippwallrafen
philippwallrafen deleted the fix/iterm-applescript-bundle-id branch October 4, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant