script swing