Helium icon indicating copy to clipboard operation
Helium copied to clipboard

Considered AppleScript support?

Open sdailey opened this issue 4 years ago • 5 comments

Hey, more of a feature inquiry than an issue... Wondering if you had thought of adding an sdef file and support for some basic AppleScript commands

sdailey avatar May 01 '20 23:05 sdailey

I have been asked to provide a CLI interface, which I did, but didn't see the need. Anyway, what do you have in mind; working examples are easiest to work in?

I should point out though that this work is superseded by its unforked clone He3, sporting new name and artwork, in review at the app store.

slashlos avatar May 01 '20 23:05 slashlos

Ah! Amazing, is there any documentation on the CLI features/api (like a link you could point me to)? I'm looking to programmatically bring up Helium and start/stop a specific video, and then close Helium.

I have an app of my own that lets you trigger events upon entering specific, named Spaces. I wanted to have a way to play a video upon entering a specific Space. I'm pretty sure I'd be able to get it to happen from an AppleScript if I just knew what to tell it

Congrats on submitting to the App Store by the way, that's awesome!

sdailey avatar May 02 '20 01:05 sdailey

if you execute Helium or He3 via terminal - shell of choice, the command args to it are inferred to be files which will opened in their separate window. As it currently stands, WkWebView is pretty much a black box; few kvo properties or public methods, but my plan was to make use of them. You would create a playlist specifying start/stop time etc but all that's on hold until they open up about it.

slashlos avatar May 02 '20 02:05 slashlos

So I've tried shell commands like:

open -a /Applications/Helium.app --args "https://www.youtube.com/watch?v=OTL8dW6PqPE" open -a /Applications/Helium.app --args https://www.youtube.com/watch?v=OTL8dW6PqPE open -a /Applications/Helium.app https://www.youtube.com/watch?v=OTL8dW6PqPE open -a /Applications/Helium.app "https://www.youtube.com/watch?v=OTL8dW6PqPE"

And so on, and all that happens is that the app opens, but the video doesn't load. Could you tell me what I'm doing wrong here? Thanks!

sdailey avatar May 13 '20 22:05 sdailey

Wow, so - just found your app in the store, congrats!

Next, I figured out how to play local files from the command line, with a command like

open -a /Applications/Helium.app /Users/MyUserName/myVideo.m4v

I also noticed that the original Helium wouldn't even play an m4v type file.

Amazing! Just left a 5 star review in the Store.

Thanks a bunch, please keep up development work!!!

sdailey avatar May 15 '20 19:05 sdailey