ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: For the Mac users: AppleScript to launch ConTeXt in a flexile way
Date: Thu, 17 Jul 2014 11:25:00 +0200	[thread overview]
Message-ID: <53C7966C.50700@wxs.nl> (raw)
In-Reply-To: <4989D925-CC9A-4509-8B81-37921B178E77@mac.com>

On 7/17/2014 2:19 AM, Thomas Floeren wrote:
> Hello,
>
> Some months ago I wrote a little AppleScript script with one purpose: It should be a flexible script to launch ConTeXt typesetting, independently of the text editor I’m using and it should be capable to typeset the Product file even if I’m currently editing any component file belonging to that Product file.
>
> I used it for some time, I improved it, and I shared it with a collegue who also works with ConText on OSX. We’re still using it, many bugs have been fixed and some features were added.
>
> The script proved to be very useful for us and I thought, why not share it with the other Mac-ConTeXt people?
>
>
> So here it is:
>
> https://www.wuala.com/tflo/Scripts/Ctx%20Typeset/?key=75QkpizhdpFS
>
>
> As already said, the main purpose of the script is to launch the Ctx typesetting process (short: Ctx) on a file.
>
> Regarding the “a file” the script is very configurable and flexible:
>
> A) It can launch Ctx on a file currently opened in your text editor. It works with many text editors (BBEdit, MacVim, TextMate, etc.) as long as the editor is the frontmost process.
>
> B) It can launch Ctx on the parent Product file of the component file currently being edited. Defining a “Product file” can either be done semi-automatically or by hard-definition with two swappable register slots.
>
> C) If no eligible file is opend in an editor it will launch Ctx on the currently selected tex file in the Finder.
>
>
> The options added in the course of time are:
>
> A) Usage of a ConTeXt-Beta or a ConTeXt-Current installation, swappable
> B) Typesetting in the non-interactive shell or in the visible terminal
> C) Notifications
> D) Selection of PDF viewer (Skim, Preview, Adobe, …)
> E) Automatically calling the PDF viewer or not
> F) Optionally excluding generated PDFs from TM backup
> G) luatex or luajitex
> H) Beeps or no beeps, and so on
> I) Many other things, explained in the Description
>
> Also some features (“Tools”) have been added:
>
> A) Purging files including generated PDFs
> B) Info on the used Ctx version
> C) Updating the Ctx Minimal (Beta or/and Current) and archiving the old one
> D) Syntax Check
> E) Make formats, listing fonts, other, …
> F) Some extras added in the Extras folder (synctex with BBEdit etc.)
> G) Much more in the Description
>
>
> Some caveats:
>
> A) It works only on OS X
>
> B) The script is designed to work with 10.9 (Mavericks). It should also work with 10.8 (old notification via 3rdParty is still implemented).
>
> C) Out of the box it works only with the so called “ConTeXt Minimal Installation” (aka ConTeXt Standalone). It won’t work with TeXLive installations or any other kind of excessively screwed-up installations. But you can go into the script to make it work with anything.
>
> D) In order to get access to any text editor the script makes use of GUI scripting: you have to liberate the rights in the corresponding OS preferences. This may sound risky to you but the code is open so you can assure yourself of what the script does.
>
> E) You have to (and you really should!) read the Description that comes with the script.
>
> If you are enjoing the script please share it here, if the script is buggy, or doesn’t work for you at all please let me know too, please.

A nice initiative. Can you put the description online too? So that non 
osx users can get the extended description too? Maybe the dmg file can 
be put on the garden in <texroot>/context/data/osx or so?

If you need more functionality (in e.g. mtxrun or context) to make 
things easier, don't hesitate to ask for it.

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2014-07-17  9:25 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-17  0:19 Thomas Floeren
2014-07-17  9:25 ` Hans Hagen [this message]
2014-07-17 17:43   ` Thomas Floeren
2014-07-17 18:24     ` Hans Hagen
2014-07-17 20:47 ` Otared Kavian
2014-07-18  0:59   ` Thomas Floeren
2015-01-18  2:23 ` Thomas Floeren
2015-03-23 16:54 ` Thomas Floeren
2015-03-29 16:36 ` Thomas Floeren
2015-03-29 23:36   ` John Haltiwanger
2015-03-30 18:11     ` Thomas Floeren
2015-04-09  2:40 ` Thomas Floeren
2015-04-09 19:39   ` Otared Kavian
2015-04-09 22:32     ` Thomas Floeren
2015-04-10  9:35       ` Otared Kavian
2015-04-10 13:18         ` Thomas Floeren
2016-03-24  4:13 ` Thomas Floeren
2016-03-24  5:46   ` Jaroslav Hajtmar
2016-09-22 21:32   ` Tom
2016-09-22 21:38     ` Tom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53C7966C.50700@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).