Jump to content

Alfred is not indexing draw.io files


Recommended Posts

Hello experts,

 

I have the issue that Alfred is somehow not indexing my draw.io files (.drawio).

 

I ran the troubleshooting and there is a single warning for every draw.io file I tried so far:


 

Quote

 

Check direct file metadata...

⚠️ Direct metadata available, but content type may be incorrect

Display Name: 2024-01-18 – new collector design.drawio
 Other Names:
Content Type: dyn.ah62d4rv4ge80k6xbs7y08
   Last Used: 2024-01-19 19:04:25 +0000

 

 

Not sure if that's helpful though...

 

Has anyone an idea what I could try?

Link to comment
On 1/19/2024 at 7:19 PM, vBAq said:

I ran the troubleshooting and there is a single warning for every draw.io file I tried so far

 

Please post the full output (from one file) so we can see everything in context.

Link to comment

Thanks for getting back to me, here is the output:

Starting Diagnostics...

File: 'Untitled Diagram.drawio'
Path: '/Users/myusername/Downloads'

-----------------------------------------------------------

Check file cache database...

 File cache integrity is ok

-----------------------------------------------------------

Check if file is readable...

 Alfred has permissions to read this file.

Unix Permissions: 420
Underlying Type: NSFileTypeRegular
Extended Attributes: (
    "com.apple.macl",
    "com.apple.provenance"
)

-----------------------------------------------------------

Check if volume '/' is indexed by macOS...

 Indexing is enabled on this drive

-----------------------------------------------------------

Check direct file metadata...

⚠️ Direct metadata available, but content type may be incorrect

Display Name: Untitled Diagram.drawio
 Other Names:
Content Type: dyn.ah62d4rv4ge80k6xbs7y08
   Last Used:

-----------------------------------------------------------

Check mdls file metadata...

 Metadata contains required items

_kMDItemDisplayNameWithExtensions  = "Untitled Diagram.drawio"
kMDItemContentCreationDate         = 2024-01-23 20:23:50 +0000
kMDItemContentCreationDate_Ranking = 2024-01-23 00:00:00 +0000
kMDItemContentModificationDate     = 2024-01-23 20:23:50 +0000
kMDItemContentType                 = "dyn.ah62d4rv4ge80k6xbs7y08"
kMDItemContentTypeTree             = (
    "public.item",
    "dyn.ah62d4rv4ge80k6xbs7y08",
    "public.data"
)
kMDItemDateAdded                   = 2024-01-23 20:23:50 +0000
kMDItemDisplayName                 = "Untitled Diagram.drawio"
kMDItemDocumentIdentifier          = 0
kMDItemFSContentChangeDate         = 2024-01-23 20:23:50 +0000
kMDItemFSCreationDate              = 2024-01-23 20:23:50 +0000
kMDItemFSCreatorCode               = ""
kMDItemFSFinderFlags               = 0
kMDItemFSHasCustomIcon             = (null)
kMDItemFSInvisible                 = 0
kMDItemFSIsExtensionHidden         = 0
kMDItemFSIsStationery              = (null)
kMDItemFSLabel                     = 0
kMDItemFSName                      = "Untitled Diagram.drawio"
kMDItemFSNodeCount                 = (null)
kMDItemFSOwnerGroupID              = 20
kMDItemFSOwnerUserID               = 501
kMDItemFSSize                      = 663
kMDItemFSTypeCode                  = ""
kMDItemInterestingDate_Ranking     = 2024-01-23 00:00:00 +0000
kMDItemKind                        = "draw.io Diagram"
kMDItemLogicalSize                 = 663
kMDItemPhysicalSize                = 4096

-----------------------------------------------------------

Check file is in search scope...

 File exists within Alfred's default search scope

-----------------------------------------------------------

Check MDQuery file search...

 macOS returned a match for this file in your search scope.

File Search Results for search scope (
    "[0] /System/Volumes/Data/Users/myusername/Downloads/Untitled Diagram.drawio"
)

File Search Results for ~/ (
    "[0] /System/Volumes/Data/Users/myusername/Downloads/Untitled Diagram.drawio"
)

File Search Results for / (
    "[0] /System/Volumes/Data/Users/myusername/Downloads/Untitled Diagram.drawio"
)

-----------------------------------------------------------

 Troubleshooting passed

⚠️ There were 1 warning(s)

 

Edited by vBAq
Link to comment

@vBAq the warning shows that there isn't a file type associated with this file (i.e. the extension is not properly claimed by any app), however, it should be found by Alfred.

 

Are you using the open keyword (or spacebar prefix search) in Alfred? e.g. show Alfred, then:

 

open Untitled Diagram

or

[spacebar]Untitled Diagram

 

Link to comment

@AndrewI simply typed "untitled digram", no space before and no "open" before.

If I type "open untitled diagram", Alfred does find it, that's interesting. Same if I type a space in front, then it finds it.

 

Quote

there isn't a file type associated with this file

 

That I do not understand: if I double click the file it launches the drawio app...

 

 

Link to comment
1 hour ago, vBAq said:

That I do not understand: if I double click the file it launches the drawio app...

 

When there is a file type of "dyn.ah62d4rv4ge80k6xbs7y08", this means that macOS doesn't know what type of file this is (in this case *.drawio files). The file can still be associated with an app, even if it's an unknown type, which is why it still opens in the associated app.

 

Alfred is best configured to have less types in the default search, and then using the [spacebar] prefix when doing file searches. This leaves Alfred's default results crispy, clean and accurate by default for workflows and other features. Here is a blog post explaining the spacebar trick:
https://www.alfredapp.com/blog/tips-and-tricks/spacebar-trick/

 

Side note: If you're interested, try dragging e.g. a .txt file into Alfred's troubleshooting, and you'll see what a "proper" fully defined content type / tree will look like.

Link to comment

There seem to be something weird going on: macOS is saying draw.io.app is the default app for this file extension. Hence I do not understand why the file type is what it is...

 

image.png.80161d1f4c4ce50aa9ff75218bbb036b.png

 

 

Thanks for the space trick!

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