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);
Copy link to clipboard
Copied
I guess you need to get rid of the protocol on Mac.
Copy link to clipboard
Copied
Thank you for reply.
you mean like this ?
theFile = "//xxx.xx.xx.23/folder-xyz/xyz/xyz.ase";
Copy link to clipboard
Copied
This works fine.
But we need mount the shared directory in Mac.
theFile = "/Volumes/FolderName/FolderName/filename.ase";