From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88145 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: For the Mac users: AppleScript to launch ConTeXt in a flexile way Date: Thu, 17 Jul 2014 11:25:00 +0200 Message-ID: <53C7966C.50700@wxs.nl> References: <4989D925-CC9A-4509-8B81-37921B178E77@mac.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1405589134 27234 80.91.229.3 (17 Jul 2014 09:25:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jul 2014 09:25:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 17 11:25:30 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X7hwO-00031h-PR for gctc-ntg-context-518@m.gmane.org; Thu, 17 Jul 2014 11:25:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2CCC610283 for ; Thu, 17 Jul 2014 11:25:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id vlkLAyqvXHYA for ; Thu, 17 Jul 2014 11:25:28 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id E459910220 for ; Thu, 17 Jul 2014 11:25:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 55F7B101E6 for ; Thu, 17 Jul 2014 11:25:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id I9w6YQsSAij1 for ; Thu, 17 Jul 2014 11:25:10 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 2B828101E3 for ; Thu, 17 Jul 2014 11:25:10 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s6H9P8wU019809 for ; Thu, 17 Jul 2014 11:25:09 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.103; Original-Received: from [10.100.1.103] (unverified [10.100.1.103]) by pragma-net.nl (SurgeMail 6.5a2) with ESMTP id 377-1713362 for ; Thu, 17 Jul 2014 11:25:07 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <4989D925-CC9A-4509-8B81-37921B178E77@mac.com> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=Provincie Overijssel; city=Zwolle; latitude=52.5058; longitude=6.0858; http://maps.google.com/maps?q=52.5058,6.0858&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TMrlp9DG - 0ea645d8ec43 - 20140717 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:88145 Archived-At: 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=92m using and it should be capable to typeset the Produc= t file even if I=92m 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 w= ho also works with ConText on OSX. We=92re still using it, many bugs have b= een fixed and some features were added. > > The script proved to be very useful for us and I thought, why not share i= t with the other Mac-ConTeXt people? > > > So here it is: > > https://www.wuala.com/tflo/Scripts/Ctx%20Typeset/?key=3D75QkpizhdpFS > > > As already said, the main purpose of the script is to launch the Ctx type= setting process (short: Ctx) on a file. > > Regarding the =93a file=94 the script is very configurable and flexible: > > A) It can launch Ctx on a file currently opened in your text editor. It w= orks 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 cur= rently being edited. Defining a =93Product file=94 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 cu= rrently 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, =85) > 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 (=93Tools=94) 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 o= ne > D) Syntax Check > E) Make formats, listing fonts, other, =85 > 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 w= ork with 10.8 (old notification via 3rdParty is still implemented). > > C) Out of the box it works only with the so called =93ConTeXt Minimal Ins= tallation=94 (aka ConTeXt Standalone). It won=92t work with TeXLive install= ations or any other kind of excessively screwed-up installations. But you c= an 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 preferen= ces. This may sound risky to you but the code is open so you can assure you= rself of what the script does. > > E) You have to (and you really should!) read the Description that comes w= ith the script. > > If you are enjoing the script please share it here, if the script is bugg= y, or doesn=92t 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 /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 t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________