mercredi 4 mars 2015

Help with Applescript to paste text into Word


I've just started using Apple Script and I was trying to make Word paste some text in an unformatted way. This is the code I am using:



tell application "Microsoft Word"
tell selection
try
set theClip to Unicode text of (the clipboard as record)
type text text theClip
end try
end tell
end tell


But the thing is I want to add a paragraph at the end of it every time I paste it but I can't figure it out how to do it. I know it is a stupid question but I would be glad if any of you could help me.





Aucun commentaire:

Enregistrer un commentaire