Positive. I just want to type script in a friendly environment like TextMate, where keywords are highlighted while typing, not as in AppleScript Editor with highlights after run. But unfortunately Command-Option-B didn't help neither. "syntax error: expected end of line but found identifier" occurred.
But thanks though.

On Mon, 14 Feb 2011 09:13:13 -0800, Dru Kepple wrote:
On Feb 14, 2011, at 2:12 AM, Kaster Might wrote:

I'm trying to create simplest applescript with dialogbox but textmate shows the error message

Execution Error: No user interaction allowed.

although everything is ok when launching by applescript editor.
Are you creating an AppleScript file, then hitting Command-R to run it? That will basically run your file through osascript, which is the command-line script executor. And it doesn't permit user interaction, like with display dialog. You might try Command-Option-B, which compiles the script in Script Editor, which will probably take the allure of editing in TextMate away, but it might give you what you're after.


-- 
Kaster Might