Undo last action in PersonalBrain
Until now, undoing your last action in PersonalBrain has been annoying – there is no shortcut, so you had to choose undo from the menu.
Here’s a short Applescript that does it for you:
activate application “PersonalBrain”
tell application “System Events”
tell process “PersonalBrain”
try
– See if there is a list of undos
get value of attribute “AXChildren” of menu item “Undo” of menu 1 of menu bar item “Edit” of menu bar 1
– If there is, undo the most recent
click menu item 1 of menu 1 of menu item “Undo” of menu 1 of menu bar item “Edit” of menu bar 1
on error
– There are no children, so click Undo
click menu item 1 of menu 1 of menu bar item “Edit” of menu bar 1
end try
end tell
end tell
Assign a shortcut to the above script and… you have vanilla undo… yay!