When users have trouble with my Cocoa app, I ask them to run my data-gathering AppleScript which sometimes takes a few minutes to complete. While the script begins, it opens a new TextEdit document, and periodically indicates its progress by adding a line of text saying what data has just been gathered.
It was a quick hack. I've had a few problems with it, like yesterday when, it turned out, someone has the CalorieKing Nutrition and Exercise Manager installed on their Mac. This cute little app was apparently generated by Qt [1] for Classic Mac OS and OS X. Its Info.plist does not have an OS X bundle identifier. It has only an old-fashioned Bundle Creator Code which is 'ttxt', the same as TextEdit's. So that's why AppleScript is mistaking it for TextEdit.
So, anyhow, I've had enough headaches with TextEdit that about I'm ready to write a little scriptable Cocoa app which will open a window with a text view, then accept 'add text' AppleScript commands. I'll ship this as a helper inside my script bundle.
Before I do this, does anyone have a better idea?
Thanks,
Jerry
[1]
http://en.wikipedia.org/wiki/Qt_(framework)