Copy link to clipboard
Copied
Hi all, I'm trying to create a Pattern Swatch out of the Selected Object, so I'm using
app.executeMenuCommand ('Define Pattern Menu Item');
this successfully adds the swatch to the swatches panel, but it also brings up the Pattern Options Panel and goes into "Pattern Editing Mode" where in the UI one could either click on "Cancel", "Done" or "Exit Editing Mode" buttons...
the problem is I can't exit out of the Pattern Editing Mode, has anyone discovered if there is a MenuCommand for it?
thanks
Copy link to clipboard
Copied
I'm on the same mission for Symbols. Any luck? I'm hoping there's a way to feed vars to these.
Copy link to clipboard
Copied
no luck, I resorted to using Actions to create the swatch...it worked.
Copy link to clipboard
Copied
I've got a lot of actions to create symbols. I'm hoping to feed variables into their names. I can figure something out with renaming an existing. Terrible that Adobe won't release important info regarding these, there's gotta be a way to suppress dialogs from these things, or emulate a return key press to the dialog?
Copy link to clipboard
Copied
hey CarlosCanto,
do you use Autohotkey or anything of the like?
if so you could use that to simulate "Right mouse press" then "e" for exit pattern editing mode. and compile.
app.executeMenuCommand ('Adobe Make Pattern');
var keyfile = new File("C:/patternexit.exe");
keyfile.execute();
bit roundabout though...
Copy link to clipboard
Copied
If you do this just send {ESC}.
I did it and its working fine.
happy to post the .exe if you would like it.
Copy link to clipboard
Copied
Hi, that script was for distribution so in that case I had to stay within the scripting capabilities of Illustrator, many users don't want to install third party software, plus AHK is windows only, right?
...but it looks fantastic, I'll give it a try for my own use.
thanks for offering.
Copy link to clipboard
Copied
And prob not reliable enough in that case as you have no control over a clients computer.
would need many safe guards to make sure the ESC was only pushed if illustrator window active. in case another program takes focus in that split second... etc.
as far as I know AHK is PC only, there are other alternatives but would be different scripting language.
1 of the best scripts I have written with AHK changes the default program for pdfs from illustrator to acrobat and back. modifying the registry directly.
this allows me to open pdfs straight from outlook into ether program without saving file first. as outlook has no open with dialogue.
I also have another one ( not written by me ) called FixZoomBug. this allows the ALT+mouseWheel to zoom in illustrator without the file menus activating. I could not do without this...