Applescript question
Bruce D'Arcus
bdarcus at mac.com
Wed Sep 4 13:07:01 PDT 2002
Thanks for this James. Any tips on how to get the proper headings tags?
Since headings work differently in LaTeX than in html, Docbook, etc.,
this doesn't quite work (here you add a "sub" to headings below the
first level, whereas you'd want to add a number for html, etc.)...
set myText to ""
repeat with itemNum from 1 to numItems
set myItem to item itemNum of the topicList
-- set myText to myText & "\\"
if (item 2 of myItem) > 1 then
repeat with subNum from 1 to ((item8/color> 2 of myItem) - 1)
-- set myText to myText & "sub"
end repeat
end if
set myText to myText & "<h1>" & item 1 of myItem & "</h1>" & return
if item 3 of myItem is not "" and includeNotes is true then
set myText to myText & return & item 3 of the myItem & return
end if
set myText to myText & return
end repeat
More information about the OmniOutliner-Users
mailing list