Thanks for all the suggestions. I finally got round to sorting this out today. Here’s what I found:
1. Wrap display dialog in a tell block: I was hoping this would work, as it was the most concise solution. Unfortunately, neither Finder nor System Events made any difference. I still saw the tabbing error when run in FastScripts.
2. User Myriad Tables Lib: This worked, but aside from my worries about the overhead, there were several drawbacks to this:
a. There’s no way to modify the table to eliminate the ‘Cancel’ button. The ‘Cancel’ button is redundant since in my script the “OK” button’s job is to dismiss that table, not accept an edit or change.
b. There’s no way to have the headers but turn off sorting. Not being able to turn off the sorting messes up the display if it’s accidentally clicked, and there doesn’t seem to be a way to recover the original format other than end the script and run it again.
c. I need to be able to distribute the script as a transparent, uncompiled plain text file, not a compiled bundle.
3. Use Shane’s showMessage handler: I just plumped the handler straight into the script. Fortunately, after making some minor adjustments, I was able to make this work in both script editors and from FastScripts. I can now get the static text display without tabbing errors.
Thanks to everyone, and especially Shane for the funky showMessage handler. I love it that we can throw Cocoa API calls into vanilla AppleScript these days!
Best
Phil
|