Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use app bundle ID to identify macOS browsers #118

Merged
merged 2 commits into from
Jun 16, 2021

Conversation

wrgoto
Copy link
Contributor

@wrgoto wrgoto commented Jun 15, 2021

We're currently using AppleScript to get the URL from apps by referencing the app name in the script. I've noticed that changing the name of the browser causes this functionality to break. As an example, if I rename 'Google Chrome' to just 'Chrome' on my mac, it'll break active-win's ability to grab the URL from Chrome.

This PR uses the application bundle ids to identify the browsers capable of providing URL. It also adds Opera Beta and Developer since their names conflicted with their production release.

Fixes #117

@sindresorhus sindresorhus changed the title Use application bundle id to identify macOS browsers Use app bundle ID to identify macOS browsers Jun 16, 2021
@sindresorhus sindresorhus merged commit efcffef into sindresorhus:main Jun 16, 2021
@wrgoto wrgoto deleted the bundle-ids branch August 13, 2021 20:40
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.

Using app name for AppleScript url access breaks when users change the name of their browser app
2 participants