https://github.com/binaryage/holycrash-osax
Crash any Mac application using an AppleScript event (for debugging purposes)
https://github.com/binaryage/holycrash-osax
Last synced: 2 months ago
JSON representation
Crash any Mac application using an AppleScript event (for debugging purposes)
- Host: GitHub
- URL: https://github.com/binaryage/holycrash-osax
- Owner: binaryage
- License: other
- Created: 2010-11-17T23:28:25.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2012-09-24T07:28:47.000Z (over 13 years ago)
- Last Synced: 2025-03-26T10:48:12.138Z (10 months ago)
- Language: Objective-C
- Homepage: http://binaryage.com
- Size: 102 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
# HolyCrash.osax
**HolyCrash** is a scripting addition which adds a new Apple Script command to crash any application. Provides you with God's powers.
God answer you on the day you crash,
The name God-of-Jacob put you out of harm's reach,
Send reinforcements from Holy Hill,
Dispatch from Zion fresh supplies,
Exclaim over your offerings,
Celebrate your sacrifices,
Give you what your heart desires,
Accomplish your plans.
-- Psalm 20 (The Message)
This is useful when you want to debug crash scenarios of your Mac application (for example a crash reporting dialog).
# Installation
git clone git://github.com/binaryage/holycrash-osax.git
cd holycrash-osax
xcodebuild
If you see `** BUILD SUCCEEDED **` that means that you have HolyCrash installed in `~/Library/ScriptingAdditions/HolyCrash.osax`
# How to crash an app?
Let's say you want to crash Safari...
You have to relaunch Safari after first installation of HolyCrash.osax. In other case the AppleScript will fail.
## Applescript
tell application "Safari" to «event BAHCcrsh»
## Command line
osascript -e "tell application \"Safari\" to «event BAHCcrsh»"
#### License: [MIT-Style](https://raw.github.com/binaryage/holycrash-osax/master/license.txt)