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

open specific tabs in the Mac App Store #619

Open
rgoldberg opened this issue Oct 28, 2024 · 0 comments
Open

open specific tabs in the Mac App Store #619

rgoldberg opened this issue Oct 28, 2024 · 0 comments

Comments

@rgoldberg
Copy link
Contributor

Each of the left sidebar tabs, and some other standard pages, of the Mac App Store can be opened with URLs like:

# macappstore://?action=<lower case tab name> opens the corresponding tab from the left sidebar
macappstore://?action=discover
macappstore://?action=updates
…

# opens the 'Account Settings' floating page, which is not a tab
macappstore://?action=account

# opens the 'Redeem Gift Card' floating page, which is not a tab
macappstore://?action=redeem

# opens the list of purchased apps that you normally access from the bottom of the left sidebar from the tab labelled with your Apple ID profile avatar & name
macappstore://?action=purchased

Maybe we should allow users to open these tabs via mas open.

To specify an action on the command line, which of the following options do you prefer for the example of updates:

mas open --updates

mas open --action updates
mas open --action-updates
mas open --action:updates
…

I prefer mas open --action updates.

We could either limit the options to the known valid actions (which would require updating the list of actions whenever valid actions are changed or discovered), or we could allow any ad hoc value for action. Any value that is unrecognized just opens the App Store to the most recent tab & outputs the original spurious error dialog. If we allow ad hoc values, I would go for an option syntax that begins with --action, because maybe we might want to add other options to open that could clash with an existing or new action/tab name.

I can easily implement whatever syntax & behavior you prefer.

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

No branches or pull requests

1 participant