Testing on PPC 10.5.8 - just as you suspected

Works --> [MH-iMac:~/Pictures/Talmud] aks% open -b net.sourceforge.hugin.PTBatcherGUI FN-000004-FN-000010.pto

Does not work --> [MH-iMac:~/Pictures/Talmud] aks% open -b net.sourceforge.hugin.PTBatcherGUI -a FN-000004-FN-000010.pto
Unable to find application named 'FN-000004-FN-000010.pto'

Nor does same with full path --> [MH-iMac:~/Pictures/Talmud] aks% open -b net.sourceforge.hugin.PTBatcherGUI -a /Users/aks/Pictures/Talmud/ FN-000004-FN-000010.pto
LSOpenFromURLSpec() failed with error -10810.

This also does not work --> [MH-iMac:~/Pictures/Talmud] aks% open -b net.sourceforge.hugin.PTBatcherGUI /Users/aks/Pictures/Talmud/ FN-000004-FN-000010.pto -a
open: option requires an argument -- a
Usage: open [-e] [-t] [-f] [-W] [-n] [-g] [-h] [-b <bundle identifier>] [-a <application>] [filenames]
Help: Open opens files from a shell.
By default, opens each file using the default application for that file. If the file is in the form of a URL, the file will be opened as a URL.
Options:
      -a                Opens with the specified application.
-b Opens with the specified application bundle identifier.
      -e                Opens with TextEdit.
      -t                Opens with default text editor.
-f Reads input from standard input and opens with TextEdit. -W, --wait-apps Blocks until the used applications are closed (even if they were already running). -n, --new Open a new instance of the application even if one is already running. -g, --background Does not bring the application to the foreground. -h, --header Searches header file locations for headers matching the given filenames, and opens them.


I see when checking "open" on a 10.4.11the supported arguments list is even shorter. On 10.4.11 only -e, -t, -f, -b, and -a are listed.


Allan


On Jun 17, 2011, at 11:03 AM, Harry van der Wolf wrote:

Hi Allan,

2011/6/17 AKS-Gmail-IMAP <aksei...@gmail.com>
Harry,

For this build on a PPC 10.5.8 Stitch does not start PTBatcherGui. This is what the console shows after specifying the output prefix when initiating a Stitch.


6/17/11 6:10:57 AM [0x0-0x2df2df].net.sourceforge.hugin.Hugin[8982] -h, -- header Searches header file locations for headers matching the given filenames, and opens them. 6/17/11 6:13:08 AM [0x0-0x2df2df].net.sourceforge.hugin.Hugin[8982] open: unrecognized option `--args' 6/17/11 6:13:08 AM [0x0-0x2df2df].net.sourceforge.hugin.Hugin[8982] Usage: open [-e] [-t] [-f] [-W] [-n] [-g] [-h] [-b <bundle identifier>] [-a <application>] [filenames] 6/17/11 6:13:08 AM [0x0-0x2df2df].net.sourceforge.hugin.Hugin[8982] Help: Open opens files from a shell. 6/17/11 6:13:08 AM [0x0-0x2df2df].net.sourceforge.hugin.Hugin[8982] By default, opens each file using the default application for that file. 6/17/11 6:13:08 AM [0x0-0x2df2df].net.sourceforge.hugin.Hugin[8982] If the file is in the form of a URL, the file will be opened as a URL. 6/17/11 6:13:08 AM [0x0-0x2df2df].net.sourceforge.hugin.Hugin[8982] Options: 6/17/11 6:13:08 AM [0x0-0x2df2df].net.sourceforge.hugin.Hugin[8982] - a Opens with the specified application. 6/17/11 6:13:08 AM [0x0-0x2df2df].net.sourceforge.hugin.Hugin[8982] - b Opens with the specified application bundle identifier. 6/17/11 6:13:08 AM [0x0-0x2df2df].net.sourceforge.hugin.Hugin[8982] - e Opens with TextEdit. 6/17/11 6:13:08 AM [0x0-0x2df2df].net.sourceforge.hugin.Hugin[8982] - t Opens with default text editor. 6/17/11 6:13:08 AM [0x0-0x2df2df].net.sourceforge.hugin.Hugin[8982] - f Reads input from standard input and opens with TextEdit. 6/17/11 6:13:08 AM [0x0-0x2df2df].net.sourceforge.hugin.Hugin[8982] -W, --wait- apps Blocks until the used applications are closed (even if they were already running). 6/17/11 6:13:08 AM [0x0-0x2df2df].net.sourceforge.hugin.Hugin[8982] -n, -- new Open a new instance of the application even if one is already running. 6/17/11 6:13:08 AM [0x0-0x2df2df].net.sourceforge.hugin.Hugin[8982] -g, -- background Does not bring the application to the foreground. 6/17/11 6:13:08 AM [0x0-0x2df2df].net.sourceforge.hugin.Hugin[8982] -h, -- header Searches header file locations for headers matching the given filenames, and opens them.


Allan


Thanks for this output. It clarifies it all. The open on Leopard doesn't support the --args statement.

My open says:
Usage: open [-e] [-t] [-f] [-W] [-R] [-n] [-g] [-h] [-b <bundle identifier>] [-a <application>] [filenames] [--args arguments]
Help: Open opens files from a shell.
By default, opens each file using the default application for that file. If the file is in the form of a URL, the file will be opened as a URL.
Options:
      -a                Opens with the specified application.
-b Opens with the specified application bundle identifier.
      -e                Opens with TextEdit.
      -t                Opens with default text editor.
-f Reads input from standard input and opens with TextEdit.
      -R, --reveal      Selects in the Finder instead of opening.
-W, --wait-apps Blocks until the used applications are closed (even if they were already running). --args All remaining arguments are passed in argv to the application's main() function instead of opened. -n, --new Open a new instance of the application even if one is already running. -g, --background Does not bring the application to the foreground. -h, --header Searches header file locations for headers matching the given filenames, and opens them.


Can you issue the following command in the terminal on an existing project? open -b net.sourceforge.hugin.PTBatcherGUI /path/to/project/ whatever.pto

If that works can you then do a:
open -b net.sourceforge.hugin.PTBatcherGUI -a /path/to/project/ whatever.pto
and/or a:
open -b net.sourceforge.hugin.PTBatcherGUI /path/to/project/ whatever.pto -a

The first command should open PTBatchergui and the project to the queue but I'm afraid that the second and third command won't work. I have now been searching on Google and found that 10.6 supports for the first time command line options to be fed to a bundle. This would mean that on 10.5 and below the call needs to be changed to go without the --args and switches.
But of course you never know so please try.

@Tiger users: please issue the command "open" in a terminal and please copy the output into a mail.

Harry

--
You received this message because you are subscribed to the Google Groups "Hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx

--
You received this message because you are subscribed to the Google Groups "Hugin and 
other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to hugin-ptx@googlegroups.com
To unsubscribe from this group, send email to 
hugin-ptx+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/hugin-ptx

Reply via email to