Argument to open URL/File
Deltachaos opened this issue · 12 comments
I like the app, if it would have a option to start with a specific URL/File it would be perfect.
Um I think you want to alter the home page to a specific URL ?
Not the homepage. I would like to start helium with command line arguments that open a specific page and to set opacity, mouse over and window position from command line
In Helium 3 it supports a dock menu to achieve this and goal to support login item, as well as open via Finder. Command line ?
By command line i mean from the Terminal like this:
/path/to/helium "https://netflix.com" --size 100x600 --position 100:500
Helium is not a command line viable app now but you can drag a .webloc file file - containing a URL. If this item is in its history we attempt to restore the location and size.
Well not command line but I'm working towards fulfilling a .h3w filetype. I guess you could script a way towards this but it's not something I'm inclined to do at this time.
An h3w file details all document attributes. This file could be recalled via the dock menu, a login item, etc., or simply drag the file onto the app or dock icon. Along these lines a XHelium is a login item applet that would load a "login items" playlist - naming to be user defined.
Why making it so difficult? Every application is also a command line application. You can start all GUI applications by calling there binary in the command line. And most GUI applications do have optional command line arguments that set some options. For example you can start Google Chrome with the command line argument --app="http://www.netflix.com"
and it starts a browser window without navigation.
1% /Applications/Helium.app/Contents/MacOS/Helium Contact.m4v
Yoink The folder “Contact.m4v” doesn’t exist.
Hmm, not a flying toy - that error is not mine. Feel free to create a pull request but I suspect development here has ceased ?
@slashlos you just need quotes my_command "/Applications/Helium.app/Contents/MacOS/Helium Contact.m4v"
https://www.tldp.org/LDP/Bash-Beginners-Guide/html/Bash-Beginners-Guide.html#sect_03_03
Another vote for this. Would be perfect for launching things from an action bar like Alfred.
I haven't ruled this out in my fork, but as I'm finishing up criteria for app store submission, it's deferred, but not forgotten :-)
p.s. In a the now required sandbox environment, it's a bit tricky to find implicitly pathed - i.e., from your current path in a CLI environment, to get resolved; this might make the process a bit tedious otherwise.
Adding to Helium 3 as of build 6964. CLI args are interpreted to be fully qualified file or folder name(s). Still a bit of testing to do...