(* Drop a docx file on this applescript and it's plain text contents will be copied to the clipboard. --CBT: 2006-12-08 *) on open this_item set docxPath to POSIX path of this_item try do shell script "unzip -p " & docxPath & " word/document.xml | sed -e 's/<[^>]\\{1,\\}>//g; s/[^[:print:]]\\{1,\\}//g' | pbcopy" end try end open on run display dialog "Drop a docx file on this applescript and it's plain text contents will be copied to the clipboard." buttons {"Ok"} giving up after 10 default button 1 end run