Page 1 of 1

Scripting on Mac? Where do scripts go?

Posted: 07 Aug 2010 17:16
by woebtz
I'm interested in writing a lyrics extension for VLC, but I'm not sure where to place scripts.

The /vlc/share/lua/ Readme mentions that, "Lua scripts are tried in alphabetical order in the user's VLC config directory lua/{playlist,meta,intf}/ subdirectory on Windows and Mac OS X."

Where can I find this directory on a default Mac installation (dragged .app to applications folder)?

Thanks,
-w

Re: Scripting on Mac? Where do scripts go?

Posted: 13 Aug 2010 13:41
by fkuehne
You'll find these folders in Contents/MacOS/share within the VLC.app bundle. Right click on the bundle in the Finder and choose "Show Package Content" (or something similar) to open it.

Note that lua scripts trying to display custom windows are not supported in current versions of VLC for Mac (e.g. the imdb script).

Re: Scripting on Mac? Where do scripts go?

Posted: 23 Sep 2010 06:33
by 2ge
Hi,

I was looking for _this_ information few hours. I was thinking, I am doing something wrong, or...I just can't turn on LUA in MAC OSX, whatever I done. I am quite new to VLC (specially commandline), so, now we got version 1.1.3 - in this version on Mac OSX it is not possible to enjoy LUAs with custom windows support ?

How I can easily test LUA in Mac OSX now?

Re: Scripting on Mac? Where do scripts go?

Posted: 23 Sep 2010 15:02
by ivoire
There is 3 kinds of lua scripts in VLC:
* playlist parsers (if you give a youtube url to vlc => a lua script grab the webpage and parse it to find the right file to play inside vlc)
* service discovery: adding some special contents inside VLC like in internet/Jamendo Selection => a lua script grab the most famous song on jamendo and play them inside VLC
* extensions: currently only one is distributed but more will comes.

Re: Scripting on Mac? Where do scripts go?

Posted: 03 Oct 2010 05:42
by 2ge
Hi Ivoire,

thanks for explaining me, 3 kind of scripts. If I understand correctly, 3rd one you mentioned "extensions" (or better: extensions which use "custom windows support" is not working yet under Mac OSX.
I am right ? (I know, you are using Linux, but maybe somebody who is using Mac OSX should answer...)

Any plan when it will be available ?

Re: Scripting on Mac? Where do scripts go?

Posted: 04 Oct 2010 11:09
by ivoire
I think it works only with the Qt4 frontend for macox (experimental one). No one implemented it in the cocoa part AFAIK (see feepk post). And I don't know if that's planned for the next months or so.

Re: Scripting on Mac? Where do scripts go?

Posted: 20 Sep 2011 21:49
by n.bexter
any news here? i searched several hours, how to get working a LUA extension on OSX, but without success. I don't even need dialogs, but it seems that it simply does not work. any hints or suggestions?

Re: Scripting on Mac? Where do scripts go?

Posted: 10 Oct 2011 19:36
by drkosse
I share your problems with getting lua scripts work on MAC OS X.
There is no information to be found about this... been searching for quite some time aswell...
Anyone know how to get lua extensions working on OS X?

Re: Scripting on Mac? Where do scripts go?

Posted: 11 Oct 2011 19:29
by nkoriyama
I share your problems with getting lua scripts work on MAC OS X.
There is no information to be found about this... been searching for quite some time aswell...
Anyone know how to get lua extensions working on OS X?
Are you using vlc-1.2.0-git nightly?
If so, I sent a patch today and it will affect today or tomorrow nightly build.

Re: Scripting on Mac? Where do scripts go?

Posted: 12 Oct 2011 12:17
by drkosse
I share your problems with getting lua scripts work on MAC OS X.
There is no information to be found about this... been searching for quite some time aswell...
Anyone know how to get lua extensions working on OS X?
Are you using vlc-1.2.0-git nightly?
If so, I sent a patch today and it will affect today or tomorrow nightly build.
Cool, I will test as soon as I'm home today :)

Re: Scripting on Mac? Where do scripts go?

Posted: 13 Oct 2011 10:22
by drkosse
Does not work :|

When i asked in #videolan IRC channel (freenode.net) a guy told me its not working and needs implementation, so i don't think we can expect this anytime soon.