I think I ran into some limitations of Script Debugger, but I’m not sure and want to verify. I’ve searched the forum, but didn’t find anything.
Issue one: I’ve added a script-block to my AppleScript program, and now I can’t debug anymore. When I press the “Run” button, it runs shortly, and then stops again. The status bar says “Stopped”. Not sure what happens…
I hope I missed something trivial, because grouping code in script-blocks seems like a good idea.
It’s something like this:
script my_subscript property my_property: missing value on my_handler() set my_property to "something" end my_handler end script on run ... my_subscript's my_handler() ... end
Issue two: some while ago, I told about my way how to debug script libraries. To do so, I replaced the
use XXX: script "my-script" with
property XXX: document "my-script.applescript".
This way of debugging script-libraries works great, except when the script-library itself contains properties. When I want to set a property of the script-library (document) I get the error (something like “can’t make a reference type of the property”, I’ve got Dutch localization).
One solution would be to use a handler to set this property, but I hope there would be another solution.