Archive

Posts Tagged ‘PersonalBrain’

Undo last action in PersonalBrain

November 9th, 2009 No comments

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:

PersonalBrain and VoodooPad

October 27th, 2009 No comments

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

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