Search code examples
macosexcelvbaexcel-2011

What are macid filetypes in excel vba


What are all the possible MacID("filetype") I need the one specifically for CSV but i couldn't find a list anywhere online surprisingly.


Solution

  • First run:

    mdls "FileName"
    

    Find the TypeCode in the Output:

    kMDItemFSTypeCode = "TEXT"
    

    You can use:

    Dir(Path,MacID("TEXT"))