Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CS4 Select all compound paths?

New Here ,
Oct 28, 2008 Oct 28, 2008
Hi all,
There was a fab plug in set by Rick Johnson/Graffix called Select Menu. It is not yet updated for CS4.

The only function from the set I truly need is the ability to select all compound paths. Just wondering if it is possible to do this with a script? I recently found a javascript to close all open paths, so that got me thinking there may be a way to select the compound paths with a script as well...

The nice thing about scripts is they still seem to work even after a program upgrade. All my little applescripts are still working fine but my plugins are DOA in CS4. So I am thinking it would be great to have functions I depend on every day in script form.

I also wondered if there is a way to call the script with a speakable items command, which I guess would mean creating an action to run the script that I could then assign to a function key...?

So far I have not found a way to call a script in Illustrator using a speakable item.

I have near zero scripting experience so apologies if this is an annoying stupid newbie question. I have RSI issues and need to do most of my work via voice commands... it can be challenging to figure out how to do these things since my expertise is in graphics, not programming.

Thanks for any swift kicks in the right direction!!
:-)
TOPICS
Scripting
1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
LEGEND ,
Oct 28, 2008 Oct 28, 2008
Try this Javascript:<br /><br />var docRef=app.activeDocument;<br />for(i=0;i<docRef.compoundPathItems.length;i++){<br />var pathRef=docRef.compoundPathItems;<br />pathRef.selected=true;<br />redraw();<br />}//end for<br /><br />JET
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 28, 2008 Oct 28, 2008
Hi,Thanks!!
This does work but on a complex document it is very slow as it seems to be redrawing all the compound paths? It worked fine on a simple file but when I tried it on the kind of complex file I would actually use it on it has Illustrator hung up with a spinning beach ball....

The Graphix plug in to select all compound paths worked instantaneously. Is there a different way to write this that would not be as processor intensive?

Ah, the beachball just stopped spinning and all the correct paths are indeed selected...
:-)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 29, 2008 Oct 29, 2008
> it is very slow as it seems to be redrawing all the compound paths?

Remove the redraw statement:

redraw();
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 11, 2008 Nov 11, 2008
On Tue, 28 Oct 2008 19:07:47 +0000, Silly__V@adobeforums.com wrote:

> There was a fab plug in set by Rick Johnson/Graffix called Select Menu. It is

> not yet updated for CS4.

It still works in CS4.

--
Michael

mhphillips at gmail dot com
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 11, 2008 Nov 11, 2008
LATEST
>It still works in CS4.

Hey Thanks!!
I tried installing it back when I made this post but it didn't show up in the select menu so I thought it didn't work...

I tried again after your post and now it is working! Must have been pilot error the first time, Thanks!!!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines