| View previous topic :: View next topic |
| Author |
Message |
rezwits Junior Member

Joined: 22 Mar 2009 Posts: 21
|
Posted: Tue May 24, 2011 4:10 pm Post subject: Setting up a Plex script |
|
|
I am having problems trying to get something setup and google is failing
I need to have a script run when Plex is first launched, that quits Sofa Control. Then I need a script to run when Plex quits, that launches Sofa Control. Because I can't get my remote to work with Plex while Sofa Control is working. But if Sofa will close when Plex is launched and then re-open Sofa after Plex quits, then things will be smooth.
Any help would be helpful.
Thanks |
|
| Back to top |
|
 |
Smithcraft Veteran Member


Joined: 09 Nov 2008 Posts: 3011 Location: Seattle
|
Posted: Wed May 25, 2011 5:46 am Post subject: |
|
|
Not that I'm even decent at AppleScript, but I wasn't able to find a worthwhile scripting guide at Sofa Control's support site.
I did find this bit at the Plex forum. It's pretty old so it might not work with the current version of Sofa Control.
SC _________________ Grumpy old man of computing.
[Desktop] G4 mini - 1.5Ghz 1GB 80GB HDD - Newer miniStack v2 500GB - 10.5.8
[Media System] Intel i5 mini - 2.33Ghz 8GB 500GB HDD - 4 x Hitachi 2TB HDD in a qBOX-SF - 10.7.5 (Thanks Phil!)
Make sure it has pins! |
|
| Back to top |
|
 |
rezwits Junior Member

Joined: 22 Mar 2009 Posts: 21
|
Posted: Wed May 25, 2011 6:25 pm Post subject: Almost worked |
|
|
That almost worked, I guess it seems that the latest version of Plex doesn't care what the situation is with Sofa Control being enabled or disabled. The only thing it cares about is that if Sofa Control is not running. If Sofa is running it just screams shut it down. So enable or disable doesn't work for Plex.
Sucks.
Maybe I'll write an app that takes care of this launching and closing needed, just a watcher app. Might be tough but I'll never know till I try.
Does anyone know of any other app, like sofa control, that can take control of the remote and launch apps with the remote?
Thanks again |
|
| Back to top |
|
 |
mike_mn New Member

Joined: 01 Jul 2011 Posts: 1
|
|
| Back to top |
|
 |
rezwits Junior Member

Joined: 22 Mar 2009 Posts: 21
|
Posted: Fri Jul 01, 2011 5:03 pm Post subject: What I ended up doing... |
|
|
What I found out is that you first make a script in Sofa control that simply quits Sofa Control. Then you have to quit Sofa Control. You then open Plex and setup sofa control as a an application for Plex.
When you are done using Plex you goto the application section and launch Sofa Control. Continue using Sofa Control to launch other apps such as Hulu, Boxee, or Front Row. If you return to the Finder and pull up the Script Launcher from Sofa Control and launch the Sofa Control quit script, I named mine Plex, Plex will launch. The reason it does this is because Plex somehow sets up a watcher that waits for the last application it launched to quit.
So basically, you can't just launch Sofa Control and then start launching Plex and going back and forth. You have to launch Plex first and then Plex will quit on it's own when you launch Sofa Control via Plex's application menu. Then Plex will relaunch if Sofa Control ever quits.
I just setup my Mac Mini to have all of my Applications launch via Sofa Control and do any special clicks with those scripts. Then when my Mac starts up ever from a restart in launches Plex first.
Laters... |
|
| Back to top |
|
 |
|