---
title: "Document automation with custom scripts"
canonical_url: "https://www.nutrient.io/guides/document-automation-server/content-extraction/custom-scripts/custom-script-arguments/"
md_url: "https://www.nutrient.io/guides/document-automation-server/content-extraction/custom-scripts/custom-script-arguments.md"
last_updated: "2026-06-09T10:25:14.360Z"
description: "Learn about custom script arguments for document automation and content extraction, optimizing file management and processing efficiency."
---

# Efficient content extraction with custom scripts

| Value              | Description                                                                                                                                                                                                    |
| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Newfilename**    | The file name generated by Document Automation Server (DAS) Content Extraction. This only includes the name and not the whole file path.                                                                       |
| **Oldffilepath**   | The input file path. In a SharePoint step, this will be the temporary download location.                                                                                                                       |
| **TempOutputFile** | This is the temporary output file. It is the same as concatenating the **TempTarget** and **Newfilename** variables.                                                                                           |
| **TempTarget**     | This is the temporary folder where DAS Content Extraction stores all the target files until the job is finished. This is where the output file will be generated i.e. outputfilepath= TempTarget + Newfilename |
| **FinalTarget**    | This is the destination path.                                                                                                                                                                                  |
| **JobSource**      | This is the source path that the user provided when setting up the job. It can be a file name, a folder name, or a tree name.                                                                                  |
| **LocationType**   | Source location type: File, Folder, or Tree                                                                                                                                                                    |
| **value1**         | This represents the `%VALUE1%` selected variable                                                                                                                                                               |
| **value2**         | This represents the `%VALUE2%` selected variable (if found)                                                                                                                                                    |
| **value3**         | This represents the `%VALUE3%` selected variable (if found)                                                                                                                                                    |
| **value4**         | This represents the `%VALUE4%` selected variable (if found)                                                                                                                                                    |

---

## Related pages

- [Explore custom scripts for document automation](/guides/document-automation-server/content-extraction/custom-scripts/custom-scripts-samples.md)
- [Harnessing custom scripts in document automation](/guides/document-automation-server/content-extraction/custom-scripts.md)
- [Enable custom scripts for automation tasks](/guides/document-automation-server/content-extraction/custom-scripts/enabling-custom-scripts.md)

