Skip navigation
Currently Being Moderated

Any suggestions to type quickly the numbers separated by a space on a text line?

May 31, 2013 7:54 AM

For example from 1 to 100 or more like this 1 2 3 4 5 ..... 101 102 103 and so on.

 

I need this to end up in Illustrator but I also have the office programs Word, Excel, Access but I'm not advanced user there.

 
Replies
  • Currently Being Moderated
    May 31, 2013 8:05 AM   in reply to GSIDesign

    GSIDesign,

     

    You may:

     

    1) In Excel or similar type 1 in A1, then in B1 type =A1+1, then copy in B1 in C1, then copy B1 and C1 in D1 and E1, and keep doubling what you copy until done, and copy everything;

    2) Select the Type Tool, click somewhere, and insert; you may need to remove a lineshift at the end.

     
    |
    Mark as:
  • Currently Being Moderated
    May 31, 2013 8:13 AM   in reply to Jacob Bugge
     
    |
    Mark as:
  • Currently Being Moderated
    May 31, 2013 11:06 AM   in reply to GSIDesign

    try this script

     

    // http://forums.adobe.com/thread/1223144?tstart=0
    // carlos canto
     
    var idoc = app.activeDocument;
    var title = "Number List";
    var range = prompt ("Enter a range of numbers", "1-10", title);
    var nums = range.split("-");
    var first = Number(nums[0]);
    var last = Number(nums[1]);
     
    var str = "";
    for (i=first; i<=last; i++) {
        str = str+i+" ";
    }
     
    var itext = idoc.textFrames.add();
    itext.contents = str;
    
     
    |
    Mark as:
  • Currently Being Moderated
    May 31, 2013 11:13 AM   in reply to CarlosCanto

    Does that snippet include line breaks, Carlos?

     
    |
    Mark as:
  • Currently Being Moderated
    May 31, 2013 11:40 AM   in reply to Kurt Gold

    no, it'll give you a string of numbers separated by a space

     

    "1 2 3 4 5..."

     

     

    do you need it like this?

     

    1

    2

    3

    4

    5

     
    |
    Mark as:
  • Currently Being Moderated
    May 31, 2013 11:46 AM   in reply to Kurt Gold

    Just put a  \r inbetween the quotes in line str = str+i+" "; It should read str = str+i+"\r"; to get a vertical list.

     
    |
    Mark as:
  • Currently Being Moderated
    May 31, 2013 12:02 PM   in reply to CarlosCanto

    Thanks, Carlos. I don't need it at all, but I thought the OP was looking for that.

     

    If that applies, then Larry already gave the answer.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points