Here is something I don't understand. I want to make a very simple web page which displays a variable. I don't know javascript or Python (but will learn them some day) but I acheive bug-free results (eventually) in Applescript.
I want to give the web page user the ability to modify the Indigo variable with constraints. So I created 2 icons, an up arrow and a down arrow and loaded them into the Library/Application Support/.../images/controls/static folder. I then put them on the page and selected Click action: Execute AppleScript. I put in an embedded line of appleScript which calls a routine that is present in a file loaded into the Attachments Folder. (Yes, I DO remember to reload attachments when I make changes to this file). This script increments or decrements the Indigo variable, then does string manipulation on it to format it for presentation on the Control page (it is a real number, but I want to limit the # of deicmal places).
Maybe it doesn't matter, but it may be important to note that I am doing all this using a remote server on my network. I edit scripts locally and then save them to the Attachments folder on the remote server. I edit Control Pages on the local Indigo client which is logged into the remote IndigoServer.
Here is the problem: I once I create the page, editing the script that is called when the icon is clicked has no effect. The old (bug-ridden)applescript is run. I have tried deleting the file in the Attachments folder and then loading in a new version (always selecting "Reload Attachments" afterward) with no effect. I could try deleting the whole control page and re-creating it, but I would rather not.
By the way, is there any way, besides inserting lots of log statements, to debug a script that is in the attachments folder? I use Script Debugger for Applescript development.
Thanks
Norman