Re: Sending Info over the web to a Mac.
Re: Sending Info over the web to a Mac.
- Subject: Re: Sending Info over the web to a Mac.
- From: Jason Bourque <email@hidden>
- Date: Sun, 06 Jan 2002 10:17:43 -0500
Jon,
Does the Mac on the receiving end need some specific type of connection?
Static IP?
Thanks,
Jason
On 1/6/02 1:39 AM, "Jon Pugh" <email@hidden> wrote:
>
At 2:43 PM -0700 1/5/02, garbanzito wrote:
>
> at 2002 01 05, 10:31 -0500, they whom i call Jason Bourque wrote:
>
>> What are my options with sending and maybe receiving information from a
>
>> Script on one Mac to another over the internet.
>
>
>
> if you're running Mac OS X, XML-RPC is built in. it's
>
> designed for just what you're talking about. though i can't
>
> give you practical ins & outs, i believe there are examples
>
> on Apple's scripting pages, and more general info at
>
> <http://www.xmlrpc.com>.
>
>
Actually, XML-RPC is for when you don't care if the destination is a Mac or
>
whatever. Just using program linking might be easier if you know the
>
destination machine is a Mac.
>
>
In that case you write a server applet to talk to on the remote machine with
>
some custom handler, like so:
>
>
on tickleMe elmo
>
-- laugh, or whatever
>
say elmo
>
end tickleMe
>
>
Then on your client use an eppc url to address the event:
>
>
tell app "ServerApplet" of machine "eppc://server.address.or.name/"
>
tickleMe "Bert hangs out with scum, and I'm not talking about Ernie."
>
end tell
>
>
Now really, can you get much easier than that?
>
>
Of course, for this to work, the server machine will need to have the File
>
Sharing control panel set to have Program Linking on and TCP/IP enabled.
>
>
And if you want to avoid the password dialog, you might be able to include the
>
password in the URL, but I don't guarantee that will work.
>
>
"eppc://username:email@hidden/"
>
>
Probably, a better solution is to just let the keychain handle it. That means
>
you'll need to prime the machine by logging in once, or script unlocking the
>
keychain, like so:
>
>
tell application "Keychain Scripting"
>
unlock keychain "garbanzito's Keys" with password "otiznabrag"
>
quit
>
end tell
>
>
Good luck.
>
>
Jon