I haven’t used this script in a couple years. Looks like someone found a more recent solution to a similar workflow here.