Mac Help Forums


Reply
Thread Tools Display Modes

Select/copy/paste?

 
Senior Member
zeyhra's Avatar
Join Date: Mar 2006
Location: Santa Cruz, California
Posts: 198
 
      28th March 2006
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...
 
Reply With Quote
 
 
 
 
Ric Ric is offline
Senior Member
Ric's Avatar
Join Date: May 2004
Posts: 4,260
 
      29th March 2006
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
 
Reply With Quote
 
Senior Member
zeyhra's Avatar
Join Date: Mar 2006
Location: Santa Cruz, California
Posts: 198
 
      29th March 2006
Awesome! Thanks! It works perfectly! I've had 3 people fighting with this scripting all day!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy and Paste kj6oc New to Macs? 3 4th January 2012 02:32 PM
copy and paste from ODT J Burns Apps 18 23rd June 2011 11:46 PM
copy/paste ClipMasterMC Automator 0 30th October 2007 08:05 PM
copy/paste ClipMasterMC AppleScript 0 30th October 2007 08:05 PM
Copy and paste John Apps 4 16th November 2003 07:18 PM


All times are GMT +1. The time now is 10:22 PM.
Mac-Help.com is an independent website and is not affiliated with Apple Inc.


Welcome!
Welcome to the Mac Help Forums
 


Latest Threads
Yikes! Teacher needs help!
Mollyc4627 (1 Hour Ago, 08:57 PM)

Unable to log in to websites
AMonty20 (4 Hours Ago, 05:52 PM)

Add Different Speech Commands
bae_22 (5 Hours Ago, 04:40 PM)

Login (2 macs) passwords spontaniously changed?
Roger Vaught (6 Hours Ago, 03:31 PM)

Best car charger or inverter for Macbook Pro?
imeme87 (7 Hours Ago, 03:22 PM)

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51