Scripting on Mac? Where do scripts go?

Discuss your Lua playlist, album art and interface scripts.
woebtz
New Cone
New Cone
Posts: 1
Joined: 07 Aug 2010 17:04

Scripting on Mac? Where do scripts go?

Postby woebtz » 07 Aug 2010 17:16

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

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

Re: Scripting on Mac? Where do scripts go?

Postby fkuehne » 13 Aug 2010 13:41

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

2ge
New Cone
New Cone
Posts: 3
Joined: 13 Dec 2006 12:11
VLC version: VLC 1.1.3
Operating System: Mac OS
Contact:

Re: Scripting on Mac? Where do scripts go?

Postby 2ge » 23 Sep 2010 06:33

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?

ivoire
Cone that earned his stripes
Cone that earned his stripes
Posts: 413
Joined: 20 Aug 2008 11:29
VLC version: trunk
Operating System: linux (debian sid)
Contact:

Re: Scripting on Mac? Where do scripts go?

Postby ivoire » 23 Sep 2010 15:02

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.

2ge
New Cone
New Cone
Posts: 3
Joined: 13 Dec 2006 12:11
VLC version: VLC 1.1.3
Operating System: Mac OS
Contact:

Re: Scripting on Mac? Where do scripts go?

Postby 2ge » 03 Oct 2010 05:42

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 ?

ivoire
Cone that earned his stripes
Cone that earned his stripes
Posts: 413
Joined: 20 Aug 2008 11:29
VLC version: trunk
Operating System: linux (debian sid)
Contact:

Re: Scripting on Mac? Where do scripts go?

Postby ivoire » 04 Oct 2010 11:09

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.

n.bexter
New Cone
New Cone
Posts: 3
Joined: 20 Sep 2011 21:36

Re: Scripting on Mac? Where do scripts go?

Postby n.bexter » 20 Sep 2011 21:49

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?

drkosse
New Cone
New Cone
Posts: 3
Joined: 10 Oct 2011 19:30

Re: Scripting on Mac? Where do scripts go?

Postby drkosse » 10 Oct 2011 19:36

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?

nkoriyama
Cone that earned his stripes
Cone that earned his stripes
Posts: 338
Joined: 01 Sep 2011 20:50
VLC version: git
Operating System: Windows / Mac OS X
Location: Japan

Re: Scripting on Mac? Where do scripts go?

Postby nkoriyama » 11 Oct 2011 19:29

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.
How To Ask Questions The Smart Way http://www.catb.org/~esr/faqs/smart-questions.html
My hack for ISDB-T http://sdrv.ms/126weue

drkosse
New Cone
New Cone
Posts: 3
Joined: 10 Oct 2011 19:30

Re: Scripting on Mac? Where do scripts go?

Postby drkosse » 12 Oct 2011 12:17

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 :)

drkosse
New Cone
New Cone
Posts: 3
Joined: 10 Oct 2011 19:30

Re: Scripting on Mac? Where do scripts go?

Postby drkosse » 13 Oct 2011 10:22

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.


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 4 guests