open Aseprite, go to edit, scripts, open scripts folder,, put the .lua in there, then when in a project go to the same spot and click the script refresh thing and then the list will expand and you can run the script