Script to convert tables to paragraphs

Jim Owens jowens at storm.ca
Tue Nov 26 08:43:28 PST 2013


AutoIT is capable of opening documents, editing them, and closing them 
in FrameMaker (by pretending to be a user driving the menus).

On 2013-11-26 11:10, Rick Quatro wrote:
>
> I agree with your assessment of AutoIT and add my endorsement. 
> However, it works in kind of a "playback mode" where the interface 
> steps get executed on the active document. This is good for one-off 
> tasks where you want to mimic what happens in the interface. With 
> ExtendScript/FrameScript, you work with commands that can not only 
> work on the active document, but on invisible documents that the 
> script opens, saves, and closes for you. This is advantageous if you 
> have a task to perform on all of the document sin a book. I would 
> consider AutoIT and FrameMaker scripting programs to be complementary.
>
> Rick
>
> Rick Quatro
>
> Carmen Publishing Inc.
>
> 585-366-4017 **NEW**
>
> rick at frameexpert.com
>
> *From:*framers-bounces at lists.frameusers.com 
> [mailto:framers-bounces at lists.frameusers.com] *On Behalf Of *Shmuel 
> Wolfson
> *Sent:* Tuesday, November 26, 2013 10:10 AM
> *To:* framers at lists.frameusers.com
> *Subject:* Re: Script to convert tables to paragraphs
>
> And the free editor that comes with it provides autocompletion and 
> context-sensitive help.
>
> Regards,
> Shmuel Wolfson
> 052-763-7133
>
> On 26-Nov-13 4:27 PM, Jim Owens wrote:
>
>     AutoIT is a powerful scripting language, and it comes with good
>     documentation. It's intended to act as a surrogate for a human, by
>     detecting screen or window activity and sending mouse or keyboard
>     responses, but it's also very good for general-purpose programming.
>
>     It includes the ability to compile your AU3 program to EXE, so
>     that you don't have to start up the scripting environment to run
>     the script.
>
>     On 2013-11-26 08:10, Shmuel Wolfson wrote:
>
>         Attached is an AutoIt script for this. AutoIt is a free
>         scripting language for Windows. It's very easy to write AutoIt
>         scripts for easy things like typing shortcut keys. You have to
>         download and install AutoIt in order to run this.
>
>         Below is the script as well, but it has to be in a text file
>         with a .AU3 extension in order to run it. You can see how
>         simple it is. And I added a lot of comments to make it easier
>         to understand. If you need more info, let me know.
>
>         Maybe one day I will get into ExtendScript, but AutoIt is so
>         much easier and more pleasant to use that it's worth considering.
>
>         Regards,
>         Shmuel Wolfson
>         Technical Writer
>         052-763-7133
>
>         ; this script converts tables to text
>         ; find the desired table once, before running the script
>
>         Opt("WinTitleMatchMode", 2) ; this sets the title match to be
>         anywhere in the window title
>
>         Dim $max
>         Dim $x = 1
>
>         $max = InputBox("","How many tables?","10")
>         WinActivate(".fm") ; this activates the window that has .fm in
>         the title bar (which may be hidden)
>         WinWaitActive(".fm")
>         While $x <= $max
>             Send("^+f") ; presses CTRL+SHIFT+f to find next
>             Sleep(100) ; pause 100 milliseconds - you may need to
>         increase this time if you have a slow computer
>             Send("!tvc") ; presses ALT+t,v,c to convert the table to text
>             Sleep(100) ; pause 100 milliseconds - you may need to
>         increase this time if you have a slow computer
>             $x = $x + 1
>         WEnd
>
>         ----------------------
>
>         On 26-Nov-13 12:35 PM, Yves Barbion wrote:
>
>             Hi group
>
>             I'm looking for a script which does the following:
>
>
>             1. Find tables with a specific table tag, for example
>             "graphic_table".
>
>             2. Convert those tables to paragraphs (row by row).
>
>             Anyone?
>
>             Thanks in advance
>
>             -- 
>             Yves Barbion
>             www.scripto.nu <http://www.scripto.nu>
>
>
>
> _______________________________________________
>
>
> You are currently subscribed to framers as jowens at storm.ca.
>
> Send list messages to framers at lists.frameusers.com.
>
> To unsubscribe send a blank email to
> framers-unsubscribe at lists.frameusers.com
> or visit http://lists.frameusers.com/mailman/options/framers/jowens%40storm.ca
>
> Send administrative questions to listadmin at frameusers.com. Visit
> http://www.frameusers.com/ for more resources and info.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.frameusers.com/pipermail/framers-frameusers.com/attachments/20131126/785e33ff/attachment.htm>


More information about the framers mailing list