Steve,

You're going to have to write a 4D wrapper routine that's called by an active 4D routine.

If all you are doing is requesting data from a URL check out QFREE from http://www.escape.gr, look at the commands:

QF_URLOpen      Creates a connection to an internet resource
QF_URLClose     Closes a connection to an internet resource
QF_URLDownloadToFile    Downloads an internet resource to a file
QF_URLDownloadToBLOB    Downloads an internet resource to a BLOB


It's got everything you need, is cross platform (curl is to, but command lines change) and works with 6.x and up.


I've used both and for what you are trying to do QFREE is the way to go.


HTH

James.

On 9 May 2005, at 16:53, Steve Alex wrote:

Does anyone know a way of executing the equivalent of "Do Shell Script" in AppleScript with either Active4D or 4D? Have not done as much AppleScript in OX X as I did in 9, but having something like:

on sendForm(this_URL, theData)
return do shell script "curl " & (quoted form of this_URL) & " -F " & (quoted form of theData)
end sendForm


set theQuery to "web4d.xxx.xxx/4dcgi/mtc"
set formData to "data=" & "<week dt='20050509' stuff='other stuff' />"
set theHTML to my sendForm(theQuery, formData)

is just an example (sending a form/query to a remote server) of some of what you can do interacting with OS X's underbelly, Unix.

I think I remember that 4D 2004 may have some hooks into the shell, but don't think we're going there! I've done some simple TCP/IP stuff with the 4D internet commands, but curl has a lot more flexibility. There are also some other thing not related to the internet that would be useful.

Steve Alex
AIDT



_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/




Drag And Drop Limited 41 Brook Road Rayleigh Essex SS6 7XJ http://www.drag-and-drop.com t: 01268 779648 f: 01268 741675

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to