Some editors require you to "Get Item Information" by hovering over an existing item in your bag first to "wake up" the script.