Page 1 of 1

Automating VLC with AppleScript

Posted: 21 Apr 2019 05:27
by brandelune
A few years ago I wrote the following article to use VLC in an audio source transcription solution:
https://mac4translators.blogspot.com/20 ... -free.html

Later, I found that if I could access "Playback Speed", I could improve my workflow a lot because I can then choose a speed that corresponds to my typing speed and not have to rewind the file every so often.

The problem is that I can't seem to find a way to access that value in the VLC dictionary. Am I missing something ?

Re: Automating VLC with AppleScript

Posted: 21 Apr 2019 15:48
by fkuehne
This is a great idea! I'll add that to VLC 4.0 and added a ticket so I don't forget about it (ticket 22213). Do you have any further ideas what you'd like to see?

Re: Automating VLC with AppleScript

Posted: 27 Apr 2019 02:07
by brandelune
Thank you so much ! I just checked the menus and the convert/stream items would be nice too.

Re: Automating VLC with AppleScript

Posted: 06 May 2019 17:04
by george1984
I have a few requests since you ask.

1 You can make a hot key to add a bookmark!
2 And an applescript command to call it for the time with the result containing the time such as 00:01:46.939.
3 And an applescript command to query for it, maybe even change the Description
4 You can make applescript "current time" "105" match bookmark time "00:01:46.939"
5 Also "duration of current item" to be the same format 00:01:46.939.
6 Make a snapshot and save a file via applescript
7 An interesting feature - log pause to file. So when viewing a video without having access to the keyboard, a pause via a remote would be logged to later review and make clips, notes etc.

If you dont know, when using the bookmarks nothing updates on the controller until play is pressed, including from applescript.
These would be great for automation!

Re: Automating VLC with AppleScript

Posted: 06 May 2019 17:07
by george1984
And 1 more Save playlist via applescript!