[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Re: PDF diff script - how to run configured Diff viewer?

From: wwwald <arnout.standaert_at_gmail.com>
Date: Mon, 21 Dec 2015 02:03:40 -0800 (PST)

Yes, that does the trick to open the diff viewer.

One problem left: I still want to delete the temporary *.txt files (the output of pdftotext), after the diff viewer has been closed by the user.

Now, I'm using the Run() method of WScript.Shell to execute tortoiseproc. It has an option to wait for the called process to return, but this returns immediately after tortoiseproc has started the diff viewer, NOT after the diff viewer is closed by the user.
In other words, it waits for tortoiseproc to end, not for the diff viewer process to end.

Is it possible to have tortoiseproc NOT return, until after the diff viewer itself is closed?

Thanks,
wwwald

> On 18.12.2015 09:48, wwwald wrote:
> > Hello,
> >
> > I'm trying to produce a JS diff script for PDF files, based on pdftotext. I'm stuck on my last step - how to run TortoiseSVN's configured diff viewer, and compare the two TXT files that are produced.
> >
> > Is the TortoiseSVN JS API documented somewhere? How can I determine the diff viewer path, to run it afterwards?
> >
> > If I get this working, I'd be glad to contribute the script if appropriate.
>
>
> To start the diff viewer (TortoiseMerge by default), just call
> TortoiseProc.exe with the diff command:
> https://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-automation.html#tsvn-automation-basics
>
> example:
>
> tortoiseproc.exe /command:diff /path1:"first.txt" /path2:"second.txt"
>
>
> Or, you could also just start TortoiseMerge.exe directly:
>
> TortoiseMerge.exe /base:"first.txt" /mine:"second.txt"
> /basename:"first.pdf" /minename:"second.pdf"
>
> When starting TortoiseMerge, you can as in the example above also pass a
> descriptive name for the diffed files, which in your case would best be
> the original pdf filenames.
>
> Stefan
>
> --
> ___
> oo // \\ "De Chelonian Mobile"
> (_,\/ \_/ \ TortoiseSVN
> \ \_/_\_/> The coolest interface to (Sub)version control
> /_/ \_\ http://tortoisesvn.net

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3151536

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2015-12-21 11:03:48 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.