PDA

View Full Version : AppleScript & PHP




bigandy
Sep 3, 2007, 06:07 PM
So I'm wanting to write an AppleScript - however, I'm thinking of an AppleScript with a difference.

I have some users who need to connect to a server via VPN, and they're all about as technically minded as roadkill. So my idea was to create a PHP script that asks for their username and password, and then automatically generates the AppleScript.

I've no issue with creating the PHP, but I've got a question regarding the AppleScript - is there any way, at all, to create a script and have it run on double click without compiling it?

Methinks that's where the whole idea falls down.... Unless anyone has any ideas :o



kainjow
Sep 3, 2007, 08:12 PM
You can run AppleScripts directly on the command line with osascript. See "man osascript"