Skip to content

Instantly share code, notes, and snippets.

@gsampaio
Created September 4, 2012 19:50
Show Gist options
  • Save gsampaio/3625619 to your computer and use it in GitHub Desktop.
Save gsampaio/3625619 to your computer and use it in GitHub Desktop.
Xcode Debug Action Crash Growl Apple Script
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