# Genius Playlists in plex

**URL:** <https://forums.plex.tv/t/genius-playlists-in-plex/374>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [September 14, 2008, 1:10pm UTC](https://forums.plex.tv/t/genius-playlists-in-plex/374 "2008-09-14T13:10:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![msaspence](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@msaspence](https://forums.plex.tv/u/msaspence)\
**Post date:** [September 14, 2008, 1:10pm UTC](https://forums.plex.tv/t/genius-playlists-in-plex/374/1 "2008-09-14T13:10:48Z")

</div>

Ok so I have an idea for a plugin and an idea of how it might work, but am a little fuzzy on the details, whether its posisble and whether there would be an easier way of doing this.  
  
  
  
What i really want to do is be able to press ‘c’ and one of the options is generate a genius playlist  
  
  
  
this fires of a python script that sends the selected file to an applescript  
  
  
  
the applescript finds that file in the itunes library, selects it and generates a genius playlist  
  
  
  
the applescript then get the contents of the playlists and sends it back to the python script  
  
  
  
the python script then builds the playlist and takes the user to it in the library.  
  
  
  
What do you think?

---

<div class="post-metadata">

**Author:** ![msaspence](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@msaspence](https://forums.plex.tv/u/msaspence)\
**Post date:** [September 14, 2008, 1:19pm UTC](https://forums.plex.tv/t/genius-playlists-in-plex/374/2 "2008-09-14T13:19:59Z")

</div>

ok so after doing some research i found [appscript](http://appscript.sourceforge.net/py-appscript/index.html) a python module that is a

> [@](#):
>
> user-friendly Apple event bridge that allows you to control scriptable Mac OS X applications using ordinary Python scripts

  
  
Is there any chance this could become a feature of plex's python scripting (is it already?)  
  
It has potential beyond this idea and would much more easily allow scripts that interact with osx

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 20, 2019, 8:19pm UTC](https://forums.plex.tv/t/genius-playlists-in-plex/374/3 "2019-12-20T20:19:08Z")

</div>

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