Thanks to everyone who replied to my query. The GUI script by John Delacour and 
Bruce Van Allen should work fine for my purposes.

Regards,

Vic

On 3/22/07, at 11:37 AM -0700, Bruce Van Allen wrote:

> tell application "System Events"
>     set the clipboard to "" -- no spurious clipboard content
>     tell process "Preview"
>         set frontmost to true
>         keystroke "2" using command down -- use text Tool
>         keystroke "a" using command down
>         delay 1 -- or longer for large docs 
>         keystroke "c" using command down
>     end tell
> end tell
> set _text to the clipboard
> do shell script "cd; pbpaste > trash.txt; open -a bbedit trash.txt"

Reply via email to