Exporting assets
Learn how to export and use assets during your bot's runtime.
About this task
Assets are static external resources you can embed in your script for quick access and reuse during the bot's runtime. You import assets using the special Import (import
) command. See Creating assets for more information.
Whenever you want to use your asset, you first need to export it. Exporting an asset creates a local file in the host computer running the bot. If you don't delete the file, you only need to export it once during runtime.
Before you begin
Create an asset before exporting it to the script. See Creating assets for instructions.
Procedure
To export an asset for usage during your bot's runtime, use the Export Asset (export
) command in your script.
Results
Your asset is exported in the host computer's Temp
folder by default. The file get's a random name. Make sure to add a variable to the File path output parameter of the Export Asset command to get
the absolute file path of the exported asset for later use in your script.
What to do next
You should have the asset file path in a variable. Reference this variable whenever you want to use the exported asset.