%Persistent 63918,75650.248723 ,January,February,March,April,May,June,July,August,September,October,November,December Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday %String %String %Integer %Integer %Integer %String %TimeStamp %String Import MyClippings.txt 1 FileName="C:\Users\eduard\Desktop\My Clippings.txt" %Status Builds MyClippings.txt file from stored objects 1 FileName="C:\Users\eduard\Desktop\My Clippings2.txt" %Status Trims Text, deletes bookmarks 1 Converts ItemArr array dump into Properties structured array. Extracted properties: Title, Author, Type, Page, LocationStart, LocationEnd, Date, Text Input sample: ItemArr=4 ItemArr(1)="TITLE (AUTHOR)" ItemArr(2)="- Your TYPE on Page PAGE | Location LOCATIONSTART-LOCATIONEND | Added on WeekDay, DATE" ItemArr(3)="" ItemArr(4)="Text" Note, Page part may be missing, Location may be only one Do ##class(MyClippings.Item).ParceItem(.ItemArr) 1 %Status Converts Properties array into MyClippings.Item object and saves it. Input properties: Title, Author, Type, Page, LocationStart, LocationEnd, Date, Text 1 %Status Deletes all items where Type is a Bookmark 1 Converts one item from internal to Kindle format. Output sample: Смотритель. Книга 2. Железная бездна (Виктор Олегович Пелевин) - Your Highlight on Page 146 | Location 2226-2230 | Added on Sunday, December,30,,2012 01:38:14AM Умофон Ветхой Земли, несмотря на свою безблагодатность, был сосудом ритуальной некромантии. ========= 1 Id %String %Library.CacheStorage ^MyClippings.ItemD ItemDefaultData ^MyClippings.ItemD ^MyClippings.ItemI ^MyClippings.ItemS %%CLASSNAME Book Author LocationStart LocationEnd Type Date Text Page Title