• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AppleScript CGI Limitations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: AppleScript CGI Limitations
      • From: Lars DeRuntz <email@hidden>
References: 
 >Re: AppleScript CGI Limitations (From: James Sentman <email@hidden>)

  • Prev by Date: Applescriptable FTP Tools
  • Next by Date: Re: Looping through a list with only one item problem?
  • Previous by thread: Re: AppleScript CGI Limitations
  • Next by thread: Re: AppleScript CGI Limitations
  • Index(es):
    • Date
    • Thread