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

LibraryType SWATCHES cannot access shared network file path inside eval script ?

New Here ,
Dec 14, 2018 Dec 14, 2018

Copy link to clipboard

Copied

Hi

i'm new to CEP Extension development. I'm trying to load Swatches file ( Adobe Swatches File - .ASE File ) via CEP Plugin.

I was able to meet the requirement on Windows machine because my Swatches files are kept in Windows file server.

Any one ever tried it on Mac computer ?

below are my code and suggest me how to load Swatches dynamically on Mac machines from Windows Shared Path.

    theFile = "\\\\xxx.xx.xx.23\\folder-xyz\\xyz\\xyz.ase";  /* This path works perfectly on Adobe Illustrator CC 2017 - Windows Operating System */

   theFile = "smb://xxx.xx.xx.23/folder-xyz/xyz/xyz.ase";  /* In Mac computer its not working */

    var theFile = new File(theFile);

    var openOpt = new OpenOptions();

    openOpt.openAs=LibraryType.SWATCHES;

    open(theFile,null,openOpt);

Views

565

Translate

Translate

Report

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
Enthusiast ,
Dec 14, 2018 Dec 14, 2018

Copy link to clipboard

Copied

I guess you need to get rid of the protocol on Mac.

Votes

Translate

Translate

Report

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
New Here ,
Dec 14, 2018 Dec 14, 2018

Copy link to clipboard

Copied

Thank you for reply.

you mean like this ?

theFile = "//xxx.xx.xx.23/folder-xyz/xyz/xyz.ase";

Votes

Translate

Translate

Report

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
New Here ,
Dec 17, 2018 Dec 17, 2018

Copy link to clipboard

Copied

LATEST

This works fine.

But we need mount the shared directory in Mac.

theFile = "/Volumes/FolderName/FolderName/filename.ase";

Votes

Translate

Translate

Report

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