CocoaScript-safe duplicate commands