0
나는이 샘플 애플 스크립트 코드를 기반으로, 루비/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
내 코드는 다음과 같습니다
내가 잘못 뭘하는지Appscript::CommandError: CommandError OSERROR: -10000 MESSAGE: Apple event handler failed.
아이디어 :
GH = app("GrowlHelperApp.app")
enabledNotifications = "AppscriptMessage"
GH.register(:as_application => "AppscriptHelper",
:all_notifications => enabledNotifications,
:default_notifications => enabledNotifications)
마지막 호출은 실패?