Script id get implementation