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

Add ‘home’ [and maybe ‘open’ as an alias] command #96

Closed
danielbayley opened this issue Jun 28, 2017 · 3 comments
Closed

Add ‘home’ [and maybe ‘open’ as an alias] command #96

danielbayley opened this issue Jun 28, 2017 · 3 comments

Comments

@danielbayley
Copy link
Contributor

Similar to #26, which is being implemented in #55. Maybe this would need to be built on that work actually…

The URI scheme is basically just macappstore://itunes.apple.com/{region}/app/{name}/id{id}.

So usage could be for example mas home 904280696, which would call something like macappstore://itunes.apple.com/{region}/app/things-3/id904280696?mt=12.

@phatblat phatblat modified the milestones: 1.5, 1.6 Dec 27, 2018
@phatblat
Copy link
Member

phatblat commented Dec 29, 2018

@danielbayley I'm looking into implementing this and have a question for you. What do you think about both a home and open command? home would open the page in a browser and open would open the app page in the App Store app.

sellerUrl

Another URL to consider (instead of the MAS Preview URL) is the sellerUrl attribute which appears to be the link behind the "Developer's Website" button.

MAS Preview

screen shot 2018-12-28 at 9 00 15 pm

MAS App

"Website" link to the right of app description:
screen shot 2018-12-28 at 9 05 18 pm

Below reviews and information:
screen shot 2018-12-28 at 9 01 23 pm

However, Things is a bad example because this ends up redirecting users to the Mac App Store.

  1. sellerUrl -> https://culturedcode.com/things/mac/
  2. 302 redirect -> https://culturedcode.com/things/mac/appstore/
  3. HTML "refresh" -> <meta http-equiv="refresh" content="0; url=https://itunes.apple.com/us/app/things-3/id904280696?mt=12&amp;ls=1">
  4. Mac App Store Preview -> https://itunes.apple.com/us/app/things-3/id904280696?mt=12

In the case of Notability this sellerUrl points to http://www.gingerlabs.com which is a great example of an app site.

@danielbayley
Copy link
Contributor Author

@phatblat I think separate home and open commands for those would work well… and maybe sellerUrl could be a third vendor (consistent with Homebrew parlance) command also?

@phatblat
Copy link
Member

This is out now in 1.6.0

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

2 participants