On 2/7/02 9:15 PM, "Brad Rice" <[EMAIL PROTECTED]> wrote: > Can ACGI run with Apache? I thought you needed to have webstar or > another Mac Classic web server to use that. >
Apple has produced an apache module that will run AppleScripts that comes with OS X Server. Someone posted a similar solution at versiontracker today: > -----Original Message----- > From: Brad Rice [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 07, 2002 6:13 PM > To: [EMAIL PROTECTED] > Subject: Applescript call from Perl > > > How do you call Applescript from Perl? I want to make a CGI that runs > an applescript. To answer the original question, here is one way: % man osascript OSASCRIPT(1) System Reference Manual OSASCRIPT(1) NAME osascript - execute OSA scripts SYNOPSIS osascript [-l language] [-e command] [-s flags] [programfile] DESCRIPTION osascript executes the given script file, or standard input if none is given. Scripts may be plain text or compiled scripts. osascript was de- signed for use with AppleScript, but will work with any Open Scripting Architecture (OSA) language. To get a list of the OSA languages in- stalled on your system, use osalang(1). For documentation on AppleScript itself, see <http://www.apple.com/applescript>. The options are as fol- lows: -e command Enter one line of a script. If -e is given, osascript will not look for a filename in the argument list. Multiple -e commands may be given to build up a multi-line script. Because most scripts use characters that are special to many shell programs (e.g., Apple-
