Re: send text returned to clipboard
Re: send text returned to clipboard
- Subject: Re: send text returned to clipboard
- From: yvan-koenig <email@hidden>
- Date: Tue, 18 Jan 2005 17:49:00 +0100
Le 18 janv. 2005 , à 17:04, Robert Ly a écrit :
I set a variable to the text returned of display dialog.
I would like copy the value of this variable to the clipboard
then paste it into a new TextEdit document
My initial try resulted in unknown contents in clipboard
I found scripts where data was defined in quotation marks as a
constant, but how about variables?
Bob Ly
Perhaps this may help:
set theVar to "I am a poor lonesome cowboy."
set the clipboard to theVar
tell application "System Events"
set frontmost of process "TextEdit" to true
keystroke "v" using {command down}
end tell
Yvan KOENIG
_______________________________________________
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