|
From: Kaveh B. <ka...@fo...> - 2004-08-03 12:21:56
|
At 9:51 pm -0500 1/8/04, Adam Maxwell wrote: >On Jul 27, 2004, at 05:03, Kaveh Bazargan wrote: > >> I want to send a command to iTeXMac to open a TeX file and to compile >> it. >> It opens it with the the "open foo.tex" command, but "compile foo.tex" >> does >> nothing and it is silently ignored. What am I doing wrong? > >Do you give it the full path to the file? It looks like that is >required in the dictionary. Another way might be to tell it to >'compile document 1' if you've opened it. I'm not proficient with >AppleScript, so I could be totally off base. Thanks for the ideas. I managed to get it working by saying: compile "foo.tex" as alias or compile "foo.pdf" as alias I am using pdftex, and both commands work fine. This is where I find AppleScript very confusing. Why is compile "foo.tex" not sufficient? I am now going to read up a bit more on it. The problem I have now is that as soon as the compilation is done, the pdf preview in iTeXMac pops to the front, and then immediately to the back again. When you compile or typeset from the menus in the program, the pdf file stays in the front. Love to find an answer to this. -- -------------- Kaveh Bazargan http://www.focalimage.com/ http://www.holographer.org/ |