Copy string temporary to TextEdit on MacOS

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Copy string temporary to TextEdit on MacOS

Post by [-hh] » Fri Mar 02, 2018 6:32 pm

In a recent post
   http://forums.livecode.com/viewtopic.ph ... 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
shiftLock happens

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”