Home > Applescript > Undo last action in PersonalBrain

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!

Categories: Applescript Tags:

windows 7 product key

windows 7 product key

windows 7 key generator

windows 7 key generator

free winrar download

free winrar download

winzip activation code

winzip activation code

free winrar

free winrar

winzip free download

winzip free download

winrar free download

winrar free download

winrar download free

winrar download free

winzip free download full version

winzip free download full version

windows 7 activation crack

windows7 activation crack

windows 7 crack

windows 7 crack

free winzip

free winzip
\n