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

AppName with a dot could not be found #335

Open
ishiharas opened this issue May 5, 2023 · 1 comment
Open

AppName with a dot could not be found #335

ishiharas opened this issue May 5, 2023 · 1 comment

Comments

@ishiharas
Copy link

ishiharas commented May 5, 2023

  • Version: 3.0.0
  • macOS: 13.3.1

Hello,
right now I'm trying some of the basic examples.

I have written the following short snippets:

Key.on('z', ['control', 'shift'], () => {
	const test = App.launch('Whatsapp', {focus: true});

	if (test) {
		test.windows().map((cb) =>
			cb.setTopLeft({
				x: 0,
				y: 0,
			}),
		);
	}
})

Key.on('l', ['control', 'shift'], () => {
	const focused = App.focused();
	console.log(focused.name());
})

And launching apps like "Whatsapp" or "Slack" works like a charm.
But another app named "Rocket.Chat" won't start at all.

Terminal logs give the following output:
Phoenix: Error: Could not find an app with the name “Rocket.Chat”.

Trying the second shortcut over the focused window prints the following output:
Phoenix: Rocket.Chat

That's why I think, that names with dots are not supported.
Is there a way to launch apps with their PID?

By the way: Thanks for maintaining this framework.

@kasper
Copy link
Owner

kasper commented May 19, 2023

@ishiharas Interesting, thanks for the report and sorry for the trouble! I will need to look into this. Thanks for the kind words. ☺️

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

No branches or pull requests

2 participants