Try this.
- I have a file "e:/temp/test.js" containing:
function test() {
print("testing");
} - Open CCS
- View/Scripting Console
- Give the command: test - this fails as expected
- Give the command: loadjsfile("e:/temp/test.js");
- Give the command: test - it prints the message
- Close the scripting console
- Re-open using View/Scripting Console.
- The previous contents are displayed.
- Give the command: test
- It's still valid and prints the expected message.