Plex Media Server in Applescript?

Use Applescript to command PMS?
Hi,

A question. Does PMS support Applescript? I want to do a script that updates the library (I have my library on my network).

you can update via the PMS web interface.



do shell script "curl \"http://**.**.**.**:32400/library/sections/2/refresh\""<br />




you'll have to change the IP, also the 2 at the end is my TV section, the easiest way to go to the web manager, pull up the section you want, and get the number out of the URL
or on in terminal, you can do

~/Library/Application\ Support/Plex/Plex\ Media\ Server.app/Contents/MacOS/Plex\ Media\ Scanner -l



the last is from [this forum post](http://forums.plexapp.com/index.php/topic/19303-command-line-for-plex-media-scanner/)
that might also give you what you want.


Web interface? I have totally missed that. Can you please hint me in the right direction, the search function doesn't work so good :)

Is a static IP needed?

on the machine running PMS

http://localhost:32400/manage/index.html


http://localhost:32400/manage/index.html



you don't need a static IP, but it will help, so you don't have to figure out the IP every time you want to access


wow, this was so simple :) Now i can save it as an app and ad it in Plex. Thanks alot!

If some one come upp with an idea that works without an static IP, please let me know..

You could just use the library updater plugin

http://forums.plexapp.com/index.php/topic/21108-update-library-from-a-plug-in/page__view__getnewpost



Well... Thats just awesome!

Thank you :)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.