AppleScript & PHP

Discussion in 'Mac Programming' started by bigandy, Sep 3, 2007.

  1. bigandy macrumors G3

    bigandy

    Joined:
    Apr 30, 2004
    Location:
    Murka
    #1
    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 :eek:
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    You can run AppleScripts directly on the command line with osascript. See "man osascript"
     

Share This Page