0
私は、このサンプルのAppleScriptコードに基づいて、ルビー/ Appscriptからうなり声しようとしているのうなり声しようとしているとき:アップルイベントハンドラの失敗(ルビー/ AppScript)
tell application "GrowlHelperApp"
set the enabledNotificationsList to {"Mail Notification"}
register as application "MailWidgetGrowlHelper" all notifications enabledNotificationsList default notifications enabledNotificationsList icon of application "Mail.app"
notify with name "Mail Notification" title (item 1 of argv) description (item 2 of argv) & return & return & (item 3 of argv) application name "MailWidgetGrowlHelper" icon of application "Mail.app" without sticky
end tell
私のコードは次のようになります。
GH = app("GrowlHelperApp.app")
enabledNotifications = "AppscriptMessage"
GH.register(:as_application => "AppscriptHelper",
:all_notifications => enabledNotifications,
:default_notifications => enabledNotifications)
最後の呼び出しをして失敗します。Appscript::CommandError: CommandError OSERROR: -10000 MESSAGE: Apple event handler failed.
私が間違ってやっている任意のアイデア?