Skip to main content

Hi Community,

here is my guide how you can do it šŸ‘‡šŸ‘€

Step 1ļøāƒ£:
Use the "Log to File: Log text to file" action and set the "File path" to a file with a .js extension. (C:\Users\marc.mueller\Desktop\AA_Slider.js)

Put your JavaScript code in the "Enter text to log" textbox with your variables. (see screenshot) šŸ‘€

āš ļøMake sure to set the "When logging" property to "Overwrite existing log file" to have the current variable in your JavaScript code.āš ļø

Step 2ļøāƒ£:
I the šŸŒ"Browser: Run JavaScript" action set the "JavaScript to run" as "Import existing file" and point to the same file we have specified in Step 1ļøāƒ£.


I hope you find this useful.

Ā 

Now I am curious to hear about your solutions?


Cheers
Marc

Ā 

Ā 

That is how I do it too!

There is also an action called String: Evaluate variable that does the same thing, but keeps the values in a variable rather than having to write to a file.


Iā€™m also doing it this way for all my JS file creations.

However, it seems like there may be a file size limit to this method.

I actually asked about this yesterday:

Browser: Run Javascript fails to work with larger files are imported | Community


ā€‹@Marc 1985, thank you for sharing this!


Reply