From: Bernard D. <bde...@or...> - 2020-07-14 17:02:54
|
Hi Joachim, I think both actions you are trying won’t help you to achieve what you want: - ‘Record Window State’ just records, as you can see, the following parameters: break-in and wrapping setting, encoding, font, tab size, selection (or current position) and page geometry. - the Alpha creator is a legacy but I’m pretty sure that the Finder ignores it completely. I think the solution, to make Alpha the default application to open text files, is to select a text file (any text file) in the Finder, press cmd-I to open the Finder’s information window, then open the 'Open with’ section and select Alpha in the popup menu, then click on Modify All. I’m glad you are satisfied with Alpha 9.1.3. BTW, I have great news concerning the next version Alpha 9.1.4: Alpha now has its own PDF viewers so that any PDF file (in particular those produced for instance by pdflatex) can be opened/visualized directly in Alpha AND there is synchronisation between the latex file and the pdf viewer. It works in both directions : from tex to pdf and from pdf to tex ! Just option-click somewhere in the pdf view and Alpha takes you to the corresponding location in the latex source. All within Alpha ! Alpha 9.1.4 has new PDFView and ThumbnailView views (to be used with the [view] command) with nice editing capacities (selection, scrolling, goto, etc.) and a new core command called [synctex] to manage the synchronisation. I’ll release a preview devbuild shortly so that everyone can test these new features (but at the moment I’m on vacation in the countryside with a very poor internet connection). Cheers, Bernard > Le 14 juil. 2020 à 10:41, Joachim Kock <ko...@ma...> a écrit : > > Dear Bernard, > > I am really happy with the new Alpha (9.1.3). > Thanks so much for all your work. > > I have a question: > > I would like to be able save a file in Alpha (without > file extension), and then have Alpha open it when > I double-click it in the Finder. > > I have tried the following: in the 'I' popup, select > 'Record Window State' and 'Set Alpha as creator'. > The first problem is that any subsequent 'Save' action > will erase this second choice -- at least that's how > it looks in the popup menu. > > In any case, it does not help: when I double-click the > file in the Finder, TextEdit opens instead of Alpha :-( > > I would also like to ask if there is any way to set a > preference flag in Alpha to force 'Record Window State' > and 'Set Alpha as creator' automatically always? > > In the old days, this stuff would be in the resource > fork. Nowadays I assume it should be in xattributes...? > Here is what I see > > % xattr myfile > com.apple.FinderInfo > com.apple.TextEncoding > com.apple.lastuseddate#PS > com.apple.metadata:_kMDItemUserTags > com.dropbox.attrs > net.sf.alpha.break > net.sf.alpha.enc > net.sf.alpha.font > net.sf.alpha.geo > net.sf.alpha.sel > net.sf.alpha.tab > net.sf.alpha.wrap > % xattr -p com.apple.FinderInfo myfile > 54 45 58 54 41 4C 46 41 00 00 00 00 00 00 00 00 > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > xattr -p com.apple.metadata:_kMDItemUserTags myfile > 62 70 6C 69 73 74 30 30 A0 08 00 00 00 00 00 00 > 01 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 > 00 00 00 00 00 00 00 00 00 09 > > I don't know what all hex stuff means, or > if it is related to the issue at all. > > (I am well aware that all this might really be an > OSX problem (I am reporting from 10.15), not an > Alpha problem, but if you have an idea of how to > solve it nevertheless, I would be very grateful.) > > Thanks a lot in advance. > > Cheers, > Joachim. > > > _______________________________________________ > AlphaTcl-users mailing list > Alp...@li... > http://lists.sourceforge.net/lists/listinfo/alphatcl-users |