# SelectedFile(s) -\> FAYT-Field

**URL:** <https://resource.dopus.com/t/selectedfile-s-fayt-field/51307>\
**Category:** Help & Support\
**Created:** [June 15, 2024, 11:26pm UTC](https://resource.dopus.com/t/selectedfile-s-fayt-field/51307 "2024-06-15T23:26:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dinkelhopper](https://resource.dopus.com/letter_avatar_proxy/v4/letter/d/bc79bd/32.png) [@Dinkelhopper](https://resource.dopus.com/u/Dinkelhopper)\
**Post date:** [June 15, 2024, 11:26pm UTC](https://resource.dopus.com/t/selectedfile-s-fayt-field/51307/1 "2024-06-15T23:26:24Z")

</div>

I have written a ScriptAddin to extend the FAYT field functionality. How can I get the currently selected file/files into the FAYT field? With the DOpus commands this can be done via Ctrl-Shift-Enter. This does not work with custom FAYT extensions ☹  
The use of DOpus arguments, e.g. {allfilepath}, would also be very nice.

Any ideas?

---

<div class="post-metadata">

**Author:** ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)\
**Post date:** [June 16, 2024, 12:20am UTC](https://resource.dopus.com/t/selectedfile-s-fayt-field/51307/2 "2024-06-16T00:20:48Z")

</div>

You could make it so you type a placeholder like `*` (or `**` or something, if `*` on its own is meaningful as a wildcard) the script will see that and know that it means "put all the filepaths into the command".

You could even make the script recognise `{allfilepath}`, but that's a lot more typing each time you want to use that in an ad-hoc FAYT context. 🙂

---

<div class="post-metadata">

**Author:** ![Dinkelhopper](https://resource.dopus.com/letter_avatar_proxy/v4/letter/d/bc79bd/32.png) [@Dinkelhopper](https://resource.dopus.com/u/Dinkelhopper)\
**Post date:** [June 16, 2024, 7:50am UTC](https://resource.dopus.com/t/selectedfile-s-fayt-field/51307/3 "2024-06-16T07:50:13Z")

</div>

Hey Leo, thx for your response.  
I'll try that out 😊
