r/applescript • u/five-niner • Aug 16 '22
Compiler is auto replacing the name of application Spoiler
When I compile the line 'tell application "xxx" to activate' the script editor auto-replaces the name of the application with something else. How do I get it to stop doing that?
2
Upvotes
2
u/AmplifiedText Aug 16 '22
This issue can be caused if multiple apps have the same bundle name. Try targeting the app using it's bundle id instead.
So instead of
tell application "Finder"usetell application id "com.apple.finder"(notice the "id").The easiest way to find the bundle id of an app is with this AppleScript which lets you choose an app then puts its bundle id into the clipboard:
1
u/DrunkTankGunner Aug 16 '22
Is xxx just one application, or this happens for every application? What does it replace it with? The same thing every time, or something different every time?