[platypus-dev] Re: Repeated invocations

  • From: "Andreas F.X. Siegert" <afx@xxxxxxxxxxxxx>
  • To: platypus-dev@xxxxxxxxxxxxx
  • Date: Sun, 10 Apr 2016 20:29:40 +0200

Thanks for the quick reply!

On 10.04.16 18:38, Amer Neely wrote:

In your case, without seeing the code it's difficult to say why you are
getting your results. If the code executes OK from Terminal but not as an
app, it may be waiting for some kind of user input.
Nope.
It is a script that I have been using as a backend in imaging apps for ages (Bibble and AfterShot on Windows and Linux, Lightroom on Windows).
I just need to wrap this into an app as Capture One will only run Apps on Mac and it needs the drop mechanism for the file name.

I know from previous problems of mine that Platypus does not handle
JavaScript, or interaction very well if at all. Check your code to see if
that may be the case.
Not in this case.
As I wrote, it works at first invocation like a charm, but quick successions are a problem.
If I wait for a little bit, the next invocation just runs fine.

The script has no temp files or anything else that could lead to sync issues.

If I run it directly it works just fine in loops in quick successions.

Are you logging any errors? In development I add the following BEGIN at the
top of all my scripts:

8< ----------- cut here -------- 8<
BEGIN
{
     open (STDERR,">> $0.txt");
     print STDERR "\n", scalar localtime, "\n";
}
8< ----------- cut here -------- 8<

Might be a good idea. I'll add that.
Hmm, no file?
But then this is expected as the Perl script itself works like a charm and has nothing on stderr or stdout in normal operation.

Interestingly enough, if I loop the app on the commandline and background each invocation it works. But if loop it to execute sequentially, only the first invocation works.

cheers
afx
--
You just have to live and life will give you pictures. – HCB
http://images.afximages.com/

Other related posts: