<div dir="ltr">Oops. It looks like I spoke too soon --- I now see that the response describing options is about "open", not "aquamacs."<div><br></div><div>Bill</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 8, 2019 at 4:46 PM William Slough <<a href="mailto:wslough@gmail.com">wslough@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">I tried this:<div><br></div><div>  > aquamacs -version</div><div><br></div><div>and was greeted with the following error message shown below. Perhaps this is enough information to answer your question? I have not updated my aquamacs in quite some time, so perhaps the options are somewhat different in a more modern version.</div><div><br></div><div>Bill Slough</div><div><br></div><div><p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">open: invalid option -- r</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Usage: open [-e] [-t] [-f] [-W] [-R] [-n] [-g] [-h] [-s <partial SDK name>][-b <bundle identifier>] [-a <application>] [filenames] [--args arguments]</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Help: Open opens files from a shell.</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">      By default, opens each file using the default application for that file.  </span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">      If the file is in the form of a URL, the file will be opened as a URL.</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Options: </span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">      -a                Opens with the specified application.</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">      -b                Opens with the specified application bundle identifier.</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">      -e                Opens with TextEdit.</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">      -t                Opens with default text editor.</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">      -f                Reads input from standard input and opens with TextEdit.</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">      -F  --fresh       Launches the app fresh, that is, without restoring windows. Saved persistent state is lost, excluding Untitled documents.</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">      -R, --reveal      Selects in the Finder instead of opening.</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">      -W, --wait-apps   Blocks until the used applications are closed (even if they were already running).</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">          --args        All remaining arguments are passed in argv to the application's main() function instead of opened.</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">      -n, --new         Open a new instance of the application even if one is already running.</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">      -j, --hide        Launches the app hidden.</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">      -g, --background  Does not bring the application to the foreground.</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">      -h, --header      Searches header file locations for headers matching the given filenames, and opens them.</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">      -s                For -h, the SDK to use; if supplied, only SDKs whose names contain the argument value are searched.</span></p>
<p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">                        Otherwise the highest versioned SDK in each platform is used.</span></p><p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p><p style="margin:0px;font-stretch:normal;font-size:14px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><br></span></p></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 8, 2019 at 3:40 PM Stephen Anderson <<a href="mailto:sra.linguist@gmail.com" target="_blank">sra.linguist@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Would it be possible to get more information on the command line invocation of Aquamacs? I ask because I use Aquamacs as an external editor for LaTeX files with TexShop as a viewer, and the latest version of TexShop has begun to make synchronization with external editors possible.  This involves writing a simple shell script that invokes the editor in question on the file being previewed in TexShop at the relevant line. For example, it is suggested that the relevant file for bbedit integration would be<br>
<br>
> #!/bin/sh<br>
> /usr/local/bin/bbedit "$2:$1”<br>
<br>
For TextMate, the equivalent would be <br>
<br>
> #!/bin/tcsh<br>
>      set path= ($path /Library/TeX/texbin /usr/texbin /usr/local/bin)<br>
>      /usr/local/bin/mate --line $1 $2 <br>
<br>
or (for /bin/sh) with provision for spaces in file names,<br>
<br>
>       #!/bin/sh<br>
>       /usr/local/bin/mate --line "$1" "$2”<br>
<br>
The point is that this functionality seems to be provided if the command-line version of the editor allows arguments to specify a file and a line in that file. What arguments does the command-line version of Aquamacs allow? Unfortunately, installing the tool does not also install a man entry for it, and I can’t find the answer in the Aquamacs manual itself.<br>
<br>
Thanks,<br>
<br>
<br>
-- <br>
<br>
Stephen R. Anderson<br>
Dorothy R. Diebold Professor of Linguistics, Emeritus<br>
Yale University<br>
<br>
<br>
_____________________________________________________________<br>
MacOSX-Emacs mailing list<br>
<a href="mailto:MacOSX-Emacs@email.esm.psu.edu" target="_blank">MacOSX-Emacs@email.esm.psu.edu</a><br>
<a href="https://email.esm.psu.edu/mailman/listinfo/macosx-emacs" rel="noreferrer" target="_blank">https://email.esm.psu.edu/mailman/listinfo/macosx-emacs</a><br>
List Archives: <a href="http://dir.gmane.org/gmane.emacs.macintosh.osx" rel="noreferrer" target="_blank">http://dir.gmane.org/gmane.emacs.macintosh.osx</a><br>
</blockquote></div>
</blockquote></div>