{ External edit.poc - Provides external editing of scripts{ V1.01 - 12/08/04{ See http://www.pocosystems.com/forum/viewtopic.php?t=256 for more info{ Changelog: V1.01 - Displays the editor name in inputbox message{ - No longer checks to see if script exists, that way new scripts can be created

Set $OnErrorGoTo "ErrorHandler"

{ Check we're running in manual modeIf #PocoScriptMode = 5 Then Jump Set $message "The 'External edit' script can only be run in manual mode" MessageBox $messageExit

:Jump{ Read external editorImportVar $path

If $path ! "" then Jump2

{ If path is blank set it to defaultSet $path "C:\\Windows\\Notepad.exe"{ Export this valueExportVar $path{ Import this value to refresh setup script screenImportVar $path

{ Ask which script to viewSet $message "Select a script to edit or enter a new name with .poc extension to create a new script\n"AddStrings $message "Chosen editor:\n" $path "%var%"InputBox $value $message $disp

{ Save this value ready to show as default value next timeExportVar $value

Save it in your scripts folder as External edit.poc and set up a button to run it (if you like). It gives an input box of your scripts and remembers the last script run. You can set the editor of your choice by going to the "Setup Script" screen in Tools->Scripts, typing in the path to your favourite editor and then clicking on "Edit Script". This last click ensures the editor is saved.