Archive

Posts Tagged ‘VoodoPad’

PersonalBrain and VoodooPad

October 27th, 2009 Sean DeNigris 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