• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Share information between two AppleScripts running on different boxes.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Share information between two AppleScripts running on different boxes.


  • Subject: Re: Share information between two AppleScripts running on different boxes.
  • From: Wayne Melrose <email@hidden>
  • Date: Sat, 19 Aug 2006 10:55:43 +0200


On Aug 19, 2006, at 1:24 AM, hackmiester (Hunter Fuller) wrote:

Hi, applescript-users! I have a (hopefully) easy one for you.

I'd like to have an AppleScript running on one box as the server. On the client, I'd like to be able to tell the server what to do. However, I want it to be flexible - I want to be able to send the server the string "tell application "iTunes" to play", for example, and have it run that - I can't have predefined ones on the server... unless that's the only way to do it...

Thoughts? Thanks in advance.

-- 
hackmiester (Hunter Fuller)

Hey there, 

There's two ways you could go about this, as far as I know.. 

you could try ... 


tell application "itumes" of machine "eppc://username:password.10.0.0.1" to play -- 


The other option is embedding the script in a shell script.... which allows you to then ssh into the machine, and execute a shell script which contains the applescript code. 

Which would look like this....

#!/bin/sh
osascript <<END
tell app "itunes"
play
end tell
END



You then have to save it, and make it executable by using 
chmod 755 ~/Desktop/myscript.sh 

in a Terminal window. 




Wayne

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Share information between two AppleScripts running on different boxes. (From: "hackmiester (Hunter Fuller)" <email@hidden>)

  • Prev by Date: Re: Where's Applescript Studio?
  • Next by Date: Re: Setting the grid for the window
  • Previous by thread: Share information between two AppleScripts running on different boxes.
  • Next by thread: Re: Share information between two AppleScripts running on different boxes.
  • Index(es):
    • Date
    • Thread