scripts

 From:  Michael Gibson
6460.2 In reply to 6460.1 
Hi Chuck,

> Could some one please do a quick refresh on how to install these scripts? Thanks in advance.

For ones that are just one single line of text, those are usually meant to be pasted into a shortcut key under Options > Shortcut keys, the line just get pasted into the "Command" part of the shortcut key.

For ones that are a zipped up package of files, those need to be unzipped and then the files copied into the \commands subfolder.

On Windows the commands folder will be under the installation folder in Program Files, like:
C:\Program Files (x86)\MoI 3.0 beta Nov-19-2013\commands

On Mac right-click the app and choose "Show package contents" and then inside there go into drive_c/moi/commands


Once those files are copied into the commands folder, that will then make a new command available for MoI to run. Then to trigger the command there are 2 different ways, you can set up a shortcut key and then trigger that shortcut key, or you can push the Tab key to put focus into the x,y,z control and then type in the command name and push Enter.

The command name that you put for the shortcut key or for typing in is the name of the file that you copied, without any file extension on it. So if the files you are copying are called ExampleScript.js and ExampleScript.htm, the command name that goes with that is: ExampleScript - that's what you would put in the command part of the shortcut key in order to call it.

When a new beta comes out, you will need to copy any custom commands that you have installed over into the new beta's commands folder. You can just select all files in the old beta's command folder and copy them over, and say "no" when it asks you if you want to overwrite any duplicates.

- Michael