[OS X TeX] applescript in TS
Claus Gerhardt
gerhardt at math.uni-heidelberg.de
Fri Sep 17 17:14:41 EDT 2010
The refreshpdf script below, when copied as a macro, runs directly.
Claus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: refreshpdf.scpt.zip
Type: application/zip
Size: 5848 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20100917/c8f88161/attachment.zip>
-------------- next part --------------
On Sep 17, 2010, at 22:57, Herbert Schulz wrote:
>
> On Sep 17, 2010, at 3:30 PM, Themis Matsoukas wrote:
>
>> Every time you run an applescript in TS, it first launches a little ScriptRunner app which then runs the script. This causes a small delay in the execution of the script that can be annoying, especially if the script is meant to do something quick, like Claus' script that removes the red circle from the pdf. Wouldn't things be faster if that script stayed open during a TS session? I could not get ScriptRunner.app to stay open, though.
>>
>> Themis
>
> Howdy,
>
> The OS should cache that extra app and be able to reuse it quickly; at least after the first run.
>
> However, if the script has a heading
>
> --Applescript direct
>
> TeXShop doesn't seem to run ScriptRunner. That didn't seem to work with Claus' script but others I have use it and ScriptRunner is not invoked. I don't know what properties the Applescipt has to have to be able to run without ScriptRunner.
>
> See `Applescript Macros' in TeXShop's Help Panel for more of an explanation.
>
> Good Luck,
>
> Herb Schulz
> (herbs at wideopenwest dot com)
>
>
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>
More information about the MacOSX-TeX
mailing list