View Single Post
I'm using a shell script to generate applescript to produce a number of figures. The figures contain filled shapes which must be logically in front of other shapes and lines. I'm relying on the filling property of front shapes to hide the lines and so forth that are behind them.

For each figure, the script puts out a “make new document... tell canvas...” followed by a number of “make new line...” and “make new shape” commands.

What I've observed is that when this script is executed (by osascript), the first-drawn shapes and lines end up in front. That is, in order to get the precedence I need, I have to reverse the order one would use if doing it by hand, and put out what I want to be in front of everything first, and what I want to be behind everything last. It's not a big deal, but I did need to scratch my head a bit to figure out what was going on.

My question is: is this going to stay this way (i.e., it's a feature, not a bug), or is this something that will be corrected at some point (i.e., I'll need to be ready to change my scripts)?

Greg