<pre>on doToSelectedCards doWhat  put "Protect,Unprotect,Unmark,Show,Hide,Edit" into doWhatDomain  if doWhat is not in doWhatDomain then exit doToSelectedCards  if the number of marked cds = 0 then exit doToSelectedCards  repeat with x = 1 to the number of marked cds    if doWhat is "Protect" then set cantDelete of marked cd x to true    if doWhat is "Unprotect" then set cantDelete of marked cd x to false    if doWhat is "Unmark" then unmark marked cd x    if doWhat is "Edit" then edit the script of marked cd x    if doWhat is "Show" then      go to marked cd x      show cd picture    end if    if doWhat is "Hide" then      go to marked cd x      hide cd picture    end if  end repeatend doToSelectedCards</pre>