Page 1 of 1

Assign Built-In Function ID Return Value to Variable?

Posted: 07 Oct 2022 07:18
by Zardoz2293
Is there a way to capture the return value of a built-in function id and assign to a variable?

i.e., Function ID = #101

Thanks!

Re: Assign Built-In Function ID Return Value to Variable?

Posted: 07 Oct 2022 07:37
by highend
Nope

Re: Assign Built-In Function ID Return Value to Variable?

Posted: 07 Oct 2022 13:17
by LittleBiG
Zardoz2293 wrote: 07 Oct 2022 07:18 Is there a way to capture the return value of a built-in function id and assign to a variable?

i.e., Function ID = #101

Thanks!
That has no return value as it is a function for copying something to the clipboard.
But the command is "item path/name to clipboard", capturing the name with path into a variable is easy: $pathnames=get("selecteditemspathnames");

Re: Assign Built-In Function ID Return Value to Variable?

Posted: 07 Oct 2022 16:51
by Zardoz2293
Thank you all for your feedback.

Actually, what I was looking to do was override the value pushed into the clipboard, so the effective functionality of the built-in results for function id #101 would be modified. In my specific case I "always" want my paths if ending in a folder name to have the "\" at the end (I always have to add it manually). I solved by writing a script (which is great), but in my ideal overriding the function id's result, before it was pasted into the clipboard, would be ideal.

Re: Assign Built-In Function ID Return Value to Variable?

Posted: 07 Oct 2022 16:59
by jupe
Zardoz2293 wrote: 07 Oct 2022 16:51 In my specific case I "always" want my paths if ending in a folder name to have the "\" at the end
Configuration | General | Controls & More | Miscellaneous | Copy paths to the clipboard with a trailing slash