was thinking about this a bit. Only things I could come up with was to check to see if there are command line switches that you can hand off to the GUI program that will give you the behaviour you want. I am guessing that there probably is not. (I think a previous poster mentioned this, so nothing new here)

The other thought I had was to keep track of the process id AND the lock state on the file that you hand to the GUI program. My thinking is that if the GUI program is modifying the PDF file you have handed it, it is probably locking it until it is done processing. If that is the case, you might be able to issue a kill to the pid after the lock is removed. Am not sure of how OSX keeps track of processes, or how you kill them off.

Good luck! :-)

...the majority is always wrong, and always the last to know about it...


In reply to Re: Running an external GUI program by wjw
in thread Running an external GUI program by mdrisser

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.