JS CS3 Fastest way to create a group

I have a selection of about 1050 elements and to create a group I'm using:
var myNewGroup = new Array;
for (i=app.selection.length-1; i>=0; i--) {
    myNewGroup.push (app.selection[i]);
  var myGroup = app.activeDocument.groups.add(myNewGroup);
This works but it's very slow. I have tried the following:
var myNewGroup = app.selection;
var myGroup = app.activeDocument.groups.add(myNewGroup);
The app.selection approach gives me an Invalid parameter error. What I don't understand is that the working code creates an array and adds each element to the array then a group is created from that array.
With the second approach app.selection is an array so why does this group?

Thanks again Kris,
The document I'm trying this on is supplied not created by me so I should of run a test on a doc a created first, so I did. I made a new A4 doc and place a number of text elements on the page then selected them and ran the script again. Sure enough the selection became a group.
So I went back to the supplied doc and selected a couple of the frame and check under the Object menu , Content and to my surprise the options Graphic, Text, and Unassigned were all grayed out (could not select any).
Yet when I ran:
$.write(app.selection[1].constructor.name+"\n");
the console returns TextFrame and for
$.write(app.selection[1].contentType+"\n");
the console returns 1952412773 (TEXT_TYPE).
So there seems to be an issue with the file not the script. Thanks for you help Kris much appreciated.

Similar Messages

  • Fastest way to create a group from list of recived emails

    I thought this would be as easy as drag and drop but no such luck.
    Here's the situation.  I had a class of 25 students email me from their mobile phones all using the same subject.  Now I'd like to create a mailing list / group so that I can easly contact all of them if need be.  I tried creating a new group and dragging all of the emails into it to no avail.  I also tried right clicking and checking the menus to see if there were any options which there weren't.
    Anyone have any suggestions?  I'd be open to using automator or something similar if it worked.
    Thanks,
    Greg

    I think the fastest way to do this is in Mail>Message>Add to Address Book, then in AB>File>New Smart Group>Card:>Was updated After... say yesterday, then select all those & make a new (not Smart) Group to drag them to so it won't change after that.
    Unless you could get them all to eMail with some other unique that AB can see as a Group field.

  • Fastest way to create buttons from TOC entries?

    I am trying to make a TOC interactive by applying rollovers and links to each entry. What is the fastest way to create buttons out of each entry? Would the "create outlines" command be appropriate? As it stands now, I am copying an entry, pasting it into a new frame, aligning it over the original entry, then converting to button and applying behaviors. There's got to be a more efficient way to do this!
    Using CS3 Design Standard.
    Thanks for any help you can provide.

    Matt,
    function(){return A.apply(null,[this].concat($A(arguments)))}
    Sorry about the attachment. Not sure what happened
    See
    Announcement: File Attachments temporarily disabled
    above. The "temporarily" was an understatement at the time -- this has been in effect for, what? the past 2 years? Now it's just a poignant Daily Reminder of Jive's many shortcomings.

  • Fastest Way To Create Ultrabeat Instrument From Wav Loop?

    Hello, can anyone share the fastest way to create and instrument from a WAV file?
    I know you can convert a wav to ESX24 instrument but I use Ultrabeat not ESX.
    Im finding my self divinding each shot into region and then exporting that to its own file.
    Is there a faster/simpler way?
    -Thanks

    You're right! It does work, however, if you follow these steps:
    1. Right-click on wave file in Arrange and choose "Slice at Transient Markers" or use the corresponding key command.
    2. Select all the split regions right-click on them and choose: Convert > Convert to new audio file(s)
    3. Again, with all the regions selected choose: Convert to new sampler track.
    4. Now launch Ultrabeat. Click on the Import button anc choose the .exs file you've just created (will be located in your project folder). Then drag the audio files into UB as desired.
    You could skip Part 3 altogether and simply slice at transients, convert to new audio file(s) and then in a new kit of UB drag them into the sample window of OSC for each part...

  • Fastest way to create subtitles

    Hi! What is the fastest way to create subtitles. I have a short film with one hundred subtitles. I have a text list with time codes, can I use that somehow? Or do I have to enter every subtile separately? And what are the basic settings?

    A possibility seems to be using Quicktime Pro to add your text to a Quicktime movie. The Apple instructions are in Text Track Tutorial. I never used it in real life,... but I tested it in the past and it seemed to be doing what I expected: to layout text over an existing movie at preassigned timecodes...
    For sure you must first adapt your text and timecodes to the required format, and most of all you must have the "original" timecode in your movie untouched (all timecodes your text is making reference to). But if you edited and exported your movie from FCE you lost the original timecodes... so I'm not sure this may help you.
    The other approach is manual: in FCE add a text clip at the correct timecodes, one at the time...
    Piero

  • HT1349 I just purchased an Iphone and love it except I'm surprised and annoyed that there is no way to create a group within contacts.  I coach a youth basketball team and routinely want to fire off a mass email or text to the same group. Am I missing som

    I just purchased an Iphone and love it except I'm surprised and annoyed that there is no way to create a group within contacts.  I coach a youth basketball team and routinely want to fire off a mass email or text to the same group. Am I missing something?

    When I click on my contacts icon on my phone there is a Groups choice in the upper left hand corner. Make sure you are in All Contacts and not a specific person.

  • Fastest way to create child class from parent?

    As the subject states, what do you folks find is fastest when creating child classes directly from the parent? (esp. when the parent is in a lvlib) I thought I'd post up and ask because the fastest way I've found to get working takes a few steps.
    Any suggestions ae appreciatized!
    -pat

    Thanks for the quick response Ben!
    Yea, I apologize, in your response I realize my OP was more than vague haha (it hapens when you get used to your own way of doing things I guess huh)- I'm trying to create a child from a parent so that it has all of the methods that the parent has.
    In order to do so I currently have to open and close LV a few times during my current process so that vi's in memory dont get mixed up- Currently I save a copy of the parent class in a sub dir of where it is saved, close out of LV, open the new 'copy of parent.lvclass', save as>>rename 'child class.lvclass', close LV, and open up the project to 'add file', then right click>>properties>>inheritance.
    Is this the only way to do this?
    Thanks again!
    -pat
    p.s. I'm tempted to steal your cell phone sig, hope you dont mind haha good stuff!

  • What's the fastest way to create a clipping path?

    In CS3 & 4 I've created a bazillion clipping paths via pen tool and mouse. I've also tried using the various selection tools to create selections, then turning those selections into paths and modifying the path. I've roughed in paths then zoomed way up to fine tune them.
    Is there any plug-in or other slick method to create clipping paths real quickly? Maybe a Wacom pen would work quicker than a mouse? I haven't tried that. I've tried everything else I can think of.
    I happened to notice there are online services that charge like $2.00 to create a clipping path for you. So that either has to be from slave labor or someone has figured out a real fast way to do it.
    I'm sorry to repeat a question if it's been answered before.  I searched for clipping paths in the Photoshop forum and Adobe returned 0 results.

    A Wacom tablet is a must. If you are doing lots of clipping paths, avoid carpel-tunnel, and get the work done easier and faster using the Wacom. I've tried all the sizes and I use a 4x5 because it's all the real estate you need, even on 30" monitors. Other than that, there is no software that thinks like a human can in making discretionary choices. Just get the Wacom and roll. You'll have that pen tool motating at full throttle and even make the labor enjoyable.
    Be sure to take your customary 20 minute ergonomic breaks to let your eyes focus and +20 feet away.
    Best,
    Ken

  • Is there a way to create a group function?

    I want to create a group function like max,sum,count for a
    pl/sgl function. This group function will be something like max
    (let's call it max2) but it will return the second highest value
    of a group.
    Any ideas anyone?

    Since you might not completely understand what i mean i give you
    this example:
    the ranktest table is:
    A     B     C
    a     b     1
    a     b     1
    a     b     5
    a     b     12
    a     b     7
    b     c     1
    b     c     3
    b     c     2
    b     c     4
    b     c     8
    c     d     4
    c     d     3
    c     d     6
    c     d     1
    c     d     2
    c     d     12
    c     d     7
    c     d     3
    a     b     5
    c     d     12
    SELECT A,B,C
    FROM (
    SELECT A,B,C, dense_rank() over (
    PARTITION BY A,B
    ORDER BY C desc) AS sorted_c
    FROM ranktest a)
    WHERE sorted_c = 2
    -- this way we get the c column to have the 2nd highest value
    -- for each set of A and B
    --RESULT
    a b 7
    b c 4
    c d 7
    SELECT a.A,a.B, sum(a.C), count(a.C)
    FROM ranktest a
    GROUP BY a.A,a.B
    -- this way we get the group functions to work on two of the
    -- columns
    --RESULT
    a b 31 6
    b c 18 5
    c d 50 9
    The result that i want is
    a b 31 6 7
    b c 18 5 4
    c d 50 9 7
    My question is can this be done in a single select statement. I
    know it can be done with an intermediate step (of the creation
    of a temp table).
    Plus i would like to ask the experts, would a single select
    statement be more efficient?
    NOTE: the tables and data are just test data. The real tables
    and data and the select query are different. The real ranktable
    has about 1 million records. That's why i am worried about
    efficiency.

  • Fastest way to create a track of Whole notes beginning to end

    I am trying to create a tapper track consisting of a series or low G (G2) whole notes.
    What is the fastest way of doing this. (they really should be quantized) And, they should also be on beat-one only, throughout an occasional meter change.
    In logic you could drag blocks. I realize I could simply loop and then convert loop to real midi...
    But.. would this run amuck with meter changes. (Remember I just want notes beginning on beat one, and ONLY beat one.
    -Thanks

    Where you have sig changes, copy the region, and adjust it's length to fit the meter … you only need 1 region, rather than try to anticipate the myriad of time sigs that may crop up.
    I understand exactly what you mean, and it makes a lot of sense. I think it's strictly a question of the pattern of usage. If his style when writing is to frequently throw in some odd time sig that he hasn't used much before and is not likely to use again anytime soon, then what you say seems like the best approach. On the other hand, I'm assuming he's more in a situation where he tends to throw in, say, a measure of 2/4, 3/4 or 5/4 every now and then. And it's just a few sigs like that which he tends to use frequently. Therefore it might be slightly easier to have a few regions like that already prepared, and in a place where I can grab them easily. If I have them marked clearly by name and color, I can feel comfortable that I'm avoiding an error. Whereas if I'm creating them over and over again each time I need one, the snap settings and zoom level are relevant, and it's a little too easy to make a careless mistake, if the phone rings at the wrong time.
    Also, he sometimes wants whole notes, and sometimes quarter notes. And maybe there are some other variations like this. This would also be a reason to have some material prepared that I can use over and over again.
    But of course if one day I decide to emulate Stockhausen and throw in a bar in 142/8 time, it makes sense to create that only when I need it, because if I create that region in advance it probably won't get used much.
    So in practice I could picture him doing it a combination of both ways, because chances are certain sigs are used often and others are used rarely. I think it really depends on the writing style, and the pattern of how the unusual sigs are distributed. And also if he sees an advantage in the marking by color. That could be considered helpful, or it could be considered ugly and distracting.

  • Is there a way to create a group alias that I can text/message?

    Similar to an e-mail alias that contains multiple e-mail addresses which makes it easy to send one message to multiple people, I'd like to be able to create a group alias from some set of contacts in my Address Book that I can send a message (either text or iMessage if supported by the recipient) to.  Does the iPhone 4 running iOS5 support this and if so, how do I go about using this feature? 
    Note, I'm not looking for a group chat function where people have run a particular app in order to join a group, I just want to be able to easily send a message to > 1 person and if they want to respond it's directly to me.

    You can group your contacts, but you will not be able to send group messages natively. You need a 3rd party application for this. I have developped a free one, Easy Group, to create group of contacts (family, football team), and then send group texts and group emails.
    http://itunes.apple.com/fr/app/easy-group/id461469079?mt=8
    Rémi
    Note: I may receive some form of compensation, financial or otherwise,from my recommendation or link.

  • Is there a way to create different groups for my contacts using the installed contact app

    I am trying to make a group on my contacts. So that it's easier to just make messages to people and not having to make group messages every single time. For example, making a group for a sports team so that I can just message everyone in the group at once.

    No not possible but you can create contact groups at www.icloud.com and if you have contact synced thru cloud the groups you make at www.icloud.com will appear on your phone

  • Is there a way to create a group in contacts without individual contact cards

    I need to send emails to 100 people at a time.  The addresses are in an excel spreadsheet.  How can I create a group without having to create a contact card for each individual?
    I'm using Mountain Lion.

    If you are referring to photo albums no you can't create them on the iPad with the current iOS software. You could not do it on the iPad original either as stated above.
    You can purchase third party apps that allow you to do so. One app that I know of is called Photo-Sort. I am sure there are others available in the app store if you care to search.
    You can provide feedback to Apple here and let them know how you feel.
    http://www.apple.com/feedback/ipad.html

  • Fastest way to create a KeyboardEvent.ENTER submit function.

    Hello, a submit button is on the stage next to a text input field. It must be possible to use both mouse and the enter key to press the button.
    What's the fastest and easiest way to add an eventListener to the ENTER key, on the button?

    So it would have to be something like this? But now the MouseEvent won't work? Do I really have to create a duplicate of the function for both to work? Seems like a hassle..
    submitBtn.addEventListener(MouseEvent.CLICK,handler);
    stage.addEventListener(KeyboardEvent.KEY_DOWN,handler);
    function handler(Event){
       if(event.charCode == 13)

  • Fastest way to create DVD Movies

    I have a ton of Mini DV tapes that I want to convert into DVD's. I am not real interested in editing the content. I would just like to have DVD's with automatic chapters inserted either on each day change or on each event (camera record button pressed). Is there a good way to do this? Do I need to purchase software other than iWorks to do this? I tried OneStep DVD on iDVD but that doesn't add any chapters at all.

    Well I tried creating a new project with iMovie 8 and added all clips to make one movie file. I was hoping that each clip would result in a chapter. Well after an hour and a half of waiting, no such luck. It seems that I got the same result as using One Step DVD. I have one large movie with no chapters.
    So at this point I guess I have to use GarageBand to add chapters? I couldn't figure out how to open the movie and do that though.
    Is my best be to do this to install iMovie 6? Will that create the chapters I want automatically? If not, is there other MAC software out there that will do what I want?
    I bought a Mac because I thought all this stuff was worked out and made easy. It seems its no easier than the PC. Actually ULEAD on the PC was fairly easy. Any thoughts?

Maybe you are looking for

  • Installation von Photoshop Elements 4.0

    Hallo zusammen, seit gestern bin ich stolzer Besitzer von Photoshop-Elements 4.0. Bei der Installation fiel mir der Ordner Zugaben auf. Die darin enthaltene Dither-Box konnte ich, dank der vorhandenen ausführlichen Hinweise, problemlos einbinden. Was

  • How do I get Flash Player and IE9 to "play nice"?

    I need help trying to figure out why I have difficulty loading various sites, because I get certificate error messages, IE9 then crashes, and of course windows tries to look for a solution, to no avail!? I recently installed Adobe Flash Player after

  • Externalize the Skin from ADF Faces project

    I have a requirement, where we don't want to bundle Skin(CSS, adf-faces-skins.xml, adf-faces-config.xml files) with the web project. Which would help us to add new skin or change the existing skins. I see the CSS file name is different when it render

  • Can someone help with a div that pops up when you hover over a button?

    I made a div that pops up (stacked on the rest of the page) when you hover over a button (gigs). It works in the safari preview but when I test it online it doesn't. It's above the logo instead of blocking it and on the left site instead of the right

  • DropDownList casting problem

    Table int id string name Tables extends table Array<TableLinks> of children TableLinks Table rightTable In flex, I get a list of Tables from my web service Display a combobox with the list of Tables Once someone selects from the list the list of Tabl