delete/remove image/picture from rtf or text?

Hello,

I’m copying etymologies from a dictionary to devon. With my dictionary, Le Petit Robert, the text contexts contains an image. I’d prefer to remove it before putting into DT. Not sure if it’s better to do this before or after? If after, I’m not sure how to find images in “rich text” of the content record. If before, im not sure but will look into it.

Gary

Here’s a simple script to remove attachments:


tell application "DEVONthink Pro"
	tell text of think window 1
		repeat with theAttribute in attribute runs
			if exists text attachment of theAttribute then set text of theAttribute to " "
		end repeat
	end tell
end tell

But you might also have a look at WordService.