Print command in IDE Communicator

In a build script for the IDE communicator I build 3 apps. At the end of each there is a notification that one app is finished. Since the building can take a couple of minutes I’ve sometimes missed the end of building. Therefore I thought I’d simply add a

print("Finished with building!")
to the end of the build script. This, however, only gives a result back and doesn’t show any messagebox:

{ "tag":"build", "response":"Finished with building!" }

I could write myself a simple AppleScript to execute with osascript in the shell. But this tends to be complicated because of the quoting.

Is there an easier way?

That’s true. It was necessary to have all command responses be sent back to the communicator for truly unattended operation. There is however a command specifically for showing dialogs now (actually since 2012r2):

ShowDialog(Message as String, Explanation as String, DefaultButtonCaption as String, CancelButtonCaption as String = "", AltButtonCaption as String = "", Icon as Integer = 0) as String

The Icon parameter uses the same values as the MessageDialog.Icon property. The returned String is the caption of the button that was pressed.

Thanks!