PHOTOSHOP CC 2015.1: Javascript writln doesn't work under Win10

  • 1
  • Problem
  • Updated 3 years ago
Javascript command "writeln" doesn't work under Win10 in specific path:
"C:/Windows/Temp/filename.txt" (The folder does exist)
But if I try to write to this path: "~/Desktop/filename.txt" it'll work.

Win10 pro, 64bit, latest PS version
Photo of JoeS

JoeS

  • 87 Posts
  • 16 Reply Likes
  • confused

Posted 3 years ago

  • 1
Photo of Tom Ruark

Tom Ruark, Official Rep

  • 26 Posts
  • 11 Reply Likes
Do you have write access to c:/windows/temp/? I'm guessing no and I would use Folder.temp for a temp location to store things in.

File(Folder.temp + "/filename.txt")
Photo of JoeS

JoeS

  • 87 Posts
  • 16 Reply Likes
I do have write access as an admin. I remember in CS6 I think there was a problem too. Maybe this could be the same?

But your solution works well. Thank you very much!