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/

Reply via email to