
Adding buttons to Swath to do stuff like edit the Swath.cfg
The below comes from a derailed Smack Talk thread. I'm re-posting it here in case anyone might find it useful.
Helix wrote:
Any chance of adding a button or a menu item that would let you edit and save the SWATH.cfg in the next release?
Helix

Hotblack Desiato wrote:
This should is easy to do using zoc:
Code:
Call Zocshell "Notepad.exe C:\Documents and Settings\All Users\Application Data\SWATH\SWATH.cfg", 1
exit
Steps to implement:
1. Copy/paste the above two lines of code to a new text file.
2. Save the file as c:\zocScripts\SwathCFG.zrx - make sure your editor doesn't add '.txt' to the end of the filename.
3. In Swath, configure zoc script directory to c:\zocScripts (Edit->Preferences->Scripts->Page1 or Page2)
4. In Swath, choose menu item Scripts -> Script Tools -> Reload All Scripts.
5. In Swath, hit Alt-X to bring up the trigger list.
6. Add Trigger... select radio 'User button pressed:', then select desired letter from dropdown (the rest of these instructions assume you selected the letter 'A').
7. Select Radio 'Execute script / cmd'; select 'Rexx' from dropdown, select [Scr]SwathCfg.zrx from second dropdown.
8. Hit OK
Hit the 'A' button to edit Swath.cfg using note pad. If you don't have an 'A' button, go to menu View -> Toolbars and make sure 'User' is checked.
Congratulations on implementing your new Swath button!
Note: It might not be necessary to use a zoc script. There is probably an even easier way.