# How to use .script file

**URL:** <https://forum.universal-robots.com/t/how-to-use-script-file/8345>\
**Category:** URCaps SDK\
**Created:** [August 3, 2020, 8:00am UTC](https://forum.universal-robots.com/t/how-to-use-script-file/8345 "2020-08-03T08:00:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon71220377](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@anon71220377](https://forum.universal-robots.com/u/anon71220377)\
**Post date:** [August 3, 2020, 8:00am UTC](https://forum.universal-robots.com/t/how-to-use-script-file/8345/1 "2020-08-03T08:00:32Z")

</div>

Hi!

My question is how can I use a .script file in my URCap? What I mean is that I want to record TCP positions, but it’s much easier using URScript than Java, so I would write a .script file, but I don’t know ho to integraate it into my URCap. Any help is much appreciated.

---

<div class="post-metadata">

**Author:** ![sko](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/sko/32/573_2.png) [@sko](https://forum.universal-robots.com/u/sko)\
**Post date:** [August 4, 2020, 12:33pm UTC](https://forum.universal-robots.com/t/how-to-use-script-file/8345/2 "2020-08-04T12:33:28Z")

</div>

Hi,

would it be possible for you to put the needed script lines into the Scriptwriter method in your URCap installation node and call the function in your URCap Program node?

If you want to write the Script-Code in a separate file directly, I would suggest you taking a look at the Script Wrapper URCap example:

> **[GitHub - BomMadsen/URCap-ScriptWrapper: Small URCap that demonstrated wrapping...](https://github.com/BomMadsen/URCap-ScriptWrapper)**
>
> Small URCap that demonstrated wrapping a URScript file in a ProgramNode. - GitHub - BomMadsen/URCap-ScriptWrapper: Small URCap that demonstrated wrapping a URScript file in a ProgramNode.
