How to divide all textFrames in one-character-per-textFrame?

Hello:
How to divide all textFrames in one-character-per-textFrame?
Example: the textFrame "Letters" will be divided in 7 textFrames: "L", "e", "t", "t", "e", "r", "s".
Help, please.

Hi Paul, try this one
#target Illustrator
//  script.name = splitSelectedFramesIntoWords2.0.jsx;
//  script.description = splits selected texFrames into separate words;
//  script.required = select point text textFrames before running;
//  script.parent = CarlosCanto;  // 10/14/11
//  script.elegant = false;
var idoc = app.activeDocument;
var sel = idoc.selection; // get selection
var selCount = sel.length; // count items
var tFrames = []; // to hold the textFrames
for (j=selCount ; j>0 ; j--) // loop thru selection & get textFrames backwards
                    tFrames[j-1] = sel[j-1];
for (k = 0 ; k<tFrames.length ; k++) // loop thru textFrames
                    var xpos = tFrames[k].position[0]; // get x
                    var ypos = tFrames[k].position[1]; // get y
                    var words = tFrames[k].contents.split(/\s/g); // get all words into an array
                    //$.writeln(words);
                    var space = tFrames[k].duplicate(); // dup to get width of a space
                    space.contents = " ";
                    var sw = space.width;
                    space.contents = words[0]; // replace space with first word
                    var w = space.width;
                    var wordCount = words.length; // count words
                    for (i=1; i<wordCount ; i++) // loop thru words
                                        xpos2 = xpos+w+sw; // next words position = previous word pos+width+space
                                        var iword = space.duplicate(); // duplicate previous word
                                        iword.contents = words[i]; // add next word
                                        iword.position = [xpos2,ypos]; // position the character = original position + new width
                                        w = iword.width; // get words width
                                        xpos = iword.position[0]; // get words position
                    tFrames[k].remove(); // remove textFrame

Similar Messages

  • How to print all columns in one page

    Hi,
    Can anybody explain me how to print all columns in one page.we have around 15 to 20 columns for 4 reports and all these reports are build on one multiprovider.we are using BW 3.5.
    Can anyone explain me  how to print ALL COLUMNS IN ONE PAGE  .currently they are getting all columns in 2 to 3 pages. They are using PORTAL to run the reports here.
    Is it possible to do by customizing Webtemplate or by macros in Workbook.Please help me
    Edited by: kotha123 on Oct 11, 2010 5:58 PM

    Hi,
    Your best bet is to use a workbook template or else Excel to pdf option...Thanks

  • How to delete all mails with one klick?

    It's annoying to delete every single mail.
    How to delete all mails with one klick, like in the paperbasket?
    Thanks

    If the emails have been previously deleted (I.e. in the trash folder), tap Edit at the top of the list. You should see a delete all button at the bottom. If the messages are in a standard folder, they need to be handled one at a time.

  • How to transfer all materials from one plant to other plants?

    How to transfer all materials from one plant to other plants?

    Hi
    To transfer stock in one step  between plants belonging to same company code use movement type "301" and using transaction code "MIGO". IF you like in two step it helps to monitor stock in transit use movement type "303" and "305".
    303 Transfer posting plant to plant in two steps - removal from storage
    305 Transfer posting plant to plant in two steps - placement in storage
    to transfer stock between plants of diffrent company code go for stock transpor order using tcode "me21n"
    hope it helps

  • Multiple devices on same account - how to transfer ALL files in one place?

    Hi,
    I am using my Apple ID on 5 apple devices, incl. 2 laptops and Mac. Need to migrate all files to one computer for syncing with iPhone and cut out some devices, but...
    Question 1:  How I can move ALL my music files from old MB Pro (runs Mac OS X 10.5.8) with iTunes 10 to Mac (runs Mac OS X 10.9.2) with iTunes 11.1.5?
    Note, this includes songs purchased outside of iTunes and burnt from CDs. Is it possible to somehow easily identify the songs that are missing on Mac and copy just them from the old computer, but without manually comparing? For now for whatever reason Mac only has 401 songs vs my old MB Pro has 1670+ songs. So, please suggest how to make the import on the missing songs to Mac as efficient as possible.
    Question 2: How do I deauthorize the device once I copy my old music to Mac? Currently only see the button "Deathorize All" in iTunes on Mac. What if I want to choose which computers I still want to be able to stay on the same Apple ID in iTunes?
    Thanks a lot!!

    Decide which Mac is your primary. On the Mac that is not the primary - create a folder on the desktop - drag all the tunes from iTunes into that folder - copy that folder to an ext HD or a memory stick.
    Plug into the primary Mac and tell iTunes to import all the tunes from the folder.
    iTunes has good sort options so it won't take long to get rid of the duplicates using the Show Duplicates from the View dropdown menu.
    An alternative would be to check at http://dougscripts.com/itunes/ and see if there is a script that will take care of what you want.
    MJ

  • How to delete all HU in one storage type

    Dear experts I did use the /SCWM/ISU for uploading of the stock but now I need to change something in the structure of the storage bins.
    I cannot change anything, because the bins are having HU already. Could someone give me a tipp how I can delete all HUs from one specific storage type?
    Thanks in advance
    BR
    Denis

    Hi Denis,
    If the HUs are empty then the above solutions as Pet and Ifran mentioned should work for you.  Else, if you have stock in the HUs then you need to scrap the stock, you can do this using /n/scwm/adgi look up the HUs then scrap them.  This will empty the bins.
    Thanks,
    Faical

  • How to get all songs on one album artwork

    I have 1 album that is listed twice on the albums list. I have 2 songs on one and one song on the other. I cannot get them all on just one. I have checked all the info on the info tab and everything is the same. I have copied all the songs in one file on my desktop and deleted everything from itunes and my music folder and when I add it back to that artist it adds two. The only thing that is different is one song was downloaded on itunes and the other 2 were from a CD.
    selected all the songs and when to get info and retyped the name of the artist and the artist album and fixed it like blood sugar sex magik.

    how about the less painful click the first song then shift-click the last song?

  • How to add all photos in one Album

    Hi,
    I bought iMovie yesterday and I have albums in photos application. I want to add all photos in one album to iMovie.
    Thanks
    Best Regards

    They can only be added one at a time, a bit annoying but that's the way.
    Add photos
    With your project open, scroll the project timeline so that the playhead (the red vertical line) appears over the location where you want to add the photo; you can move the photo later if you want.
    If the playhead is resting over a video clip, the photo is added before or after the end of the clip closest to the playhead.
    Tap the Media Library button , and then tap the Photos button at the bottom of the screen.
    Tap Camera Roll, Photo Library, or an album, and then tap the photo you want to add.
    To preview a photo before adding it, tap and hold the photo in the Photo browser until it appears in the pop-up viewer.
    The added photo appears for a duration of 3 to 6 seconds, depending on the length of the transitions that appear before and after the photo, but you canchange this duration.
    A Ken Burns effect is also applied to the image, which means the camera appears to sweep across and zoom in on the photo. You can adjust this effect. Go to Edit a photo to learn how.
    You can ask Apple to fix this in the next update:
    http://www.apple.com/feedback/imovie_ios.html

  • How to keep all developments in one package

    Hi
    I have a requirement
    In my company one new training server was installed for which all developments should be copied from other servers client.
    For this i have to keep all developments in one package.
    Can anyone suggest me how to do this
    urgent plz
    thanks in advance
    sateesh

    Hello Sateesh
    In the transport organizer (<b>SE10</b>) you can create a workbench request of the following type: <b>Relocation of objects with package change</b>
    That's the documentation of this request type:
    Select relocation of objects with package change
        Relocations of objects with a package change are transports with which
        o   you change the original location of the objects entered and
        o   reassign the objects to an appropriate new package.
    Use
        The package change means that you can automatically adjust the transport
        attributes of the objects to the new development system. This means that
        you edit the objects immediately after they have been imported into the
        target system.
    I have not yet used this kind of request but with some playing around you should easily find out how it works. I am sure this is (one of the possible) solutions to your problem.
    Regards
      Uwe

  • How to display all data on one page in web app

    Hello.
    So I have web app JSF (IceFaces framework) + JBoss all Crystal Report working perfectly. So I have page with Crystal Report tags (e.g.
    <bocrv:reportPageViewer reportSource="#{crystalReport.reportPath}" ...
    in this report I have table with some data (data from DB) and I want to display this data on one page. Unfortunately now this data are moving to the next page and unfortunately I even donu2019t know how switch to the next page (I see only info e.g. 1with 2).
    So how to display this data on one page if its impossible how to torn on pagination.

    So I canu2019t do this, I canu2019t display all data on one page (until Iu2019m using JSF tags)?
    In JSF tags Iu2019m setting only path to file. In my bean Iu2019m using u201CReportClientDocumentu201D object itu2019s easy way to load report file (u201Copenu201D method) and set parameters (u201CgetDataDefController().getParameterFieldController()u201D method) and also connect to data base (u201Clogonu201D method) but I havenu2019t this property u201CsetSeparatePages(boolean)u201D.
    Maybe Iu2019m doing this wrong and there is a simpler way maybe I can use somehow u201CCrystalReportVieweru201D please give my any advice.

  • How to get all JFrames in one window.

    I have a JFrame with menu system. When the user opens a file using the menus and filechoosers,another JFrame is called wherein the required output is displayed. If another file is chosen,the data of the previous file is not cleared from the runtime memory. What additional statement is needed to debug this program?
    Also on clicking the second menu and the menuitems therein,each JFrame instance is created with the required outputs. How to make all these JFrame instances in a single window? I tried the JDesktopPane but with no success.

    JFileChooser jfc = new JFileChooser();
    JMenuBar jmb = new JMenuBar();
    JMenu jm1 = new JMenu("File");
    JMenu jm2 = new JMenu("Plot");
    JMenuItem jmi1 = new JMenuItem("Open Alt+O",new ImageIcon("Open.gif"));
    JMenuItem jmi2 = new JMenuItem("Exit");
    JMenuItem jmi3 = new JMenuItem("Graph");
    public void actionPerformed(ActionEvent ae){
         if (ae.getSource()==jmi1){
              int result = jfc.showOpenDialog(null);
              File file = jfc.getSelectedFile();
              String ftr = file.toString();
              System.out.println("The file selected is "+ftr);
              ftr.trim();
              if (result == JFileChooser.APPROVE_OPTION){
                   try{
                        RandomAccessFile raf = new RandomAccessFile(ftr,"r");
                        long l = 0;
                        while (l < raf.length()){
                             String str = raf.readLine().toString();
                             l = raf.getFilePointer();
                   jm2.setEnabled(true);
                   frame("Frame");
                   raf.close();
              }catch (Exception e){
                   System.out.println("Exception caught is "+e.toString());
         }else if (result == JFileChooser.CANCEL_OPTION){
              jfc.cancelSelection();
         }else if (ae.getSource()== jmi2){
              System.exit(0);
         }else if (ae.getSource()== jmi3){
              graph("Graph");
    static void frame(String title){
         JFrame frame = new JFrame(title);
         frame.getContentPane().add(new GraphPanel(), BorderLayout.CENTER);
         frame.setDefaultCloseOperation(2);
         frame.pack();
         frame.setVisible(true);
    static void graph(String title){
         JFrame frame = new JFrame(title);
         frame.getContentPane().add(new Graph(), BorderLayout.CENTER);
         frame.setDefaultCloseOperation(2);
         frame.pack();
         frame.setVisible(true);
    Whre should I use frame.setVisible(false); and frame.dispose();

  • How to copying all pages at one shot?

    Does anybody know of a way of copying all pages at one shot, under a tabset in an application in a workspace to another application in the same workspace instead of doing it page by page?

    There is no Select All option, but you can do it a little faster than opening each email and tapping the Trash icon. In the top rightcorner of the list of email is an edit button. Tap Edit.
    You can then tap each email in the list to select it for deleting and then tap the Delete button at the bottom of the list.
    These screenshots are from my iPad, but it works the same on my iPhone.

  • How do I add more than one video per track/layer?

    Hi.
    Could someone please advise me how I can add more than one video to a track/layer?
    I'm cutting and pasting parts and each time I paste, a new track/layer is added.
    The final video is going to be approximately 5 minutes long.
    I am 17 seconds in and have 54 tracks already!
    How do I stop this?
    Thank you very much
    J

    More video tracks. This is actually what you want.
    Unless you're just making a still image (like Photoshop), multiple layers give you control to animate each individually. (If it's just a Photoshop comp you're after, you may want to create it in Photoshop)
    If you want to move ALL OF THE VIDEO TRACKS TOGETHER, you can use
    parenting or
    precompose those individual layers into a single composition.
    livedocs

  • How to pass all values from one node element to created node element?

    Hi
    I have model node element under which there are 7 values, and I've created value node element and trying to pass the values from the model node Element to this value node element. But instead of passing all the values its listing only one value.
    How do we rectify this problem!!!
    Thanks in Advance
    Srikant

    Hi Anil
    I've created the node named: TableNode
    and the name of the node from which i want to get the data is : Li_Required_Node
    the Node Structure is
    Context
      |_ Zs_Quantity_Input
         |_Output
           |_Node_Required_Node
              |_Schddt
      |_TableNode
        |_CmpDate
    The Schddt has some 7 values
    The code Snippet is as follows:
    IPublicPricesComp.ITableNodeElement nodeElement;
    IPublicPricesComp.ILi_Required_NodeElement scheduleElement;
    int counter3Max = wdContext.ILi_Required_Node().size();
    for( int counter3= 0 ; counter3 < counter3Max ;counter3++ )
    nodeElement = wdContext.createTableNodeElement();
                             scheduleElement = wdContext.nodeZs_Quantity_Input().nodeOutput_Contract_Qty().nodeLi_Required_Node().getLi_Required_NodeElementAt(counter3);
    nodeElement.setCmpDate(scheduleElement.getSchddt());
    wdContext.nodeTableNode().addElement(nodeElement);               
    On writing the above code and then binding the node to a table column only one value getting displayed
    Where can be the error?
    Thanks in Advance
    Srikant

  • How to mute ALL audio in one single go in an edited multicam clip?

    Hi there
    I'm having to replace some audio in an already edited multicam clip. (there are mulitple audio parts I'm replacing by the way)
    How can I mute ALL of the audio in one go, as I have about 400 cuts and am currently having to mute one by one per cut.
    thanks

    Easy. Select them all. In the inspector, click the Audio tab. Under "Channel configuration", uncheck the box which would say something like "400 selected clips".

Maybe you are looking for