Posted By

binaryghost on 09/27/11


Tagged

applescript


Versions (?)

Strip formatting from clipboard content and paste


 / Published in: AppleScript
 

  1. do shell script ("clip=`pbpaste`;tmp=`mktemp -t cp`.txt;echo $clip > $tmp;cat $tmp | pbcopy")
  2. tell application id "com.apple.systemevents"
  3. keystroke "v" using {command down}
  4. end tell

Report this snippet  

You need to login to post a comment.