[OS X TeX] How to convert eps w/bounding box to pdf retaining Bbox info
Siep Kroonenberg
siepo at cybercomm.nl
Thu Aug 10 23:58:38 CEST 2006
On Thu, Aug 10, 2006 at 09:36:06PM +0200, Peter Dyballa wrote:
>
> Am 10.08.2006 um 21:05 schrieb Siep Kroonenberg:
>
> OTOH it wouldn't take much time to run some 'which <this>' or 'which
> <that>' to determine whether in a shell the important utilities can
> be found. If that was successful, then add their paths to the
> application's environment. If any which fails, then report to the
> user. You could also first check whether the locate database exists.
> If it exist, then you could try to locate what which missed and, upon
> success, add this path to the application's environment. If locate
> also fails or there's no locate database, then it's high time to warn
> the user about utilities that can't be used.
>
>
> What about adding Preferences to fill in some paths? They're first
> filled with what was found at first launch.
The following version of epspdf.applescript ought to do it, at least
if you use the bash shell:
set sPath to do shell script "source /etc/profile && source $HOME/.bash_profile && echo $PATH"
set pathToMe to path to me as text
set posixPath to do shell script "dirname " & quoted form of POSIX path of pathToMe
do shell script ("/bin/sh -c 'export PATH=" & sPath & " ; " & posixPath & "/epspdftk.rb'")
--
Siep Kroonenberg
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
More information about the macostex-archives
mailing list