JadenGeller / Helium

A floating browser window for OS X
MIT License
3.58k stars 241 forks source link

Argument to open URL/File #248

Open Deltachaos opened 6 years ago

Deltachaos commented 6 years ago

I like the app, if it would have a option to start with a specific URL/File it would be perfect.

slashlos commented 6 years ago

Um I think you want to alter the home page to a specific URL ?

Deltachaos commented 6 years ago

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

slashlos commented 6 years ago

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 ?

Deltachaos commented 6 years ago

By command line i mean from the Terminal like this:

/path/to/helium "https://netflix.com" --size 100x600 --position 100:500
slashlos commented 6 years ago

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.

slashlos commented 6 years ago

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.

Deltachaos commented 6 years ago

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.

slashlos commented 6 years ago

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 ?

floer32 commented 5 years ago

@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

clarklab commented 4 years ago

Another vote for this. Would be perfect for launching things from an action bar like Alfred.

slashlos commented 4 years ago

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.

slashlos commented 4 years ago

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...