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

Exporting All Paths to Illustrator Error

Contributor ,
Jan 31, 2017 Jan 31, 2017

I'm back!

Hello everyone,

I am trying to just export all paths from photoshop to Illustrator, I am getting a general photoshop error,

(this functionality may not be available in this version of Photoshop)

var newPath = "paths.ai";

var newFile = File(newPath);

var options = new ExportOptionsIllustrator;

options.path = IllustratorPathType.ALLPATHS;

app.activeDocument.exportDocument(newFile, ExportType.ILLUSTRATORPATHS, options);

Anyone ever dealt with that error? I have CC 2017 version

Thanks Everyone!

TOPICS
Actions and scripting
886
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

correct answers 1 Correct answer

Community Expert , Jan 31, 2017 Jan 31, 2017

File(newPath) really needs a path for saving the file (and not only a name).

Be sure that a path in your document exists. If vector shape, be sure that the shape layer is activ. And than try your code with only one change in line #1:

var newPath = "~/Desktop/paths.ai";

Have fun

Translate
Adobe
Community Expert ,
Jan 31, 2017 Jan 31, 2017

File(newPath) really needs a path for saving the file (and not only a name).

Be sure that a path in your document exists. If vector shape, be sure that the shape layer is activ. And than try your code with only one change in line #1:

var newPath = "~/Desktop/paths.ai";

Have fun

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
Contributor ,
Feb 01, 2017 Feb 01, 2017

Always coming to my rescue haha. Thank you!!!

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 ,
Feb 01, 2017 Feb 01, 2017
LATEST

It was my pleasure. Glad I could help.

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