123Macmini.com
FAQFAQ   SearchSearch   MemberlistMemberlist   GalleryPhoto Gallery   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Setting up a Plex script

 
Post new topic   Reply to topic    123Macmini.com - Forums Forum Index -> Mac Mini HTPC
View previous topic :: View next topic  
Author Message
rezwits
Junior Member
Junior Member


Joined: 22 Mar 2009
Posts: 21
Location: Las Vegas

PostPosted: Tue May 24, 2011 4:10 pm    Post subject: Setting up a Plex script Reply with quote

I am having problems trying to get something setup and google is failing Sad

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Smithcraft
Veteran Member
Veteran Member


Joined: 09 Nov 2008
Posts: 3236
Location: Seattle

PostPosted: Wed May 25, 2011 5:46 am    Post subject: Reply with quote

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] Intel mini - 2.16Ghz 2GB 60GB 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
View user's profile Send private message Visit poster's website
rezwits
Junior Member
Junior Member


Joined: 22 Mar 2009
Posts: 21
Location: Las Vegas

PostPosted: Wed May 25, 2011 6:25 pm    Post subject: Almost worked Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
mike_mn
New Member
New Member


Joined: 01 Jul 2011
Posts: 1

PostPosted: Fri Jul 01, 2011 4:19 pm    Post subject: Reply with quote

Remote Buddy works great with Plex and can start and stop other applications.

see post 98 for support along with other info regarding using 3 digit codes to open and close apps. Removes your ability to use 0 on your remote, but works good in my case.
http://forums.plexapp.com/index.php/topic/15332-miniharmony-unofficial-discussion/page__st__80
Back to top
View user's profile Send private message
rezwits
Junior Member
Junior Member


Joined: 22 Mar 2009
Posts: 21
Location: Las Vegas

PostPosted: Fri Jul 01, 2011 5:03 pm    Post subject: What I ended up doing... Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    123Macmini.com - Forums Forum Index -> Mac Mini HTPC All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



      

Shop:  Apple Store  |  Refurbished Macs  |  Refurbished iPads  |  MacConnection  |  Mac Mini Vault  |  Other World Computing

MK 1 Studio Mac mini Racks  |  Crucial Mac Memory  |  Top Free Mac Apps  |  Top Paid Mac Apps



123Macmini.com is an independent publication and has not been authorized, sponsored, or approved by Apple Computer, Inc.
All logos and trademarks in this site are property of their respective owners.
Copyright © 2011 123Macmini.com. All Rights Reserved.