Added iOS script from http://pastebin.com/12dHWYm8