• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Clipboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: list to a text representation of that list (followup)
  • Next by Date: Re: Save image from raw data class variable
  • Previous by thread: Re: Save image from raw data class variable
  • Next by thread: ichat
  • Index(es):
    • Date
    • Thread