[OS X TeX] emacs and Applescript
Claus Gerhardt
gerhardt at math.uni-heidelberg.de
Sat Dec 18 21:14:59 EST 2004
Let me add a third "hurdle": tell emacs to save the file.
Claus
On Dec 19, 2004, at 2:31, Claus Gerhardt wrote:
> The first hurdle could be cleared, the path information can be
> obtained from TeXniscope, though, at the moment, only with the help of
> "System Events".
>
> As for the unsaved changes: This question has to be repeated in very
> short intervals, for my taste "0.5" sec is just fine.
>
> I think Enrico Franconi should be able to answer the question, if his
> emacs can be made applescriptable.
>
> Claus
>
> On Dec 19, 2004, at 1:52, Joseph C. Slater wrote:
>
>>
>> On Dec 18, 2004, at 5:09 PM, Claus Gerhardt wrote:
>>
>>> Maybe I should rephrase my questions. Some people asked me, if
>>> Flashmode would also work with emacs/TeXniscope. When I started
>>> looking into the problem these hurdles emerged: getting
>>>
>>> - the path of the open file and
>>
>> Could this be gotten instead from TeXniscope?
>>
>>> - the information, if the file contains unsaved modifications.
>>>
>> I hope folks from the mac-emacs list are reading this. I've done some
>> digging and come up almost empty. I did get this. Emacs occasionally
>> (every few minutes or so) saves the current buffer in #filename#
>> (adding # on each end of the filename). That file could be compiled
>> based on modification date changing.
>>
>> Joe
>>
>>> If someone can tell me, in sufficient detail, how these two pieces
>>> of information could be extracted from emacs by an Applescript, I am
>>> willing to pursue this point further.
>>>
>>> Claus
>>>
>>> On Dec 18, 2004, at 22:57, Gilbert Harman wrote:
>>>
>>>> In current emacs there is the function "do-applescript". Does that
>>>> help?
>>>>
>>>> Gil
>>>>
>>>> do-applescript is a built-in function in `C source code'.
>>>> (do-applescript script)
>>>>
>>>> Compile and execute AppleScript script and retrieve and return the
>>>> result.
>>>> If compilation and execution are successful, the resulting script
>>>> value is returned as a string. Otherwise the function aborts and
>>>> displays the error message returned by the AppleScript scripting
>>>> component.
>>>>
>>>>
>>>> --------------------- 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 Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
>>>>
>>>>
>>>
>>> --------------------- 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 Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
>>>
>>>
>>>
>> \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
>> (+1) 937-775-5085
>> http://www.cs.wright.edu/~jslater
>>
>> --------------------- 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 Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
>>
>>
>
> --------------------- 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 Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
>
>
--------------------- 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 Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the MacOSX-TeX
mailing list