Select/copy/paste?

Joined
Mar 28, 2006
Messages
198
Reaction score
5
I'm trying to create a script that will open a selected message in Entourage (have that part), select all the text in the body of the email, copy the text, then switch to FileMaker (have this part too)... It's the "Select All" and "Copy" functions I'm having difficulties and frustrations with...
 

Ric

Joined
May 14, 2004
Messages
4,260
Reaction score
5
Hi there and welcome,

the easiest way is to turn on GUI Applescripting...

then you can use...elements of this in your script...


activate application "Entourage"
tell application "System Events"
tell process "Entourage"
-- GUI Scripting statements:
--select all
keystroke "a" using command down
delay 1
--copy
keystroke "c" using command down
--paste
keystroke "v" using command down
end tell
end tell

regards

Ric
 
Joined
Mar 28, 2006
Messages
198
Reaction score
5
Awesome! Thanks! It works perfectly! I've had 3 people fighting with this scripting all day!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top