[OS X TeX] Open related... macro

Axel E. Retif axel.retif at mac.com
Sat Feb 14 17:42:01 CET 2009


On  14 Feb, 2009, at 09:37, Martin Costabel wrote:

> Peter Dyballa wrote:
>> Am 14.02.2009 um 12:11 schrieb Josep Maria Font:
>>> it's beyond my knowledge to understand how to adapt it for the  
>>> Open related... macro.
>> Maybe it's just a minor problem: even when you tell your system  
>> "TeXShop is responsible for extensions a, b, c" TeXShop has its own  
>> idea of responsibility. Maybe you just need to add to TeXShop's  
>> responsibility via
>>    defaults write TeXShop OtherTeXExtensions -array-add toc bbl
>> (as with asymptote files) these two file types ... (to remove:  
>> defaults write TeXShop OtherTeXExtensions -array)
>
> In the case at hand, the culprit is not TeXShop, but it is Finder  
> (or its AppleScript interface) who decides rather arbitrarily which  
> file name extensions it sees as file name extensions. Try the  
> following (in a command window, 2 lines):
>
> touch foo.tex foo.bbl
> osascript -e 'tell app "Finder" to name extension of (choose file)'
>
> This opens a file chooser window, and when you select foo.tex, the  
> script dutifully prints "tex", but when you select foo.bbl, it  
> prints an empty line.

Could it be .bbl files don't have a default application to open with?  
In my case (10.5.6) I get

Ada:Desktop axretif$ osascript -e 'tell app "Finder" to name extension  
of (choose file)'
tex
Ada:Desktop axretif$ osascript -e 'tell app "Finder" to name extension  
of (choose file)'
bbl
Ada:Desktop axretif$

but TeXShop is my default application to open all .bbl file.

Best,

Axel




More information about the macostex-archives mailing list