Use UTIs for AppleScript actions Fixes #1916

Makes sure that AppleScript actions have their direct/indirect types converted to UTIs.

Note: The wiki/docs should be updated to state that UTIs can now be used for AppleScript actions, so you can filter by UTI for direct/indirect type.
E.g. indirect type: only folders 

:)