Re: AppleScript Editor (Result Window)
Re: AppleScript Editor (Result Window)
- Subject: Re: AppleScript Editor (Result Window)
- From: Mr Tea <email@hidden>
- Date: Wed, 03 Jan 2001 16:59:58 +0000
This from Dave Moen - dateline 3/1/01 11.17 am:
>
Is is possible to get the text out of the result window?
Yes, by referring to 'the result' in your script. If the contents of the
result window are not displayed as a text string, you may need to coerce
them by referring to 'the result as text'. Then you can send this to the
clipboard and do what you will with it from there.
A simple example would be:
(current date) as text
set the clipboard to the result
or
(current date)
set the clipboard to the result as text
The script does not have to be run from within the Script Editor (ie, so
that the result window is available) to achieve this. An applet or a
compiled script run from a script menu will do the same thing.
Regards
Mr Tea
--
Brew of the day: Breakfast Blend