Getting Scripts as an RTF file

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10453
Joined: Fri Feb 19, 2010 10:17 am

Getting Scripts as an RTF file

Post by richmond62 »

Screenshot_2026-08-03_11-55-01.jpg
-
This will produce a list of the scripts in a stack.
Attachments
Sucker.livecode.7z
Stack.
(1.25 KiB) Downloaded 33 times
Klaus
Posts: 14334
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Getting Scripts as an RTF file

Post by Klaus »

Here a version that will also colorize the script, so you have the colors in the RTF file, too!
Just a one-liner. :-)

CAVEAT:
This will only work in the IDE, the colorization is in the engine.
Attachments
Sucker_color.livecode.zip
(1.78 KiB) Downloaded 33 times
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10453
Joined: Fri Feb 19, 2010 10:17 am

Re: Getting Scripts as an RTF file

Post by richmond62 »

Super, Thanks. 8)
EMR
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5
Joined: Wed Jun 14, 2006 12:24 pm

Re: Getting Scripts as an RTF file

Post by EMR »

Interesting and helpful!
I did experience a problem with the second version (Sucker_color; the original ran fine). I think the button script refers to itself as "Sucker" when it is actually "Sucker_color" (?)
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10453
Joined: Fri Feb 19, 2010 10:17 am

Re: Getting Scripts as an RTF file

Post by richmond62 »

Yes; that's right: Klaus did not change the name of the stack in the script.

Just open it up and change it. 8)
Klaus
Posts: 14334
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Getting Scripts as an RTF file

Post by Klaus »

For your convenience, here the corrected stack...
Attachments
Sucker_color2.livecode.zip
(1.79 KiB) Downloaded 5 times
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10453
Joined: Fri Feb 19, 2010 10:17 am

Re: Getting Scripts as an RTF file

Post by richmond62 »

Klaus . . .

did you edit my stack using the out-dated Community version of LIveCode, or a later Commercial version?
Klaus
Posts: 14334
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Getting Scripts as an RTF file

Post by Klaus »

I used LC 10.0.6 RC1 commercial for editing.
Does it not work in earlier Community versions?

Just tested it without problems in "HyperXTalk".
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10453
Joined: Fri Feb 19, 2010 10:17 am

Re: Getting Scripts as an RTF file

Post by richmond62 »

It works: that is not the problem.

I wonder if, having edited a stack made with an open source version of xTalk it loses it 'opensourceness' by being edited with a Commercial version/
Klaus
Posts: 14334
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Getting Scripts as an RTF file

Post by Klaus »

Sorry, no idea about that...
Post Reply