Automating VLC with AppleScript

macOS specific usage questions
brandelune
New Cone
New Cone
Posts: 4
Joined: 28 Oct 2017 15:24

Automating VLC with AppleScript

Postby brandelune » 21 Apr 2019 05:27

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 ?

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: Automating VLC with AppleScript

Postby fkuehne » 21 Apr 2019 15:48

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?
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

brandelune
New Cone
New Cone
Posts: 4
Joined: 28 Oct 2017 15:24

Re: Automating VLC with AppleScript

Postby brandelune » 27 Apr 2019 02:07

Thank you so much ! I just checked the menus and the convert/stream items would be nice too.

george1984
New Cone
New Cone
Posts: 6
Joined: 20 Apr 2016 14:22

Re: Automating VLC with AppleScript

Postby george1984 » 06 May 2019 17:04

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!

george1984
New Cone
New Cone
Posts: 6
Joined: 20 Apr 2016 14:22

Re: Automating VLC with AppleScript

Postby george1984 » 06 May 2019 17:07

And 1 more Save playlist via applescript!


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 8 guests