clipboardData["image"] by file reference

Hugh Senior admin at flexiblelearning.com
Thu Nov 27 09:44:22 EST 2025


Thank you, Klaus.

It seems LC cannot parse an in-line binfile reference so a variable is needed...

on mouseUp
   get the fileName of img 1
   set the clipboardData["image"] to url("binfile:" & it)
end mouseUp

All working now.

Hugh


> Am 26.11.2025 um 12:00 schrieb Hugh Senior via use-livecode <use-livecode at lists.runrev.com>:
> 
> I want to copy an image that is displayed by a filename reference...
> 
> on mouseUp
>   set the clipboardData["image"] to url("binfile:"& the fileName of img 1) 
> end mouseUp
> 
> Why does this no longer work, please? I have tried various permutations of the dictionary syntax to no avail.

works as exspected here:
LC 10.0.3 rc2, macOS 26.1

Same with LC Create DP9 on macOS.

Best

Klaus

--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
klaus at major-k.de



More information about the use-livecode mailing list