[tip] A couple of tricks for the season :-)

Jim Ault JimAultWins at yahoo.com
Fri Dec 23 21:00:04 EST 2005


Using the message box <tricks>]


-->single line mode
[ answer folder "pick";put it ]
   -->and the msg box now contains the path you chose



[ answer folder "pick";put it;set the clipboarddata to it ]
   -->and the msg box
       -->& the clipboard    contain the path you chose


--> use your hilite the next line,
< answer folder "pick";put it;set the clipboarddata to it >
-->then type in the msg box
[ do the clipboarddata ]
   -->AGAIN the msg box
       -->& the clipboard    contain the path you chose

-->copy the following 3 lines, paste them into multi-line msg box
global gGetFull
put "answer folder " & quote & "pick" & \
quote & ";put it;set the clipboarddata to it" into gGetFull

* --> hit the enterkey to run this code
* -->then switch to single line message mode
* -->type the following and hit enter
[ do gGetFull ]
--or-- all lower case
[ do ggetfull ]
-->and now single line message will work until you *quit Rev*

so if you use the msg box to execute the same commands all the time,
just stick the line in a well-named gVariable and then [ do gVariable ]

Have fun
Jim Ault
Las Vegas



More information about the use-livecode mailing list