Jump to content

Can't file filter for .tex files.


nikivi

Recommended Posts

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

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)

 

nHWQxv4.png

 

 

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
-- 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

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

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 by deanishe
Link to comment
-- 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 : 

 

vR3k4O3.png

 

And in Finder it shows with normal icon of app that opens these files : 

 

4fZRJVK.png

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...