Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Remotely Launch Applications?

Remotely Launch Applications?
Thread Tools
Mac Elite
Join Date: Jun 2001
Location: Utah
Status: Offline
Reply With Quote
Dec 11, 2003, 01:40 PM
 
Hi all.

How do I ssh into my Mac and remotely launch iTunes?

Thanks in advance

Cheers
Scott
     
Mac Elite
Join Date: Nov 2003
Location: Minnesota
Status: Offline
Reply With Quote
Dec 11, 2003, 01:52 PM
 
open /Applications/iTunes.app
     
Mac Elite
Join Date: Jun 2001
Location: Utah
Status: Offline
Reply With Quote
Dec 11, 2003, 01:53 PM
 
Sweet! Thanks!
     
Sal
Dedicated MacNNer
Join Date: Sep 2000
Location: Cupertino, CA USA
Status: Offline
Reply With Quote
Dec 13, 2003, 04:29 AM
 
If you turn on Remote Apple Events and have a user account on the target computer with permission to send Apple Events, you can control iTunes across the Internet!

Substitute the IP address of the remote app in the following example:

Code:
-- launch iTunes using terms from application "Finder" tell application "finder" of machine "eppc://10.0.1.2" set the target_app to application file id "com.apple.itunes" open the target_app end tell end using terms from delay 4 -- wait for it to start -- control the app using terms from application "iTunes" tell application "Itunes" of machine "eppc://10.0.1.2" play first track of playlist "Top 25 Most Played" end tell end using terms from
You can even find out what song the app is playing!

Code:
using terms from application "iTunes" tell application "Itunes" of machine "eppc://10.0.1.2" get the name of the current track end tell end using terms from
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:02 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2