| Article: |
AppleScript Primer for Mac OS X | |
| Subject: | perl and applescript answer | |
| Date: | 2002-02-09 10:52:16 | |
| From: | bwperry | |
|
You generally shouldn't use system commands that are launched by CGI programs and linked to Web forms, because someone could send a malicious shell command to the CGI program. That said, you can call AppleScripts from perl using the "osascript" shell command. If you type "man osascript" from a Terminal prompt, you can find out most of what you need to know about this command. Here's an example of a perl script that launches a bit of AppleScript:
|
||
Showing messages 1 through 1 of 1.
-
perl and applescript answer
2002-02-11 09:49:51 bradrice [View]
Perhaps you could use a future article to describe how to use Applescript as a CGI. I noticed your book is slim on this OS X server feature. What I am trying to do is cobble together a CGI that takes form data, builds a document with the data in a desktop app and then prints a PDF which is served back up to the browser.


