nikivi Posted September 7, 2016 Share Posted September 7, 2016 When I try and create a filter for .tex files, it defaults to something strange and just doesn't work. Here is a screencast to show better what I mean : http://quick.as/oxjmIlvJR Thank you for any help. Link to comment
Andrew Posted September 8, 2016 Share Posted September 8, 2016 Thank you for any help. Are these files in the default search scope and being found when doing a standard file search in Alfred using the 'open' keyword? Cheers, Andrew [moving to help sub-forum] Link to comment
nikivi Posted September 8, 2016 Author Share Posted September 8, 2016 Are these files in the default search scope and being found when doing a standard file search in Alfred using the 'open' keyword? Cheers, Andrew [moving to help sub-forum] Yes there are in the default search scope. They are in my ~/Documents folder and that is index by Alfred. Link to comment
dfay Posted September 8, 2016 Share Posted September 8, 2016 Try rebuilding launch services - see http://www.alfredforum.com/topic/9196-add-specific-file-type-in-this-case-markdown/?hl=%2Blaunch+%2Bservices#entry45898 Link to comment
Andrew Posted September 8, 2016 Share Posted September 8, 2016 Yes there are in the default search scope. They are in my ~/Documents folder and that is index by Alfred. Are they being found with the 'open' keyword in Alfred? If they are being found, can you pop one of the files in this metadata tool and let me know the output: https://cachefly.alfredapp.com/tools/AlfredMetadataTool_v1.1.zip Cheers, Andrew Link to comment
nikivi Posted September 8, 2016 Author Share Posted September 8, 2016 Are they being found with the 'open' keyword in Alfred? If they are being found, can you pop one of the files in this metadata tool and let me know the output: https://cachefly.alfredapp.com/tools/AlfredMetadataTool_v1.1.zip Cheers, Andrew Yeah, it is found with open command : ('o' is for open here) Here is the log for one of the tex files : /Users/nikivi/Documents/text/LaTeX/uni_latex/data_structures_latex/ExampleHomework.tex Internal File Metadata ====================== Display Name: ExampleHomework.tex Alt Names: File Type: public.tex Comments: Keywords: Last Used: Raw mdls File Metadata ====================== _kMDItemOwnerUserID = 501 kMDItemContentCreationDate = 2014-02-03 16:01:06 +0000 kMDItemContentModificationDate = 2014-02-03 16:01:06 +0000 kMDItemContentType = "public.tex" kMDItemContentTypeTree = ( "public.tex", "public.text", "public.data", "public.item", "public.content" ) kMDItemDateAdded = 2016-07-01 19:18:32 +0000 kMDItemDisplayName = "ExampleHomework.tex" kMDItemFSContentChangeDate = 2014-02-03 16:01:06 +0000 kMDItemFSCreationDate = 2014-02-03 16:01:06 +0000 kMDItemFSCreatorCode = "" kMDItemFSFinderFlags = 0 kMDItemFSHasCustomIcon = (null) kMDItemFSInvisible = 0 kMDItemFSIsExtensionHidden = 0 kMDItemFSIsStationery = (null) kMDItemFSLabel = 0 kMDItemFSName = "ExampleHomework.tex" kMDItemFSNodeCount = (null) kMDItemFSOwnerGroupID = 20 kMDItemFSOwnerUserID = 501 kMDItemFSSize = 2466 kMDItemFSTypeCode = "" kMDItemKind = "TeX File" kMDItemLogicalSize = 2466 kMDItemPhysicalSize = 4096 Link to comment
dfay Posted September 8, 2016 Share Posted September 8, 2016 out of curiosity did rebuilding Launch Services not work? the dyn.adfhladjksfjlakdsfjaldfkjasdjkl filetype was what led me to that fix before Link to comment
nikivi Posted September 8, 2016 Author Share Posted September 8, 2016 -- NORMAL -- out of curiosity did rebuilding Launch Services not work? the dyn.adfhladjksfjlakdsfjaldfkjasdjkl filetype was what led me to that fix before No unfortunately it didn't I am also kind of worried now whether that reset affected anything on my system. Perhaps it is irrational, I just don't fully understand what that command did. Link to comment
dfay Posted September 8, 2016 Share Posted September 8, 2016 Should be fine - Launch Services is the database that tells OS X what program to use to open a particular file. It gets corrupted now and again, and loses track of file types (hence the dyn. prefix - dynamically generated, instead of the correct identifier for a tex file). Link to comment
deanishe Posted September 8, 2016 Share Posted September 8, 2016 (edited) EDIT: Ignore this post. Not relevant to this thread (I did't notice the metadata Niki posted previously). I'll leave it here as a testament to my dumbness, and also because this can be an issue with dyn.* filetypes. Should be fine - Launch Services is the database that tells OS X what program to use to open a particular file. It gets corrupted now and again, and loses track of file types (hence the dyn. prefix - dynamically generated, instead of the correct identifier for a tex file). It's also possible that no application is setting a UTI for .tex files. That's not unusual with apps that aren't real Mac apps (the developer often doesn't know they have to do that), or aren't application bundles at all. What I've done on occasion is create a stub do-nothing application (by, for example, saving an AppleScript as an application), then editing its Info.plist to define a UTI for the offending file extension. For example, I don't have a BitTorrent client installed on my Mac, so I use a stub application to define the proper UTI and assign an icon for .torrent files. Edited September 9, 2016 by deanishe Link to comment
Andrew Posted September 8, 2016 Share Posted September 8, 2016 The metadata for that file looks ok - try adding "public.tex" manually as the file filter type (instead of dragging in and seeing the dyn type) nikivi 1 Link to comment
nikivi Posted September 9, 2016 Author Share Posted September 9, 2016 -- NORMAL -- The metadata for that file looks ok - try adding "public.tex" manually as the file filter type (instead of dragging in and seeing the dyn type) Thank you, that solved it. Link to comment
nikivi Posted September 9, 2016 Author Share Posted September 9, 2016 -- NORMAL -- The metadata for that file looks ok - try adding "public.tex" manually as the file filter type (instead of dragging in and seeing the dyn type) How can I give my tex files an image in Alfred prompt? It shows as blank files : And in Finder it shows with normal icon of app that opens these files : Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now