Created
September 4, 2012 19:50
-
-
Save gsampaio/3625619 to your computer and use it in GitHub Desktop.
Xcode Debug Action Crash Growl Apple Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "System Events" | |
set isRunning to (count of (every process whose bundle identifier is "com.Growl.GrowlHelperApp")) > 0 | |
end tell | |
if isRunning then | |
tell application id "com.Growl.GrowlHelperApp" | |
-- Create the crash notification | |
set the allNotificationsList to ¬ | |
{"Xcode Notification"} | |
-- Make a the crash notification enabled | |
set the enabledNotificationsList to ¬ | |
{"Xcode Notification"} | |
-- Register script with growl. | |
register as application ¬ | |
"Xcode AppleScript" all notifications allNotificationsList ¬ | |
default notifications enabledNotificationsList ¬ | |
icon of application "Xcode" | |
-- Send the crash notification... | |
notify with name ¬ | |
"Xcode Notification" title ¬ | |
"Run Failed" description ¬ | |
"iOS Application had an crash" application name "Xcode AppleScript" | |
end tell | |
end if |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment