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!
I created an Applescript in response to the PersonalBrain Forums, which launches a VoodooPad page from the current active thought in PersonalBrain:
– Copy name of active thought
tell application “PersonalBrain” to activate
set old_clipboard to the clipboard
set the clipboard to “”
repeat while (the clipboard) is “”
tell application “System Events”
tell process “PersonalBrain”
perform action “AXPress” of menu item “Copy as Text” of menu 1 of menu bar item “Edit” of menu bar 1
end tell
end tell
end repeat
– Strip trailing newline
set active_thought_name to (characters 1 thru -2 of (get the clipboard)) as string
– If page does not exist in VoodooPad, create it
– Open page in VoodooPad
tell application “VoodooPad”
activate
tell document 1
open page with name active_thought_name
end tell
end tell
set the clipboard to old_clipboard
VoodooPa