I’m using the code snippet below to extract attachments from an e-mail message (by converting it to
rich). I’m no RTF expert, but in e-mail message it’s possible to check if something is an inline or non-inline attachment. Is this also possible in (converted) RTF documents?
if type of theRTF is rtfd then set thePath to path of theRTF tell text of theRTF if exists attachment in attribute runs then tell application "Finder" set filelist to every file in ((POSIX file thePath) as alias) repeat with theFile in filelist