XTension build 928
James Sentman
james at sentman.com
Fri Mar 18 16:57:44 EDT 2016
Good evening and happy Friday!
A new XTension version for you all on this lovely Friday afternoon. A few new features and lots of bug fixes and optimizations.
http://machomeautomation.com/doku.php/beta
NEW: parameters property to the Execute Script <http://machomeautomation.com/doku.php/dictionary/events/executescript> verb. If you include the handler property then you can also include the parameters. It must be an apple script List and it must have the proper number of parameters for the handler that yu’re calling.
FIX: DoScript command no longer throws an error when including the “in” or “at” parameter to execute that script text in the future
FIX: an error is no longer logged if the database happens to save while you’re in the middle of editing a new global script
NEW: hold the Option key down when opening a script window and a “show unicode” button will be visible on the window. If you highlight some potentially problematic characters this will display the actual bytes of which they are made. This is completely useless for anyone who isn’t having a problem, but the output may tell me what unicode character you’re bumping into that Applescript is choking on making it easier for me to filter it properly.
FIX: The log automatically rolling when it reached 10 meg would also log several errors during the process that weren’t really errors at all. This fixes that and no incorrect errors are logged when the log rolls itself.
OPT: the archive video page on webRemote now loads considerably faster from folders that have hundreds of dates or hundreds of movie files in them. More information is displayed and while the autoplay is still not 100% it is more likely to start playing immediately than it was before.
OPT: The database is much faster to save than previously. Only structures that have actually been changed or scripts that have actually been run are written back out to disk making this usually much faster.
FIX: It was possible to have an update to the video archive path that did not get sent to all the web interfaces depending on the timing of the connection to Video Picture or the changing of the path later. This version now properly updates all links to the archive folder whenever it changes and regardless of the timing of the connection from video pitcher.
FIX: the timeout between frames in the video system of the web remote was set incorrectly and it may have shown the window blinds effect to denote a stalled stream much too soon. This version only shows the stream stalled effect of window blinds on the last frame when more than 10 seconds have passed since a frame was received.
FIX: View windows now properly show in the “windows” menu if they are open.
NEW: A potential work around to a problem low down in AppleScript itself. It may be that under some circumstances Applescript can leak a record or a list reference until it’s tables fill up making it impossible for XTension to continue to run some existing scripts or create new ones. If you’re getting table overflow errors please create a scheduled event that runs a global script that just does one single command: “resetOSAComponents()” that will release and free our connection to applescript and create a new one, hopefully freeing anything still hanging around improperly. All scripts are re-loaded into the new component instance. Since the actual error that I’m fighting here took 6 days of stress testing to duplicate this is not an extensively tested fix, but talking to other apple script implementors has made it a good candidate for a fix. I’ll make it automatic when I’m sure it doesn’t introduce any other problems. This fix is for Brian, nobody else should do this at all, ever, until I get some more info on it. Brian should create a scheduled event to run that script once a day at 3am or some such and let me know what happens in a week if the problem has recurred or if this fixes it.
In addition to those things the wiki got some significant updating this week, a few new articles and lots of updates to the verb pages.
Keep in mind though that no matter how far behind the wiki might be, the dictionary in XTension itself is always up to date on the description of the verbs it supports. You can open this by dragging XTension onto the script editor or selecting Open Dictionary from the script editors File menu and then navigating to XTension. If you’ve just updated the XTension version you may have to quit and restart the script editor to get it to show the new changes, it seems to only load an applications dictionary once per run cycle and then will not reload it until you quit and restart.
Thanks,
James
James Sentman http://www.PlanetaryGear.org http://MacHomeAutomation.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20160318/1a697899/attachment.html>
More information about the XTensionList
mailing list