Skip to content

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

@40thieves

Description

@40thieves

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.

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