Page 1 of 1

Copy string temporary to TextEdit on MacOS

Posted: Fri Mar 02, 2018 6:32 pm
by [-hh]
In a recent post ... 98#p164598
I used shell("open ....") on Mac. Here another use of it
(may be mentioned somewhere else, was new for me).

Copy a string variable into a 'temporary' TextEdit window.

Code: Select all

on mouseUp
  put fld 1 into txt
  replace cr with "\n" in txt
  get shell("echo " & quote&txt&quote& "| open -f")
end mouseUp