SetAttribute and app selection

SetAttribute replaces AddAttribute to add and set attributes