Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

how to correctly place javascript as text in these fora

Community Expert ,
Jan 01, 2009 Jan 01, 2009
I recall having come across some advice about how to insert lengthy JavaScript in the Adobe-fora but cant remember or locate the thread; if I remember correctly it was implied that simply copy-pasting the lines can create problems of some kind.
Could someone please point me in the right direction?

Happy new year
pfaffenbichler
TOPICS
Actions and scripting
867
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Valorous Hero ,
Jan 01, 2009 Jan 01, 2009
Here you are...
http://www.ps-scripts.com/bb/viewtopic.php?t=2117
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 01, 2009 Jan 01, 2009
Thanks a lot for the prompt reply  unfortunately (in this case) I work on a Mac.
But I guess I can to do the changes listed in the Script with »Find and Replace«, so that should work out.
Thanks again!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Jan 02, 2009 Jan 02, 2009
For a Mac change.
From...

OutHTM = new File(decodeURI($.getenv("TEMP")) + "/Code2HTM.txt");

to:

OutHTM = new File(decodeURI($.getenv("TMPDIR")) + "/Code2HTM.txt");
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 02, 2009 Jan 02, 2009
LATEST
That doesnt quite do it, but I dont have Notepad  I just changed that line to

OutHTM = new File( "~/Desktop/Code2HTM.jsx");

and it works great, thanks again!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines