Hi Hugh,
> Am 27.11.2025 um 15:44 schrieb Hugh Senior via use-livecode
> <[email protected]>:
>
> Thank you, Klaus.
>
> It seems LC cannot parse an in-line binfile reference so a variable is
> needed...
see below, no variable neccessary for me!
> on mouseUp
> get the fileName of img 1
> set the clipboardData["image"] to url("binfile:" & it)
> end mouseUp
>
> All working now.
I used your exact snippet and it worked for me:
----------------------------------
on mouseUp
set the clipboardData["image"] to url("binfile:"& the fileName of img 1)
end mouseUp
----------------------------------
> Hugh
>
>> Am 26.11.2025 um 12:00 schrieb Hugh Senior via use-livecode
>> <[email protected]>:
>>
>> 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
[email protected]
_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode