Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (10 sloc) 344 Bytes
import JSTalk
vp = JSTalk.application("VoodooPad")
print(vp)
firstDoc = vp.orderedDocuments().objectAtIndex_(0)
for pageKey in firstDoc.keys():
print(pageKey)
page = firstDoc.pageForKey_(pageKey)
if (page.uti() == "com.fm.page"):
pageText = page.dataAsAttributedString().string()
print(pageText)