Darwin engine and AppleScript in CGI's?
soapdog at mac.com
Wed Aug 31 13:08:14 CDT 2005
On Aug 31, 2005, at 2:31 PM, Mark Smith wrote:
> Ah...that explains a few things. Thanks for the info.
I am betting here okay, but try pulling the executable out of MacOS X
bundle and using it as the CGI engine, use it with the "-ui"
parameter. It works fine. I just pulled mine, put it on /Library/
WebSever/CGI-Executables and created this test.cgi script:
put "Engine Version:" && version() & cr
put "Languages:" && the alternateLanguages
get format("tell application \"Finder\"\ndisplay dialog \"Hello World!
do it as "applescript"
put it && the result
The result is fine:
Engine Version: 2.6.5
tell application "Finder"
display dialog "Hello World!"
Decided not to include the shot of the dialog box but it appeared
Happy AppleScripting and Transcript coding.
> On 31 Aug 2005, at 17:21, Mark Waddingham wrote:
>> The Darwin engines are just like they say on the tin - compiled for
>> Darwin :o)
>> Darwin is the BSD-derived UNIX base for MacOS X and due to this
>> none of
>> the MacOS X specific APIs are available to compile against (in this
>> mode). Indeed, the engine itself is compiled using the internal POSIX
>> porting layer inline with the other UNIX engines.
>> Therefore, when looking for what is available in the Darwin
>> engine, look
>> in the documentation for what is supported by UNIX/Linux, rather
>> than OS
>> Warmest Regards,
>> Mark Waddingham ~ 36degrees at runrev.com ~ http://www.runrev.com
>> Runtime Revolution ~ User-Centric Development Tools
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
> ___________________________________________________________ To help
> you stay safe and secure online, we've developed the all new Yahoo!
> Security Centre. http://uk.security.yahoo.com
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode