# Use stored value multiple times in a replacement

**URL:** <https://forum.literatureandlatte.com/t/use-stored-value-multiple-times-in-a-replacement/18831>\
**Category:** Wish List\
**Created:** [July 18, 2012, 1:38pm UTC](https://forum.literatureandlatte.com/t/use-stored-value-multiple-times-in-a-replacement/18831 "2012-07-18T13:38:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkturner](https://forum.literatureandlatte.com/letter_avatar_proxy/v4/letter/m/3be4f8/32.png) [@mkturner](https://forum.literatureandlatte.com/u/mkturner)\
**Post date:** [July 18, 2012, 1:38pm UTC](https://forum.literatureandlatte.com/t/use-stored-value-multiple-times-in-a-replacement/18831/1 "2012-07-18T13:38:27Z")

</div>

As of Scrivener for Mac version 2.3, the stored value of a replacement can only be used once. However, there maybe times when the user wishes to use the stored value multiple times within the “with” value. Here is a user scenario based on my own personal need:

Under Compile \> Replacements, I created a replace with “img($@)” as the replace value. The “with” value is as follows:

\<$img:$@;w=400\>  
PD: comp place $@.tif here

The goal here is to make it possible for the compiled document to include the two lines of text by typing “img(imagefilename)” in the manuscript. This scenario would work if the stored value could be used more than once. However, as of version 2.3 only the first occurrence of the stored value placeholder is replaced with the stored value.

Thank you in advance for considering this feature request.

-KIRBY

---

<div class="post-metadata">

**Author:** ![KB](https://forum.literatureandlatte.com/letter_avatar_proxy/v4/letter/k/e47774/32.png) [@KB](https://forum.literatureandlatte.com/u/KB)\
**Post date:** [July 19, 2012, 4:37pm UTC](https://forum.literatureandlatte.com/t/use-stored-value-multiple-times-in-a-replacement/18831/2 "2012-07-19T16:37:06Z")

</div>

This enhancement has been added for the next update.  
All the best,  
Keith

---

<div class="post-metadata">

**Author:** ![mkturner](https://forum.literatureandlatte.com/letter_avatar_proxy/v4/letter/m/3be4f8/32.png) [@mkturner](https://forum.literatureandlatte.com/u/mkturner)\
**Post date:** [July 19, 2012, 6:45pm UTC](https://forum.literatureandlatte.com/t/use-stored-value-multiple-times-in-a-replacement/18831/3 "2012-07-19T18:45:42Z")

</div>

Seriously? Wow! That’s awesome. Thanks.

-KIRBY
