<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks for pointing out the mistakes that I have been doing.<div>Now I took off the line in my .cshrc file (no more short cuts or alias)</div><div>Then I installed command line tools for aquamacs. So now I type the line below in terminal;</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>aquamacs filename<span class="Apple-tab-span" style="white-space:pre">           </span></div><div>Hope I got the right way to open a file with aquamacs. However, the *scratch* still pops-up as usual. When I put (kill-buffer "*scratch*") I get *Message* in another frame.</div><div>I also tried;</div><div>1.<span class="Apple-tab-span" style="white-space:pre">  </span>open filename  (a file associated with aquamacs)</div><div>it opens up in aquamacs with the scratch in a tab.</div><div>2.<span class="Apple-tab-span" style="white-space:pre">     </span>open -a /Applications/Aquamacs.app filename</div><div>still the same. No luck. If you think of other combinations please let me know. As far as the things I tried; I haven't been able to do what I intended to do.</div><div>Thanks-Harsha</div><div><br></div><div><div><div>On May 18, 2010, at 3:56 PM, David Reitter wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On May 18, 2010, at 3:41 PM, Harsha Attanayake wrote:<br><br><blockquote type="cite">David,<br></blockquote><blockquote type="cite">Sorry about that. The command I type in terminal:<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">  </span>aqua filename &<br></blockquote><blockquote type="cite">I have an alias in my home directory in file .cshrc as<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>alias aqua 'open /Applications/Aquamacs.app/'<br></blockquote><blockquote type="cite">and works fine.<br></blockquote><br>Well, it obviously does _not_ work fine.<br><br>The command above instructs your system to open two items.  The first is the application, and the second one is the file (using whatever application is bound to that file or file type). <br><br>Look up the man page for "open" and you'll find a better way.  Look up the command-line tool for Aquamacs (Tools menu) and you'll find a great way.<br><br><blockquote type="cite">When Aquamacs opens up it opens *scratch* in first tab and my file in the second tab. Also, when I include (kill-buffer "*scratch*") in Preference.el it opens *Message* in a separate frame (window) and does not open scratch in a tab.<br></blockquote><br>Sounds logical to me.<br><br><blockquote type="cite">Moreover, if I start up Aquamacs by double clicking the icon then it opens a *scratch* frame. Then if I go on to open a file through File>open file... it would open up in tab 2 and the scratch is still there in tab 1.<br></blockquote><br>Yes, as intended.<br><br>Even with the above fix, I'm not sure, of course, if the scratch buffer isn't shown in a tab, but I seem to recall that Emacs doesn't show it when a file is given as an argument to the application.  Let me know if fixing your open command helps; otherwise I'll dig and try to fix the bug.<br><br>--<br><a href="http://aquamacs.org">http://aquamacs.org</a> -- Aquamacs: Emacs on Mac OS X<br><a href="http://aquamacs.org/donate">http://aquamacs.org/donate</a> -- Could we help you? Return the favor and support the Aquamacs Project!_____________________________________________________________<br>MacOSX-Emacs mailing list<br><a href="mailto:MacOSX-Emacs@email.esm.psu.edu">MacOSX-Emacs@email.esm.psu.edu</a><br>http://email.esm.psu.edu/mailman/listinfo/macosx-emacs<br>List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx<br></div></blockquote></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div> ------------------------------------------------- </div><div> Harsha Attanayake                               </div><div> Graduate Student</div><div> Edward's Accelerator Lab 212                            <span class="Apple-converted-space"> </span></div><div> Department of Physics & Astronomy  </div><div> Ohio University                                     </div><div> Voice:740-593-0991                             </div><div> -------------------------------------------------</div></div></div></span></div></span></div></span></div></span></div></span> </div><br></div></body></html>