<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I just noticed that TeXShop might be in a subfolder of the applications folder. Then you should replace the command in the Applescript by<div><br></div><div>tell application "TeXShop"</div><div>activate</div><div>and tell</div><div><br></div><div>However, in this case TS has already to be open.</div><div><br></div><div>This might also serve as a reminder that applications should be located in /Applications and nowhere else.</div><div><br></div><div>Claus<br>
<br><div><div>On Sep 4, 2009, at 15:51, Claus Gerhardt wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">It is a bit cumbersome to switch between two applications. The cmd-tab command only switches back to last used application. Hence I offer two Applescripts to switch between TeXShop and BibDesk. One should be installed in BibDesk's Scripts menu, the other as a macro in TS.<div><br></div><div>To define a key shortcut for the script in BibDesk and also one for copying the cite-keys to the clipboard see the screen shot below.</div><div><br></div><div>Claus</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 42.6px; text-indent: -42.7px; font: normal normal normal 16px/normal Geneva; color: rgb(95, 97, 97); ">-- Applescript</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 42.6px; text-indent: -42.7px; font: normal normal normal 16px/normal Geneva; min-height: 21px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 42.6px; text-indent: -42.7px; font: normal normal normal 16px/normal Verdana; "><span style="font: 14.0px Verdana; color: #1c24bd"><b>do shell script</b></span><span style="font: 16.0px Geneva"> </span>"open "<span style="font: 16.0px Geneva"> & </span>"/Applications/BibDesk.app"</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 42.6px; text-indent: -42.7px; font: normal normal normal 16px/normal Verdana; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 42.6px; text-indent: -42.7px; font: normal normal normal 16px/normal Verdana; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 42.6px; text-indent: -42.7px; font: normal normal normal 16px/normal Verdana; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 42.6px; text-indent: -42.7px; font: normal normal normal 16px/normal Verdana; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 43.2px; text-indent: -43.2px; font: normal normal normal 18px/normal Courier; ">-- Applescript</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 43.2px; text-indent: -43.2px; font: normal normal normal 18px/normal Courier; min-height: 22px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 48.5px; text-indent: -48.6px; font: normal normal normal 16px/normal Verdana; "><span style="font: 14.0px Verdana; color: #1c24bd"><b>do shell script</b></span><span style="font: 16.0px Geneva"> </span>"open "<span style="font: 16.0px Geneva"> & </span>"/Applications/TeXShop.app"</div></div><div><br></div><div><br><div><br></div><div><br>
<span><Screen shot 2009-09-04 at 15.47.40.png></span></div></div></div></div>----------- Please Consult the Following Before Posting -----------<br>TeX FAQ: <a href="http://www.tex.ac.uk/faq">http://www.tex.ac.uk/faq</a><br>List Reminders and Etiquette: <a href="http://email.esm.psu.edu/mac-tex/">http://email.esm.psu.edu/mac-tex/</a><br>List Archive: <a href="http://tug.org/pipermail/macostex-archives/">http://tug.org/pipermail/macostex-archives/</a><br>TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/">http://mactex-wiki.tug.org/</a><br>List Info: <a href="http://email.esm.psu.edu/mailman/listinfo/macosx-tex">http://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br><br></blockquote></div><br></div></body></html>