Cocoa dialog with progress bar controllable by AppleScript