Hi All,
Does anyone know of a way to get out of IsolationMode using Javascript?
I am trying to create a Duplicate of a Selection on a Tempory Layer.
The selection is often quickest to get to by Isolating.
Then running script.
I'm getting this error:
Error 9034: Cannot add a new layer as sibling to 'Isolation Mode' synthetic layer.
-> tempLayer = app.activeDocument.layers.add();
I also have this issue with another Script I use to Save Artwork.
If Isolation Mode is active when script is run, file is saved with non-isolated sections "Dimmed"
Would be nice to "Idiot Proof" the code a little more by getting out of Isolation mode if need be before saving.
Snippet of save code below:
saveName = new File(FilePathAndName); saveOpts = new PDFSaveOptions(); saveOpts.compatibility = PDFCompatibility.ACROBAT5; saveOpts.generateThumbnails = true; saveOpts.preserveEditability = true; app.activeDocument.saveAs( saveName, saveOpts );
Fingers Crossed there is a way to access "Isolation Mode" using Javascript.
Both scripts are too much for an action.
I can't run action from Javascript... can I? (boo)
and I realy don't want to go down the path of running JS from an Action, then calling VB to call a different action bla bla.
am using CS6 with CC coming soon...
Thanks in advance...