Can we Mimic this Alfred Workflow?

Not me, but these changes work for me. Is this the janky workaround?

In main.py change:

        if filePath.endswith(".sfl2"):
            if __debug__: print("#FileType: sfl2") # noqa
            itemsLinkList = ParseSFL2(filePath)
        elif filePath.endswith(".sfl"):
            if __debug__: print("#FileType: sfl") # noqa
            itemsLinkList = ParseSFL(filePath)

to:

        if filePath.endswith(".sfl2"):
            if __debug__: print("#FileType: sfl2") # noqa
            itemsLinkList = ParseSFL2(filePath)
        elif filePath.endswith(".sfl3"):
            if __debug__: print("#FileType: sfl3") # noqa
            itemsLinkList = ParseSFL2(filePath)
        elif filePath.endswith(".sfl"):
            if __debug__: print("#FileType: sfl") # noqa
            itemsLinkList = ParseSFL(filePath)

Then in the rr Script Filter change:

if [ $(version $macOSVersion) -le $(version "10.12") ]; then
    MRUfileExt="sfl"
else
    MRUfileExt="sfl2"
fi

to:

if [ $(version $macOSVersion) -le $(version "10.12") ]; then
    MRUfileExt="sfl"
else
    MRUfileExt="sfl3"
fi
1 Like