# Scripting and specifiing Variables

**URL:** https://www.finalbuilder.com/forums/t/scripting-and-specifiing-variables/1288
**Category:** Discussion
**Created:** [August 14, 2009, 9:22am UTC](https://www.finalbuilder.com/forums/t/scripting-and-specifiing-variables/1288 "2009-08-14T09:22:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [August 14, 2009, 9:22am UTC](https://www.finalbuilder.com/forums/t/scripting-and-specifiing-variables/1288/1 "2009-08-14T09:22:45Z")

</div>

I am trying to setup a Text Find that finds a string.&nbsp; Then I need a script to add the string to a variable.&nbsp; Right now I'm trying to use this

Action.LogToVariable(FoundText)

I&nbsp;don't know how to specify the Variable I&nbsp;wish to log to.

&nbsp;

Any info would be helpful,

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [August 17, 2009, 1:41am UTC](https://www.finalbuilder.com/forums/t/scripting-and-specifiing-variables/1288/2 "2009-08-17T01:41:06Z")

</div>

Hi Matt,

I've attached an example project which shows how to add the search results to variable. Hope it helps.

Regards,  
Paul.

[TextFindExample.fbz6](https://www.finalbuilder.com/forums/uploads/default/original/2X/a/a7c8a1ae12847b218f14a647b1bce881515c87c7.fbz6) (2.091 KB)
