What happens if you set a timer and retrieve the clipboard contents after a small delay?
Same results actaully. I tried at different intervals as well up to 5 seconds with no avail.
What happes if you clear the clipboard before copying the selection to it?
If you run a clear before making the copy it errors out and say thy there is nothing on the clipboard to grab. This appears to be the same issue that another individual was having... Referenced here: http://www.ps-scripts.com/bb/viewtopic.php?f=9&t=4489&sid=a77983ed5a8f6f8aebe91ed7790229c4
Looks like a bug to me...
Here's three things you can try:
1) Call ExtendScript to copy the selection.
2) Use AppleScript and/or VB to copy.
3) In the thread you linked to, it looks like script listener code solves the problem.
the ps-scripts link seems to point to a page that no longer exist, could you please provide it again?
I'm having a very similar issue (PS CS5, OSX).
I'm 214 years old, I completely forgot! I hope to have provided good answers at least
Actually, the Ps-scripts thread is basically about a PC issue (copy&paste code working as a script, not working within a panel).
Here I'm (too) facing a weird complication. Like mcgaryes said, the Clipboard is one step behind (or not working at all if you first perform a clear) - while the paste command keeps working as expected (at least to me, on a Mac).
So you can copy (to the Clipboard), paste (from the Clipboard), yet the Clipboard can't be accessed at all as Bitmapdata:
Clipboard.generalClipboard.getData(ClipboardFormats.BITMAP_FORMAT) as BitmapData;
or in the best case, due to some unknown problem, it's not updated.