Hello,

Am Donnerstag, 26. Mai 2016 21:28:13 UTC+2 schrieb Niklas Mischkulnig:
>
> Hello,
>
>>
> Does it then works? Does it also works when starting from finder?
>>
>
> From Hugin, it makes no difference but it still works perfectly with 
> Finder.
>
> (I don't know if it's important, but MacOpenFiles gets always called after 
> the first text
> in the log window appears.)
>

That's strange.
You should get the filename 2 times First with args .. and  then with param 
prefix.
Are you sure that all was correctly rebuild?

I searched in the code of wxWidgets and added some more code (beside 
commented out in my last mail).
Could you apply the attached code and try again? (Please check that it is 
correctly applied.) 
Thanks.

Thomas

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/2b7573e8-7448-4256-8458-ccab70848c95%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
# HG changeset patch
# Parent  5422e269f546cdad9d305767a1e608420d10bcf3

diff --git a/src/hugin1/ptbatcher/PTBatcherGUI.cpp b/src/hugin1/ptbatcher/PTBatcherGUI.cpp
--- a/src/hugin1/ptbatcher/PTBatcherGUI.cpp
+++ b/src/hugin1/ptbatcher/PTBatcherGUI.cpp
@@ -167,6 +167,12 @@
     };
     wxCmdLineParser parser(cmdLineDesc, argc, argv);
 
+    for (int i = 0; i < argc; ++i)
+    {
+        wxString s;
+        s << "argv " << i << ": " << argv[i];
+        wxLogMessage(s);
+    };
     switch ( parser.Parse() )
     {
         case -1: // -h or --help was given, and help displayed so exit
@@ -221,7 +227,7 @@
         }
     };
 
-#ifdef __WXMAC__
+#if 0 //def __WXMAC__
     // see PTBatcherGUI::MacOpenFile for explanation
     m_macFileNameToOpenOnStart = wxT("");
     wxYield();
@@ -267,6 +273,9 @@
             while (parser.GetParamCount() > count)
             {
                 wxString param = parser.GetParam(count);
+                wxString s;
+                s << "Param " << count << ": " << param;
+                wxLogMessage(s);
                 count++;
                 if (!projectSpecified)	//next parameter must be new script file
                 {
@@ -396,6 +405,10 @@
     {
         m_frame->RunBatch();
     }
+#ifdef __WXMAC__
+    wxArrayString emptyFiles;
+    OSXStoreOpenFiles(emptyFiles);
+#endif
     return true;
 }
 

Reply via email to