
So if there's normal layers named that, it'll be a problem.

It'll use the layer's name to try and determine if we are currently in isolation mode by the layer's name being "Isolation Mode". Okay, for those fortunate to have CS6+ Illustrator, this approach may be a possible workaround since it's cross-platform, and needs to use no pre-programmed shortcut keys as Exit Isolation Mode is recordable from the Layers fly-out menu. Set WshShell = WScript.CreateObject("WScript.Shell")Īs my shortcut for exiting Isolation Mode is Ctrl+Alt+9, I send those keys using the sendkeys | VBScript | syntax described there.ĮDIT: Forget all this, if you are on CS6+, see next post for CS6+ solution. Var scpt = File("C:\\Users\\User\\Desktop\\test_SendKeys.vbs") But, I think the problem with actions is that they don't unload when you tell them to?*Īnyways, if you consider executing an external file from extendscript that can punch in the key shortcut as being from "within extendscript", then, the answer is yes, if you want to do something along the lines of the following code: The same thing can also be done in an equally hefty way, by recording an action that does the same thing ( if possible), and running that from the script in CS6+. I just tested on Windows, and it worked, even performing actions after exiting the isolation mode. Or, another insane way to try to workaround this, is to record a platform-specific script which you can either write to disk and execute, or manually write and then execute, which will simply send keys to activate the Illustrator's Exit Isolation Mode keyboard shortcut (which you have to assign in keyboard shortcuts), and it will exit the isolation mode. Yea, turns out, you can save the document! The downside is the upside. can I? (boo)Īnd 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. patibility = PDFCompatibility.ACROBAT5 Īpp.activeDocument.saveAs( saveName, saveOpts ) įingers Crossed there is a way to access "Isolation Mode" using Javascript.

Adobe illustrator keyboard shortcuts exit isolation code#
Would be nice to "Idiot Proof" the code a little more by getting out of Isolation mode if need be before saving. If Isolation Mode is active when script is run, file is saved with non-isolated sections "Dimmed" I also have this issue with another Script I use to Save Artwork.

The selection is often quickest to get to by Isolating.Įrror 9034: Cannot add a new layer as sibling to 'Isolation Mode' synthetic layer. I am trying to create a Duplicate of a Selection on a Tempory Layer. Does anyone know of a way to get out of IsolationMode using Javascript?
