Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 1.36 KB

README.md

File metadata and controls

28 lines (22 loc) · 1.36 KB

AppleScript

AppleScript is a simple scripting language developed by Apple that can be used to automate tasks on macOS.

You can read about automating the UI using AppleScript here.

Repetitively load and unload wallets

This script continuously loads and unloads 2 wallets using the GUI.

It can be used to produce a scheduler crash in Bitcoin Core.

tell application "System Events" to tell process "Bitcoin Core"	
	repeat
		click menu item "Close Wallet..." of menu "File" of menu bar 1
		click button "Yes" of group 1 of window 1
		delay 0.2
		click menu item "Close Wallet..." of menu "File" of menu bar 1
		click button "Yes" of group 1 of window 1
		delay 0.2
		click menu item "[default wallet]" of menu "Open Wallet" of menu item "Open Wallet" of menu "File" of menu bar 1
		delay 0.2
		click menu item "test" of menu "Open Wallet" of menu item "Open Wallet" of menu "File" of menu bar 1
		delay 0.2
	end repeat
end tell