automated library system script