Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 19 lines (10 sloc) 0.344 kB
ee99867 @ccgus oh geeze
authored
1 import JSTalk
2
21db634 @ccgus Changes to check and see if an application is running already before …
authored
3 vp = JSTalk.application("VoodooPad")
ee99867 @ccgus oh geeze
authored
4
5 print(vp)
6
7 firstDoc = vp.orderedDocuments().objectAtIndex_(0)
8
9 for pageKey in firstDoc.keys():
10 print(pageKey)
11
12 page = firstDoc.pageForKey_(pageKey)
13
14 if (page.uti() == "com.fm.page"):
15 pageText = page.dataAsAttributedString().string()
16 print(pageText)
17
18
Something went wrong with that request. Please try again.