Re: AppleScript CGI Limitations
Re: AppleScript CGI Limitations
- Subject: Re: AppleScript CGI Limitations
- From: Timothy Bates <email@hidden>
- Date: Wed, 20 Mar 2002 10:43:00 +1100
On 20/3/02 7:01 AM, "James Sentman" <email@hidden> wrote:
>
> From what I remember, AppleScript CGI's cannot do things like display
>
> dialogs and store data due to 'security issues'. Is this still the issue,
>
> and is there any way around this?
>
Under OS9 [no] but under X any application launched by Apache
>
runs as the www user which has no access to the screen so
>
the program will die if it tries to init core graphics (writing
>
files is no problem as long as the www user has write access to those
>
directories)
You can just get the cgi applet to send show(message) to a helper.
I made an acgi consisting of these three lines
--ponto.acgi
on handle CGI request
tell application "biggles" to show("hi there")
end handle CGI request
And a helper
--Biggles.scpt
on show
activate
display dialog message giving up after 3
end show
Then load the page:
http://localhost/~tim/ponto.acgi
bingo: biggles pops up and says hi there
tim
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.