Clipboard
Clipboard
- Subject: Clipboard
- From: Pierre Doyon <email@hidden>
- Date: Thu, 17 Mar 2005 11:35:35 -0500
Hi every body,
I work on MAC OSX 10.3 and I have a problem with the fellowing script.
This script replace the first word of the content of the message with the selection.
tell application "System Events"
if UI elements enabled then
--Fill de clipboard with the selection in the Window's Mail
tell application "Mail" to activate
key down command
keystroke "c"
key up command
else
display dialog "Error"
end if
end tell
tell application "Mail"
set laSel to the clipboard rule type text
set word 1 of content of outgoing message 1 to laSel
end tell
If I execute this script in the "Scripts Editor", it is all wright.
But if I launch this script by a short cut in the menu of Mail, the clipboard seem fill with the previous content of the clipboard.
How can I modify this script to reach my goal?
Thank very much,
Pierre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden