[OS X TeX] .sty files open with & have Aquamacs icon after upgrade to MacTeX 2019

Herbert Schulz herbs at wideopenwest.com
Sun May 5 20:47:24 CEST 2019

> On May 5, 2019, at 9:36 AM, Murray Eisenberg <murrayeisenberg at gmail.com> wrote:
> Since upgrading from MacTeX 2018 to 2019 under macOS Mojave (10.14.4), in Finder all .sty files have the Aquamacs icon and open with Aquamacs, not TeXShop (the latter being what I want to use).
> I tried the simple supposed solution: select a .sty file in Finder, use Cmd-I, change the "Open with” choice to TeXShop.app (4.27) , click the "Change All” button, and confirm my choice with the Continue button.
> However, two peculiar things happen now:
> 	- the “Open with” automatically changes to TeX.mdimporter (1.3); and
> 	- the Preview still shows the Aquamacs icon.
> That .sty file, and others, _will_ now open with TeXShop when double-clicked in Finder, but the Aquamacs icon persists in Finder.
> Note that the icon for .tex files is the usual, expected one.
> Of course I’ve looked at Alan Munn’s answer at https://tex.stackexchange.com/questions/210948/macos-texshop-3-45-icon-issue. However, the file he references there ...
> 	~/Library/Prefences/com.apple.LaunchServices.plist
> … does not exist on my system.
> Suggestions?
> ---
> Murray Eisenberg			murrayeisenberg at gmail.com
> 503 King Farm Blvd #101	Home (240)-246-7240
> Rockville, MD 20850-6667	Mobile (413)-427-5334


Use Alan's alternative solution: run

 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user 

(all one line) or drag and drop

-------------- next part --------------
A non-text attachment was scrubbed...
Name: FixLaunchServices.sh
Type: application/octet-stream
Size: 193 bytes
Desc: not available
URL: <https://tug.org/pipermail/macostex-archives/attachments/20190505/e44c1f44/attachment.obj>
-------------- next part --------------

onto a Terminal window and press return. This forces a rebuild of the LaunchServices database.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)

-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

More information about the macostex-archives mailing list