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

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

New Here ,
Dec 14, 2018 Dec 14, 2018

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);

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

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

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

Thank you for reply.

you mean like this ?

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

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

This works fine.

But we need mount the shared directory in Mac.

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

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