How can I use /execute to run a command on a named item

I'm trying to do /execute @e[type=Item,name=Test] ~ ~ ~ /setblock ~ ~ ~ minecraft:stone
Why does this not work? and what command should i be doing?
Best Answer
A workaround for this would be to use the Tag feature added in the 1.9 snapshots./scoreboard players tag @e[type=Item] add (tagname) {Item:{tag:{display:{Name:customname}}}}
This item is now marked with you tagname and you can use/execute @e[type=Item,tag=tagname] ~ ~ ~ /setblock ~ ~ ~ minecraft:stone
If you cannot use the 1.9 snapshots, you can do the same thing by using a scoreboard objective instead of a tag, and setting the item's score to 1, then testing for that score.
Pictures about "How can I use /execute to run a command on a named item"



How do you give a named item through commands?
How to Enter the CommandHow do you use the execute command?
How to get a Command BlockITEM DETECTION SYSTEM!? -- Command Block Tutorial
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Elijah O'Donnell, Andrea Piacquadio, Andrea Piacquadio, Andrea Piacquadio