Python Forum
is it possible to use python to read and write from a jsx file? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: is it possible to use python to read and write from a jsx file? (/thread-18876.html)



is it possible to use python to read and write from a jsx file? - nadavrock - Jun-05-2019

i have extend script java script document i want to write into using python. but it didnt work. does it only work with txt files?


RE: is it possible to use python to read and write from a jsx file? - Larz60+ - Jun-05-2019

Quote:but it didnt work.
How so? Please define didn't work!
What were you expecting it to do, what does your code look like?
see: https://www.lifewire.com/jsx-file-2621849


RE: is it possible to use python to read and write from a jsx file? - nadavrock - Jun-08-2019

read file. write into file. looked something like this:

with open('C:/Users/mr big/Desktop/xxx1.jsx', 'r') as f2:
text = "xxx"
with open('C:/Users/mr big/Desktop/xxx1.jsx', 'w') as fout:
fout.write(text)


RE: is it possible to use python to read and write from a jsx file? - heiner55 - Jun-08-2019

Can you upload a small jsx-file?