TeX-Scripts and TeX-Scripts-BBEdit are no longer maintained and they will probably not work on modern Macintoshes. We recommend the Flashmode version for BBEdit instead (requiring Leopard Intel).
The download pdfselect is the original pdfselect shell script that is supposed to be run from the terminal. A version of it is now part of both variants of the TeX-Scripts.
The fifth download is related to producing an index or several indices based on the package index by David Jones. It contains a brief pdf manual and several style files to format the index and to allow the use of the option "-g". The style files are also part of 'Flashmode' and producing well formatted indices is as simple as clicking a button.
At the end are a few Applescripts intended for use in BibDesk or in BBEdit.
Flashmode BBEdit The current version number is 5.2. Size = 4.6MB
TeX-Scripts The current version number is 1.07. Size = 286KB
TeX-Scripts-BBEdit The Panther version for BBEdit v.8., current version is 2.0. Size = 452KB
Note: Some of the BibDesk scripts insert hyperref commands. In order that these hyperref commands work properly and also do not cause error messages in case the hyperref package is not loaded, a special copy of the style file hamsplain.bst has to be used when running bibtex.
hamsplain.bst
This is the recommended Applescript for importing arXiv entries from 2007 or later in BibDesk. It works with Firefox in OS 10.5. The script will also save the corresponding .bib file in BibDesk with the help of the application BibDesk-save which is part of the downloaded file. BibDesk-save has to be installed in the Applications folder. Please, open the script and read the short instructions.
bibtex-arxiv-pdf.scpt
Below is an Applescript for BibDesk which enters the bibtex data of an arXiv entry into BibDesk. The abstract page of an arXiv entry should be front most in Safari. Then the script gets the 'arXiv identifier', the 'title' and the 'authors' and copies these data into a new Bibdesk entry that has to be created and selected first - simply create a new entry with 'cmd-N'. In addition the script 'arXiv' will be executed.
This script should be used when the OS is 10.4.
bibtex-arxiv.scpt
Below is the corresponding script for Leopard. However, in this case Firefox has to be used instead of Safari.
bibtex-arxiv.scpt
Below is an Applescript for BibDesk which should be run after the script 'bibtex-arxiv' has been used. The script assumes that the cite key is identical to the arXiv identifier and that the corresponding pdf file has been saved in ~/Documents/Downloads. It then gets the cite key of the selected Bibdesk entry, sets the value of the Local-Url field to the path of the pdf file and tells Preview to open that file. In addition it passes the command to save the bib file to the application 'bibdesk_save.app'. This application has to be copied in ~/Library/Flashmode/Applescripts-modular.
local-pdf.scpt
Below is an Applescript for BibDesk which gets the content of the field "Eprint", say the content is "hep-th/9803179" or "arXiv:hep-th/9803179", and replaces it with
\href{http://arXiv.org/abs/hep-th/9803179}{hep-th/9803179}.
The script also enters the url address into the Url field.
eprint.scpt
Below is a slight modification of the previous Applescript for BibDesk which gets the content of the field "Eprint", say the content is "hep-th/9803179" or "arXiv:hep-th/9803179", and replaces it with
\href{http://arXiv.org/abs/hep-th/9803179}{arXiv:hep-th/9803179}.
The script also enters the url address into the Url field.
arXiv.scpt
Below is an applescript that gets the filepath of the front window in "Preview" - if you use Acrobat, you have to change the name of the process acoordingly - and copies it into the field in Bibdesk, where the cursor is; thus make sure that the cursor is in Local-Url.
local-url.scpt
Below is an applescript that gets the value of the field "Pdf" when an entry in the Publication is selected and tells "Preview" to open the corresponding pdf file. Use when an additional pdf file is linked to the entry.
pdf.scpt
Below is an applescript that gets the filepath of the front tex window in "TeXShop" and copies it into the field "Source" in Bibdesk. You have to create this field first in BibDesk's preferences, if it is not already defined.
local-source.scpt
Below is an applescript that gets the value of the field "Source" when an entry in the Publication is selected and tells "TeXShop" to open the corresponding tex file. Use when a tex file is linked to the entry.
Another possibility to open the source file is to define the Source field to be a 'Local File' field, see BibDesk's Preferences/Defaults.
source.scpt
Below is an applescript that uses pdftohtml to get the title of a pdf file, which has to be opened in Preview, and copies it to the clipboard. The script is a modification of a similar script by Brian Helenbrook and it needs the shell script pdftohtml which is supposed to be stored in ~/bin/pdftohtml and which you probably have to get and install yourself. Of course you can choose any directory for the script, but then the Applescript has to be changed accordingly. Remember that pdftohtml has to be executable.
pdf-title.scpt
Miscellaneous Scripts
Below is an Applescript for people using BBEdit as editor.
The script runs pdflatex - or a shell script of your choice - and catches any latex errors for BBEdit. If there are no errors, then it tells TeXniscope to open resp. refresh the pdf file and display the current line.
The subroutine preview_bbedit is also needed.
Below is an Applescript for people using TeXShop as editor.
The script runs the perl script latexdiff-fast.pl, which has to be downloaded separately, initiates two pdflatex runs and displays the differences of two tex files in a pdf file (tex file). Read the instructions at the beginning of the Applescript.
The subroutine setnamets is also needed.
Below is an Applescript for people using TeXShop as editor.
The Applescript checks the encoding of the front most text window in TeXShop and prepends the necessary encoding indicators for TeXShop to the document if the encoding is either Iso Latin or UTF-8 Unicode.
In case the document is encoded differently an error message is shown.
The script needs BBEdit.