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

[Arc] Commands that accept tab ids don't work with Arc #94

Open
40thieves opened this issue Jul 24, 2024 · 0 comments
Open

[Arc] Commands that accept tab ids don't work with Arc #94

40thieves opened this issue Jul 24, 2024 · 0 comments

Comments

@40thieves
Copy link

40thieves commented Jul 24, 2024

Firstly, thanks for maintaining this! It's a super useful tool :)

When using arc-cli, it appears that commands that accept a tab parameter always fail. Here's an example demonstrating this, if I run arc-cli info it works ok, but if I use the tab id with the -t flag then it silently fails.

$ arc-cli info
Id: 70C3FFA7-ADA8-4BED-9C3B-413DCFF409B8
Window id: B9FEDBCB-A1E3-4048-B88F-76525312F6C4
Title: prasmussen/chrome-cli: Control Google Chrome from the command line
Url: https://github.com/prasmussen/chrome-cli
Loading: No
$ arc-cli info -t "70C3FFA7-ADA8-4BED-9C3B-413DCFF409B8"
$

I've tested this with at least arc-cli execute too.

This is pure speculation, as I'm definitely not an Objective-C dev, but I believe the culprit is this line, as it appears that Arc tab ids are uuids, not integers that the line seems to suggest they are. From some brief testing, it looks like Chrome tab ids are indeed always integers.

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

1 participant