Working with clipBoard/Pasteboard

Organizing tasks to work on, New Features Ideas, Building LCS & LCB Libraries & Widgets, Redecorating and Modifying the IDE, Hacking / Editing Tools, Compiling the Engine from Source, etc.
Post Reply
User avatar
OpenXTalkPaul
Posts: 1871
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Working with clipBoard/Pasteboard

Post by OpenXTalkPaul »

Reverse DNS style / UTI identifiers are common in macOS and other computer systems these days and are used in various ways.

If you've ever use the Engine's syntax for manipulating the clipBoard contents on macOS then you've already encountered these identifiers to indicate the type of data that's on the paste board. That may work differently on other OSes.

Here's an interesting article I came across which discusses indicating for temporary or confidential data on the clipboard with identifiers respected/supported by various historically popular macOS clipboard utilities:
http://nspasteboard.org
User avatar
richmond62
Posts: 3264
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Working with clipBoard/Pasteboard

Post by richmond62 »

I am glad you changed the title of the thread as I was a bit confused . . .

Oddly enough Danny Goodman's HyperCard 2.2 Handbook has NO mention of Clipboard in the index

[This is very odd considering Clipboard is mentioned in the index of The Complete HyperCard Handbook 2nd edition; which is for HC 1.2.]

but does state on page 67:

" . . . you may copy and paste among unlocked HyperCard fields. When you do, all font characteristics (font, size, style, etc.) are copied along with the text.

"You can, however, bypass this feature, an allow the font of the destination field's insertion point to govern the appearance of the text you are pasting in. Holding the Shift key while pasting (via the menu of Command-V) triggers this feature."
-
ADB.jpg
ADB.jpg (2.84 KiB) Viewed 490 times
https://richmondmathewson.owlstown.net/
User avatar
richmond62
Posts: 3264
Joined: Sun Sep 12, 2021 11:03 am
Location: Bulgaria
Contact:

Re: Working with clipBoard/Pasteboard

Post by richmond62 »

When it comes to the clipboard and confidential data I ALWAYS select-and-copy a random single letter as soon as I have pasted something like that.
https://richmondmathewson.owlstown.net/
User avatar
OpenXTalkPaul
Posts: 1871
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Re: Working with clipBoard/Pasteboard

Post by OpenXTalkPaul »

richmond62 wrote: Wed May 08, 2024 2:15 pm I am glad you changed the title of the thread as I was a bit confused . . .

Oddly enough Danny Goodman's HyperCard 2.2 Handbook has NO mention of Clipboard in the index

[This is very odd considering Clipboard is mentioned in the index of The Complete HyperCard Handbook 2nd edition; which is for HC 1.2.]

but does state on page 67:

" . . . you may copy and paste among unlocked HyperCard fields. When you do, all font characteristics (font, size, style, etc.) are copied along with the text.

"You can, however, bypass this feature, an allow the font of the destination field's insertion point to govern the appearance of the text you are pasting in. Holding the Shift key while pasting (via the menu of Command-V) triggers this feature."
-
ADB.jpg
Come to think of it I can't remember there being any 'the clipboard' keyword in HyperTalk at all.
Certain things like that you would actually script the actions as if the script was the user, so instead of having 'copy x to clipBoard' in your script you would write something like 'doMenu "Copy"' to put any selectedText on to the clipboard.
There were of course also XCMDs for doing things with the system clipboard.
Here's a new-old one from Uli that works inside the miniVMac emulator and copies data from the HOST computers clipboard (not the emulated System 6 or 7's clipboard):
https://github.com/uliwitness/minivmac- ... pboardxfcn
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests