How can I paste text into an blank AppleScript?
Hi all,
Just started using Yosemite (up from Snow Leopard), and I'm trying to figure out how to create a simple AppleScript from scratch, by pasting text into the script. Automator doesn't seem to want to let me do this, and it forces me to drop items from the preselected apps on the left.
What I'd like to create is a Word script that pastes text according to the format in the file. The script is below:
tell application "Microsoft Word"
paste and format (text object of selection) type format surrounding formatting with emphasis
end tell
(I grabbed this from http://word.mvps.org/mac/pastetextas.html)
So in other words, how do I create a script using the code above? Any advice would be appreciated. Thanks!
MacBook Pro with Retina display, OS X Yosemite (10.10.3)