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

Can't save to drive other than C

Community Expert ,
Apr 12, 2008 Apr 12, 2008
I'm trying to save a file to a folder on my F drive with this code (CS3):

docRef.saveAs(new File("/F/temp/TargaTest.tga",tgaSaveOptions,false));

and I get this error:

Error 8800: General Photoshop error occured. This functionality may not be available in this version of Photoshop. - Could not save as "C:\F\temp\TargaTest.tag" because the file could not be found.

Notice how it stuck the C: at the front? Why is that happening? The only way I can get it to save at all is to not specify a drive. With "/temp/TargaTest.tga", the file gets saved in C:/temp (but as a .psd instead of .tga - any thoughts on that?).

I get the same results if I set the script up to let me navigate to a folder and then try it this way:

docRef.saveAs(new File(outputFolder +"/" + "TargaTest.tga",tgaSaveOptions,false));

- it will still add the C: at the front. Grrr..

Dan
TOPICS
Actions and scripting
797
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
Guru ,
Apr 12, 2008 Apr 12, 2008
I think the problem is the way you are creating the file object. Try

docRef.saveAs(new File("/F/temp/TargaTest.tga"),tgaSaveOptions,false);
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 ,
Apr 14, 2008 Apr 14, 2008
LATEST
I can't believe I did that. Thanks - you saved the day!

Dan
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