May be because it's more a hack then a feature? :) I'm trying to avoud using "/script" 'cause it can be banned by blizz at any moment as it was before with many other userfull commands and features :)
Blizzard can't ban calling functions from other addons... just calls to their functions. Furthermore, if Blizzard were to protect the call to GetPlayerMapPosition, then a /note here slash command wouldn't work either.
I didn't try this script yet but it seems that it will bring at least "Note Edit" dialog which I would like to avoid. Also it's seems to that it will open Map dialog which I didn't want 100%.
Exactly i don't even want the dialog. I want to put a not exactly where I am standing with a custom text and the the rest default settings.
Also a feature to set a default note icon for icons made with /note would be nice, instead of random.