Re: Applescript In Web Page Objects
wikner wrote: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.
I'm not sure what is going wrong here. Based on your steps, I believe it should work. Note that when you have the Control Page editor dialog open and you hit the Preview button to see it in a browser, that you are viewing a temporary preview page. The real page doesn't get updated until you OK out of the Control Page dialog. Could that be the problem (you aren't looking at the right page in the browser)?
wikner wrote: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.
Not that I have found. I always end up using log statements. You could copy/paste the contents that are in your attachments folder into a new script and debug it that way.... but it won't be run exactly the same as it is when it is an attachment script (you might need to add some tell "IndigoServer" blocks).