Another quick bit of AppleScript for Aperture
The ID of the keyword is usually the keyword e.g. “Portrait”
N.B. You must select files that have the keyword otherwise the script will error.
set input to ""
tell application "Aperture"
set imgSel to (get selection)
if imgSel is {} then
error "Please select an image."
else
display dialog "Enter id of keyword to delete:" default answer input
set keyId to text returned of result
repeat with thisImg from 1 to count of imgSel
tell library 1
tell item thisImg of imgSel
delete keyword id keyId
end tell
end tell
end repeat
end if
display dialog "Done." buttons {"OK"} with title "Alert!" with icon note
end tell