Quake Icon

Setting command line parameters with AppleScript

You can set the command line parameters with the "run" command. The syntax for the "run" command is as follows:

run [params String]

Using only the command "run" will simply start the desired Quake application. The following example will tell the appication "Quake" to start without any parameters:

tell application "Quake"
    run
end tell

Using the command "run params String" will start the desired Quake application with the command line parameters stored in "String". The following example will tell the application "Quake" to start with the command line parameters "-hipnotic".

tell application "Quake"
    run params "-hipnotic"
end tell


Related Topics

Executing Quake console commands with AppleScript