Getting an error-range from osacompile

Maybe I’m just ranting…

I was playing around with osacompile and osascript today, and was pleasently surprised to note that osascript returns two indexes indicating where an error has occured in the AppleScript source code. I was hoping that osacompile would also return this useful information… but it doesn’t.

For the project I have in mind, it would be really helpful to know, (via script), where an error occured in source code sent to osacompile. osascript is inappropriate because I don’t want to actually run the scripts, I just want to see where errors are occuring. Does it strike anyone else as odd that the runner command would report an error range while the compiling command does not… seems kind of backwards to me.

Yeah, I’m just ranting… :wink:

Yes. By the way, that would have made a great poll question. :slight_smile: