Logic Pro X Edit user .patch code

Is it possible to edit the code of a user-created .patch file?

The patches are Kontakt instruments, and I need to remove host automation in bulk. If there's a way to just modify 1 line in the file and resave it without having to open Logic, that'd be sweet. Thanks in advance!