Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by nikivi

  1. I am a bit confused how do I invoke this CFBundleDocumentTypes on an app from CLI. The other strange thing is that these JS/TS/.d.ts files have the proper kind show in Get Info. But Alfred Metadata shows them to have public.folder. Although File Type is probably different to Kind.
  2. Another option that I personally use (don't have many text triggered expansions) is searching through expansions you need. I have bad memory for things that I don't use often so text expansions outside of ones like (:s or :d to expand my current Safari URL or embed URL into a markdown image) are going to be forgotten and not used. So I use Typinator's smart search which (in my experience) after few typed characters always knows the trigger I want to expand. This way I don't have to remember the triggers as I get visual feedback for what the triggers I have by typing few characters from the expanded result. Looks like this:
  3. How do I do this? I tried googling it but got no results. check if app is assigning extension macos was query I ran. My ~/Applications is empty
  4. I've done that. But got quite a lot of results. If I understand correctly, I'd have to delete Ulysses/Preview/Flume/Mail? Thank you for your help. I appreciate it.
  5. Didn't help sadly: The file types are all still public.folder. /Users/nikivi/src/orgs/learn-anything/learn-anything/frontend/node_modules/reason-apollo/lib/bs/src/ApolloClient.mlast.d Internal File Metadata ====================== Display Name: ApolloClient.mlast.d Alt Names: File Type: public.folder Comments: Keywords: Last Used: Raw mdls File Metadata ====================== Is the only other solution to format my disk?
  6. Tried that. Didn't help. I don't have LaunchServices.framework in Frameworks so I can't run the mentioned in that article command. I can try run: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user But I want to make sure that it would do the same thing. Is it safe to run?
  7. I got this (rg is ripgrep). /Applications ❯ rg com.netscape.javascript-source Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/Frameworks/DevToolsCore.framework/Versions/A/Resources/StandardFileTypes.xcspec 381: UTI = "com.netscape.javascript-source"; Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreServices.framework/Headers/UTCoreTypes.h 464: * UTI: com.netscape.javascript-source 525: * com.netscape.javascript-source Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator.sdk/System/Library/Frameworks/CoreServices.framework/Headers/UTCoreTypes.h 464: * UTI: com.netscape.javascript-source 525: * com.netscape.javascript-source Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreServices.framework/Headers/UTCoreTypes.h 464: * UTI: com.netscape.javascript-source 525: * com.netscape.javascript-source Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/CoreServices.framework/Headers/UTCoreTypes.h 464: * UTI: com.netscape.javascript-source 525: * com.netscape.javascript-source Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS.sdk/System/Library/Frameworks/CoreServices.framework/Headers/UTCoreTypes.h 464: * UTI: com.netscape.javascript-source 525: * com.netscape.javascript-source Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator.sdk/System/Library/Frameworks/CoreServices.framework/Headers/UTCoreTypes.h 464: * UTI: com.netscape.javascript-source 525: * com.netscape.javascript-source Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Headers/UTCoreTypes.h 464: * UTI: com.netscape.javascript-source 525: * com.netscape.javascript-source ``` Neither of these are apps it seems. Going to install BBEdit and open .js file .d.ts and .ts files and hope that fixes it.
  8. Forgive me for perhaps a silly question but I read through that document few times and I don't get how do I find what app defines JavaScript files? Is it the app that is set to default open the file type? So in my case I'd run: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -u /Applications/Visual\ Studio\ Code.app
  9. Oh wow. How can a JS file be of this type? ? Not sure what I can do. Perhaps my system is messed up and I need to reformat my drive. Don’t really want to do that.
  10. The file filter does specify to search only folders Thank you for any help on solving this.
  11. A JS file /Users/nikivi/src/orgs/learn-anything/learn-anything/frontend/node_modules/bs-platform/lib/amdjs/unix.js Internal File Metadata ====================== Display Name: unix.js Alt Names: File Type: public.folder Comments: Keywords: Last Used: Raw mdls File Metadata ====================== kMDItemContentCreationDate = 2018-11-06 00:46:11 +0000 kMDItemContentCreationDate_Ranking = 2018-11-06 00:00:00 +0000 kMDItemContentModificationDate = 2018-11-06 00:46:11 +0000 kMDItemContentType = "public.folder" kMDItemContentTypeTree = ( "public.item", "public.folder", "public.directory" ) kMDItemDateAdded = 2018-11-06 00:46:11 +0000 kMDItemDateAdded_Ranking = 2018-11-06 00:00:00 +0000 kMDItemDisplayName = "unix.js" kMDItemFSContentChangeDate = 2018-11-06 00:46:11 +0000 kMDItemFSCreationDate = 2018-11-06 00:46:11 +0000 kMDItemFSCreatorCode = "" kMDItemFSFinderFlags = 0 kMDItemFSHasCustomIcon = (null) kMDItemFSInvisible = 0 kMDItemFSIsExtensionHidden = 0 kMDItemFSIsStationery = (null) kMDItemFSLabel = 0 kMDItemFSName = "unix.js" kMDItemFSNodeCount = (null) kMDItemFSOwnerGroupID = 20 kMDItemFSOwnerUserID = 501 kMDItemFSSize = 59031 kMDItemFSTypeCode = "" kMDItemInterestingDate_Ranking = 2018-11-06 00:00:00 +0000 kMDItemKind = "Folder" kMDItemLogicalSize = 59031 kMDItemPhysicalSize = 61440
  12. Finished rebuilding the index. I still have JS files shown when it should only show Folders. Anything I can do aside from rebuilding the index to fix this?
  13. Doing that now. One thing I want to note is that when I ticked this box: When it tried to rm it, terminal said `permission denied` even though I wrote my sudo password. Perhaps that's due to SIP. Maybe it's something that should be noted?
  14. I have this workflow that is a file filter that should only search folders However it recently started showing me not only folders but JS files too. Is this a known bug? Anything I can do to solve this? Thank you.
  15. Hope it’s not too off topic. @vitor But do you play magic: the gathering online?
  16. Karabiner does. In fact it’s the app that saved me the most time in life by cutting access time to apps/macros/workflows. So yeah karabiner does ‘automate other apps’ although not directly.
  17. In my view, every tool is an automation tool. Even Affinity Designer is an automation tool in that it saves you time doing designs. And I think all ‘good’ tools are like that, they save you time. True automation however means doing something without my input at all and that’s hard to do with physical things (today at least). Wanted to write a blog post post about it but never got to it. I still need to release my Karabiner article. ?
  18. I disagree. There are many automation tools that do certain things too well. Alfred is a launcher, it displays things and lets you act on them. KM let’s you easily make and call macros (any code/action you want to run either triggered by you or some event). And Karabiner glues everything together and provides an interface to it all. Same for programming languages or any other tools. There’s a quote related to this I really love and live by. > Only when you master a tool, do you learn when not to use it.
  19. I want to write a KM macro that will do different things in different contexts. I can check for my current active app easily. But I don't know how and if I can check whether Alfred bar is active without resorting to GUI check (which I don't want to do). Ideally I want some AppleScript code I can run that will return me true or false whether I am inside Alfred or not. Is this possible to do?
  20. Made a new theme. Now that I found a sick Monokai VS Code theme. Hope you like it. Download.
  • Create New...