OSStatus err = noErr;
PasteboardRef inPasteboard;
PasteboardCreate(kPasteboardClipboard, &inPasteboard);
PasteboardSyncFlags syncFlags;
ItemCount itemCount;
syncFlags = PasteboardSynchronize( inPasteboard );
require_action( syncFlags&kPasteboardModified, PasteboardOutOfSync, err = badPasteboardSyncErr );