Skip to content

AppName with a dot could not be found #335

Description

@ishiharas
  • 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions