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!
Assign Built-In Function ID Return Value to Variable?
-
Zardoz2293
- Posts: 614
- Joined: 09 Nov 2011 20:20
- Location: USA
Assign Built-In Function ID Return Value to Variable?
MacOS Tahoe v26.4.1
VM (Client): Windows 11 Pro (AArch64), 25H2.26200.8246 (10.0)
Display: Main=MacBook 4112 x 2658 @200%; External 3840 x 2160 @125%
VM (Client): Windows 11 Pro (AArch64), 25H2.26200.8246 (10.0)
Display: Main=MacBook 4112 x 2658 @200%; External 3840 x 2160 @125%
-
highend
- Posts: 14923
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Assign Built-In Function ID Return Value to Variable?
Nope
One of my scripts helped you out? Please donate via Paypal
-
LittleBiG
- Posts: 1848
- Joined: 08 Apr 2011 12:57
- Location: Win10x64
Re: Assign Built-In Function ID Return Value to Variable?
That has no return value as it is a function for copying something to the clipboard.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!
But the command is "item path/name to clipboard", capturing the name with path into a variable is easy:
$pathnames=get("selecteditemspathnames");-
Zardoz2293
- Posts: 614
- Joined: 09 Nov 2011 20:20
- Location: USA
Re: Assign Built-In Function ID Return Value to Variable?
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.
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.
MacOS Tahoe v26.4.1
VM (Client): Windows 11 Pro (AArch64), 25H2.26200.8246 (10.0)
Display: Main=MacBook 4112 x 2658 @200%; External 3840 x 2160 @125%
VM (Client): Windows 11 Pro (AArch64), 25H2.26200.8246 (10.0)
Display: Main=MacBook 4112 x 2658 @200%; External 3840 x 2160 @125%
-
jupe
- Posts: 3446
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: Assign Built-In Function ID Return Value to Variable?
Configuration | General | Controls & More | Miscellaneous | Copy paths to the clipboard with a trailing slashZardoz2293 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
XYplorer Beta Club