www.ClassicTW.com
https://mail.black-squirrel.com/

Adding Scripts to SWATH
https://mail.black-squirrel.com/viewtopic.php?f=15&t=13093
Page 1 of 1

Author:  Glanden [ Wed Feb 16, 2005 10:12 pm ]
Post subject: 

Can anyone tell me how to add scripts to the SWATH helper? I d/l'ed a bunch from their site, put them in the same folder, but they don't appear in the GUI... Thanks.

Author:  Speed Demon [ Wed Feb 16, 2005 10:23 pm ]
Post subject: 

Go to the edit menu pick preferences and the last two tabs are where you set the path to your script files.

If you are running the java scripts I think you have to install java sdk the instructions are on the SWATH web site.

Author:  The WABBIT [ Thu Feb 17, 2005 3:29 am ]
Post subject: 

Glanden,

Since you did not state what scripts you are working with. i.e. Java, Rexx, TWX, RevHelper, etc.. I will assume you are talking about SWATH's Java scripts.


1) If you have not already done so.

You need to download and install a Java SDK v1.4.x, or newer, onto your system.

2) You need to let SWATH know of the Java SDK. Well, atleast make sure it knows about it.

With Swath opened press the Alt + Enter keys together. It will bring up the SWATH Preerences window. Click on the Scripts(1) tab. On this Window make sure that the Java virtual machine (JVM) is pointing showing the correct Java SDK. If not, then click on the browse button and navigate to where you had installed the Java SDK.

3) The default directory for the SWATH Java scripts is also listed on this window. If you would prefer to have it somewhere else. Then use the Browse button to select it's location. Close the preferences window.

4) Place all SWATH Java scripts into the directory mentioned above. Or verify that those scripts or there.

5) From the SWATH Menu bar Click on Scripts, then move down to Script Tools, and move right to Reload All Scripts. This will re/load up all the scripts. If any of the scripts are not compiled. Then you need to Select the Compile Java Code option. And then choose the script to compile. Before re-loading the scripts.



NOTE: many of the SWATH Java scripts listed on the SWATH Script Library page. Are very old and out of date. Many will have problems working in the current version of SWATH. That is if they work at all. This is because they were created with an older version of SWATH. And many of the script's API has changed since then. And the Authors have neglected to update their scripts. Or just dont plaw TW2002 anymore.

If you find such a script, post a responce on the SWATH support forums about it. Or send a email to Stien and he'll do his best to update them.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/