QSA ToolWorks Public Feedback Forum
forum home | register | profile | members |search | faq
homepage | lost password? | chat room

QSA ToolWorks Public Feedback Forum > TCP/IP > AppleEvents and TCP/IP You are not logged in. Login or Register.

Pages: 1

Author: Topic: AppleEvents and TCP/IP
 chuckbo
 
 

 Posts: 42
 Registered:
   2003-04-09

  
  
  
Posted: Mar 31, 2004 11:00:11 pm    Profile email chuckbo Visit


This question/remark may not make much sense ... I probably don't know enough about AppleEvents and TCP/IP networking to know if this is a meaningless question. But here goes. Right now, I have a RealBasic program that extracts data via AppleEvents. I'm working on making it able to grab data from databases on other machines (though I'm told by Fred that the getappleEventTarget doesn't work in OS X so I don't know if I'm totally thwarted yet) -- but that's not my question. I'm wondering how one connects to a server to retrieve data if it's on a TCP/IP connection. It won't have a computer name or a zone or anything like that.

In other words, if I'm talking to a collection via TCP/IP, will I still be able to retrieve data with AppleEvent calls?

chuck

- Edited by chuckbo on: Mar 31, 2004 11:04:29 pm
 Ryan Wilcox
 
 

 Posts: 32
 Registered:
   2003-04-17

  
  
  
Posted: Apr 01, 2004 1:01:20 am    Profile email Ryan Wilcox Visit

quote:

In other words, if I'm talking to a collection via TCP/IP, will I still be able to retrieve data with AppleEvent calls?



Yes, you should be able to remotely everything you can do with the database locally.

The trick is of course to target the machine. I <em>suspect</em> you should somehow use the new URL descriptor type for your target AEDesc, but I'm not sure how those work myself. (Not without writting test programs, further reading documentation, etc etc.)

Hope this helps a little,
_Ryan Wilcox

Ryan Wilcox
http://www.wilcoxd.com
 Fred
 
 

 Posts: 57
 Registered:
   2003-04-10

  
  
  
Posted: Apr 01, 2004 3:06:23 am    Profile email Fred Visit

Currently you have three options well actually 4 but I'm discounting CallHelix as too much work to wrap everything into the application:
1) Purchase a copy of Osmosis Gateway for each app that you sell (commonground) and modify your code to send the corrresponding telnet commands through a socket.
2) Create you own gateway application to handle appleevents and have that running on every server. Write your own protocol to handle your communication between the gateway and your client app. In this case your gateway will only use local appleevents to talk to Helix.
3) Include the necessary declares and appleevents for the Apple Event manager (as from OSX 10.3 ) within your existing code for with conditional compiles. However this would exclude any OSX users prior to 10.3.

I reckon number 2 is the best bet and most Xplatform ;?)

However, what would be even more Xplatform is if HT give us a "datagram" opening with Chaski...... nudge nudge

Fred
 Ryan Wilcox
 
 

 Posts: 32
 Registered:
   2003-04-17

  
  
  
Posted: Apr 01, 2004 9:12:47 am    Profile email Ryan Wilcox Visit

quote:
3) Include the necessary declares and appleevents for the Apple Event manager (as from OSX 10.3 ) within your existing code for with conditional compiles. However this would exclude any OSX users prior to 10.3.



While I'm not completely sure how declares work in RealBasic (haven't used it in over 3 years), the AppleEvent Manager API hasn't changed much at all since System 7. Using declares <em>should</em> work with any Mac OS your app runs on.

quote:
However, what would be even more Xplatform is if HT give us a "datagram" opening with Chaski...... nudge nudge



Exactly what do you mean, Fred? What's this "datagram"? Does Western Union still sell those

Later,
_Ryan

Ryan Wilcox
http://www.wilcoxd.com
 Fred
 
 

 Posts: 57
 Registered:
   2003-04-10

  
  
  
Posted: Apr 01, 2004 5:25:13 pm    Profile email Fred Visit

Ryan
quote:
While I'm not completely sure how declares work in RealBasic (haven't used it in over 3 years), the AppleEvent Manager API hasn't changed much at all since System 7. Using declares <em>should</em> work with any Mac OS your app runs on.




Read the recent Apple Event Manager pdf for info on remote events.

Helix uses datagrams for their TCP/IP implementation. Check it out. Give it an etherpeek javascript:SetSmiley('')

And who's "western union" ??

Later.. sweet dreams

fred
 Ryan Wilcox
 
 

 Posts: 32
 Registered:
   2003-04-17

  
  
  
Posted: Apr 01, 2004 9:01:23 pm    Profile email Ryan Wilcox Visit

quote:
And who's "western union" ??



Western Union (I believe) used to deliver telegraph messages to people here in the US. Now they mostly do money order stuff (as I'm betting the market for sending telegraphs is pretty small these days).

Now you know,
_Ryan


Ryan Wilcox
http://www.wilcoxd.com
Pages: 1

Lost Password?

Powered by
UPB Version : 1.8
A script by PHP Outburst

Page processed in 0.51449 seconds.