Skip to main content
gokulakrishnanmohan
Participant
December 14, 2018
Question

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

  • December 14, 2018
  • 1 reply
  • 758 views

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

This topic has been closed for replies.

1 reply

Jarda Bereza
Inspiring
December 14, 2018

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

gokulakrishnanmohan
Participant
December 15, 2018

Thank you for reply.

you mean like this ?

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

gokulakrishnanmohan
Participant
December 17, 2018

This works fine.

But we need mount the shared directory in Mac.

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