[JS,CS3,CS4] Converting Paragraph numbering to text

I'm trying to add line numbers by applying paragraph numbering to selected text (which I call "myText"), then converting numbers to text (then later I'll use GREP to remove the period and shift them to the right).
I'm new to scripting, and wonder why the following doesn't work:
myText.bulletsAndNumberingListType=1280601709;
myText.convertBulletsAndNumberingToText();
The first line seems to add the numbering as I'd like, but the second line just makes them disappear again!
Thanks for any help you can give -- Jeremy

I just had a similar problem.
I have no idea whether my solution works in CS3.
( function() {
     var doc = app.activeDocument;
     // the image page item
     var r = doc.rectangles.item(0);
     // the destination textframe to hold the inline
     var tf = doc.textFrames.item(0);
     // it should already be tagged.
     // create a nested, blank tag
     var xe = tf.associatedXMLElement.xmlElements.add("bla");
     // copy the rect as inline
     xe.placeIntoInlineCopy(r,true);
Dirk

Similar Messages

  • After saving a pdf as Excel workbook the numbers remain text and cannot be used in calculations. Is there a better way to convert into real digital numbers?

    After saving a pdf as Excel workbook the numbers remain text and cannot be used in calculations. Is there a better way to convert into real digital numbers?
    I have tried to convert the pdf to Word instead but same difficulty with numbers: look like numbers but not usable for calculations

    Excel has a 'text to numbers' function, I would use that.
    Convert text to numbers. Microsoft Excel.

  • [CS3/CS4] Trouble with Gradient Text 22pts

    So, as Indesign CS3 and CS4, if i make a text 22pts and apply a gradient -90° rotated (into text), pdf exported its fine, but if it's distilled with .ps, ugly shade results.
    Why?
    With CS2 does not happen.
    Best regard.

    >I need distiller absolutly! (prepress workflow)
    when you you save postscript you are flattening the file so it could have something to do with the flattener presets.
    but there is no reason that you can't export from ID. I know you said its a work flow thing but one has to wonder are you working with people who are uninformed.

  • File size comparisons, InDesign CS3, CS4 and CS5?

    Hi, all.
    It seems there was a trend for several major releases where each time Adobe released a new version of InDesign and InCopy, average file sizes grew by 20% or so from the old release to the new release, at least back in the older CS days. Has this trend continued, such that file sizes in CS4 are substantially larger than file sizes from CS3, and CS5 files are substantially larger than those from CS4?
    Adobe, of course, wants to keep writing functionality that will keep the user community coming back to buy in to upgrades. The added functionality sometimes comes at a cost beyond the price tag. If file sizes are larger in a newer version, then page saves over a network or to a database are likely to be slower, and user productivity takes a hit while users are waiting for files to be saved.
    Has anyone done any testing to build the "same" page in multiple versions of InDesign to understand what the effect is on the file sizes? I'm specifically interested in the file sizes between InDesign CS3, CS4 and CS5. To be meaningful, the test page would have to be at least moderately complex, with a couple of photos, multiple text elements and so forth. By "same," the page wouldn't take advantage of new functionality in newer versions but would be saved as a native page of the current version, though the file sizes may be bloated by the new functionality like it or not.
    If you've done any testing along these lines, I'd like to hear more about it.
    Thanks.
       Mark

    The overall structure of ID's files have been exactly the same for -- as far as I can see back -- CS. No change at all, in there.
    There have been significant additions to the 'global' spaces; stuff like InCopy user data, table styles, object styles, and cross references. Each of these add a major chunk of data to each file, whether you use it or not, plus a few bytes per object (again, whether you use them or not -- ID also needs to know where you did not use them, that's why). I think these might be the main source of 'global' file size increase (a single object style in one of my files, for example, eats up a healthy chunk of 11,482 bytes).
    For the rest, all new stuff like 'span columns' is a handful of bytes per paragraph style. Tracking changes may very well double the size of text runs -- but 1 character takes up 1 byte of storage (plus perhaps some overhead of indicating its 'tracking' status). Any single measurement unit always uses 8 bytes at least (for example, the left inset for a column span -- even if it's not used, or set to 0pt).
    I think we're talking about a couple of K's here (oh -- perhaps a max of a hundred or so), in a file format that has been designed around the concept of "disk pages", each 4K big, meaning that sometimes adding one single character to a text box increases the file size by 4 K.
    Your idea of comparing the size of a file created in CS3 against the same saved as CS4 and as CS5 is certainly feasible -- I might try it some time, just to confirm it's purely the extra 'new objects' data that accounts for the size increase and to confirm my guesstimates of the number of Ks involved.

  • InDesign Backwards Compatibility CS3 - CS4

    Hi,
    Can someone please advise if Indesign CS4 is backwards compatible with CS3, and if not, in what areas would there be problems?
    many thanks
    B

    If I understand correctly, you want to open CS4 documents in CS3.
    CS4 documents are not compatible with CS3; CS3 is not able to load the documents at all. To forcibly open a CS4 document, it has to be saved from within CS4 as INX.
    Known problems are (of course!) new features of CS4; these will disappear. Another known issue is that for CS4 the paragraph formatting routines work different. The same text will not run exactly the same in CS3.
    The general feel on these forums is: "don't do it -- it's not worth the trouble".

  • Figure numbering AND paragraph numbering in the same document

    Hi everyone,
    I have a document with both figure numbering and paragraph numbering. So let say I am in section 4, then the first paragraph would be "4.1. Introduction" and the first picture would be "Figure 4.1: Cool pics".
    I created two different lists, one for the figure and another one for the text so that figure numbers and paragraph number don't conflict. However I cannot add the section number in the figure numbering since it's on the other list... I tried to have the figure numbering and paragraph numbering in the same list, but then the numbers conflict (e.g it gives 4.1 Introduction and Figure 4.2: Cool pics).
    Can anyone help me, doing what I want (which is "4.1. Introduction" and "Figure 4.1: Cool pics")? Any help would be appreciated.
    Thanks!
    ps: I am using Indesign CS5.5 on a pc

    Thanks for your answer Jump_Over, but my project is already divided into chapters (themselves divided in sections) in a book.
    I found a way around by having the figure numbering in the same list as the paragraph numbering, the twist : while I use level 1 to 4 in paragraph numbering, I use level 5 for figure numbering with a numbering definition like ^1.^#, so no more conflict between numbers.
    It's working fine so far...

  • I am steaming - Thru CS3 - CS4 and now CS5 Fireworks is crap

    All through CS3, CS4 and now CS5 Fireworks on 3 different machines Windows XP, Windows Vista and now Windows 7... simply is a crappily written app. And I have been using Fireworks since Macromedia and these problems have only appeared from Adobe.
    Is it to drive folks to Photoshop? After working on it for about 30 min you get 'low on memory' 'internal error'... it is unconscionable that an application that is so expensive can be written so appallingly. And when you run through the forums you just get tons of complaints about the shoddy code at Adobe.
    All of the computers are stacked with 4GB, this one has 16GB on a blazingly fast Phenom Black but that's not the killer... no other app crashes. Not the little $5 dollar apps, not anything. It is so frustrating. Can't someone buy this place and straighten it out!!! Macromedia was known for ridiculously great code and features.
    Had anyone solved this problem... I here if you login in as Donald Duck it might go away. What kind of nonsense is that?
    Help!
    Noel

    xgarth
    don't get so steamy. I am on your side and I actually met Adobe marketing VP in Australia and told him that his CS ****, mmm I mean suite is worthless on a Mac at least. He couldn't care less. They don't fix things they market "upgrades" so idiots like you and me will keep on spending. I for instance use Adobe and Macromedia products since mid 90s' and I must say that nothing has changed for me since FW3 or 4 and Photosop 5.5. Illustrator should always stayed simple but they managed to make it so fat it barely moves. Flash also became something it wasn't intended for and it's days are numbered by HTML5. Adobe Acrobat? you must be kidding. I still don't know what the F this is all about. and so on and so on....
    You will grow out of it eventually like I did. It doesn't worth it. Believe me. Just "upgrade" if you must have some feature. I think DW and Flash are the only products that need to be upgraded because of the industry it's linked to (web). the rest are just tools that still do what they did 10 years ago. they are only "integrated" now.
    There are other tools you can use, not many but there are or simply don't upgrade!!! this is the best way for you and I to tell Adobe what we think.
    Mic

  • CS3 CS4 CS5 backwards compatible or just backwards?

    Have just spent over a month talking with Adobe "Customer Service" - an offshore call centre whose entire capability seems to be to read from a script which says "Sir I understand your problem" - really? - "But all I can suggest is that you purchase CS5" - I had already! - "Or visit our online community".
    Over a month - I may include the thread here - including a dozen telephone calls where I was occasionally hung up on and where I NEVER ONCE spoke with a technician who actually understood my problem.
    I have client video projects stretching all the way back to Premiere CS2.
    When I upgraded from CS3 to CS4 (on PC) I was told to "start all my video projects from scratch" - that was the helpful answer from the Adobe "Customer Service" team! It appears as though the way CS4 handles native media formats is entirely non-compatible with CS3 or earlier.
    Two months ago I purchased a Mac and CS5 suite. Again, my CS3 projects are not compatible it seems. One month ago my PC died.
    I began a dialog with Adobe "Customer Service" looking for help.
    I own Production Suite or Master Suite in CS2, CS3, CS4 and CS5 - so I'm not a software pirate - and have a reasonable expectation that I should attract a certain level of support: specifically, I would like to exchange my CS3 PC software for CS3 Mac - seems like the best way to run those older projects - BUT I would gladly take any advice you can provide!!
    After over a month talking with a range of "Customer Service" people ranging from well-meaning but un-trained to straight-ahead rude people, I've been told to go buy the software somewhere else!
    Adobe CS3 for Mac ships new from $800 to $1500 from eBay.
    Boot Camp is an option since I own CS3 for PC but then I need to buy Windows and a Parallel software solution - also around $1200.
    I no longer feel like such an evangelist for IP - when this is the service you get as a Genuine Adobe Customer.
    I love using Adobe products but am disgusted at the total lack of service.
    Can anybody help?

    Going from Windows to MAC with AVI, WMV, and converted VOB's (if done) may cause some funny things to happen.
    I think I would check up what CODEC's those AVI and converted VOB's are using, and check if your MAC supports them, and also check if your MAC supports WMV.
    "basically every kind of media you can import to PP" is probably different on Windows than it is on MAC.
    Dag

  • Will Adobe CS3+CS4 work in OS above 10.6.8 ?

       I want to continue using CS3+CS4, mainly Dreamweaver CS3 and Fireworks CS4, plus some Photoshop & Acrobat Pro in CS4. All ran well on my mid-2007 Macbook Pro (MA896LL) with OS 10.6.8. But this MBP failed recently, due to heat, and for my next Mac(s) two options are a 2010 Macbook (MC516LL) that can run OS 10.6, or a 2012 Mac Mini with i5 (MD387LL) that will not run OS 10.6 but does offer other benefits. (of course, running an OS higher than 10.6 also offers benefits!)
       Will Dreamweaver-CS3 and Fireworks-CS4 run properly in all ways, with higher OS, with 10.7 or 8, 9, 10?
       Does the kind of computer make a difference for this? For example, would these programs behave differently in OS 10.9 on the 2010-Macbook or 2012-Mini? (probably not, I assume)
       These questions are important in deciding what to buy, but... now, because I don't have a Mac, I cannot do experiments (try the two programs with each OS) to see what happens. So I'm hoping you can help (thanks in advance!) by sharing your experience and knowledge.
       FWIW, the Mac programs in CS3 and CS4 are 32 bit, if that makes any difference in OS-compatibility.

    Yesterday the Macbook arrived (made in 2008, so it runs 10.6.8), and two installs (CS3, CS4) were successful.  For the next set of installations,* if Adobe requires a de-activation would the following plan work?
    ____My conclusion, after writing the paragraphs below, is "probably not" because (if Adobe doesn't check to see what computer CS is activated on) accepting this kind of de-activation would make it easy for someone to fake a de-activation by cloning the hard disk of a still-working computer, de-activating CS3/4 on that cloned disk-image, then continue using CS3/4 on the still-working computer and also (because they have fooled Adobe into thinking it's not active) an extra computer, using only one of the two activations.  So this probably isn't allowed by Adobe.  If necessary, probably I'll just have to contact Adobe, with the repairman to confirm the failure of my Macbook Pro with one of the CS3/4 installations.
    ____Well, here was the idea:
    ____My recently failed Macbook Pro had CS3 and CS4 installed.  The repairman recovered the entire hard drive (200 GB) and put it onto an external hard drive (4000 GB) as individual files and also as a cloned disk-image.  To de-activate, could I re-start the new computer in the old 10.6.8 (with "Startup Disk" in System Preferences) using this disk image, open Dreamweaver-CS3 (then deactivate) and Fireworks-CS4 (then deactivate)? Would the CS3 and CS4 on this disk-image be recognized by Adobe as being "one of my previous installs" that therefore would not count as being active, after they're deactivated?
    ____How to do this? I don't know much about clones. To get the old CS3/CS4 "recognized by Adobe" would this require putting the cloned "old Macbook Pro" into its own partition of a hard disk?  Or could I just start from the individual files of the un-cloned OS?  (In "System Startup" today, on another external hard disk I saw an OS 10.6.3 from a backup many years ago. I could choose it and re-start in 10.6.3, but... my question is about how to re-start so Adobe recognizes the old CS3/CS4 as a "previous activation on the old Macbook.")  Or maybe I could connect the hard disk with this cloned "old Macbook Pro" to my old half-working iMac, and de-activate CS3/4 from the iMac.
    ___ * The 2012 Mac Mini should arrive today, but I won't try CS3/CS4 on it (to see if it will install, and will run OK on 10.9.5) until later.  After doing the experiments, I'll report back about the results.

  • Illustrator CS 6 won't paste into a text box/paragraph of text, instead pastes a new line of text in the upper left corner of my document. How can I get it to paste into the selected paragraph or highlighted text like normal?

    I've done it a million times, I copy a selection of type...I select the type that I want to replace it with, and then I paste. Now, Illustrator will only paste the text as a "point text" (a single line) somewhere else on the artboard—it seems to always be the upper left corner of the art board.

    peg,
    In cases of sudden appearance of strangenesses, the list may be relevant, hopefully the easy part at the top.
    The following is a general list of things you may try when the issue is not in a specific file (you may have tried/done some of them already); 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save current artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to at least 5 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible);
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • CS2/CS3/CS4: Cannot get file path in Unicode of the current document on Windows

    Hi All,
    In my automation plugin I need to have full absolute path of the opened document with any possible non-English letters. Using SDK examples Listener and Getter that come with Photoshop SDK the full absolute path which I obtain is in the default ANSI code page (CP_ACP) and I can convert it to Unicode using MultiByteToWideChar() API. However this works well when I have corresponding to document name language set in the "Control Panel -> Regional and Language Options -> Advanced -> Select a language to match the language version of the non-Unicode programs you want to use." For example if name of the document has Russian letters and chosen language in "Regional and Language Options" is also Russian the described conversion works well. If I change "Regional and Language Options" to English for example, full path returned by Photoshop SDK API (AliasToFullPath in PIUFile.cpp) for the document with Russian letters will contain "????????.psd" symbols.
    So I need to have an ability to get absolute file path in Unicode. Is it possible in Photoshop CS2/CS3/CS4 for Windows? I have searched forum and SDK but could not find info on it.
    Is it possible to have native HANDLE of the opened file to get file info using Windows API?
    Please advice.
    Below given slightly modified code from Photoshop CS3 which I use to get absolute file pat of the opened document.
    Thanks and regards,
    Sergey
    std::string outFilePath;
    int32 theID = 0;
    SPErr error = kSPNoError;
    error = PIUGetInfo(classDocument, keyDocumentID, &theID, NULL);
    if (error == kSPNoError)
    Handle theFileHandle = NULL;
    error = PIUGetInfoByID(theID, classDocument, keyFileReference, &theFileHandle, NULL);
    if (error == kSPNoError)
    int32 length = sPSHandle->GetSize(theFileHandle);
    Boolean oldLock = FALSE;
    Ptr pointer = NULL;
    sPSHandle->SetLock(theFileHandle, true, &pointer, &oldLock);
    if (pointer != NULL)
    outFilePath = (char*)pointer;
    sPSHandle->SetLock(theFileHandle, oldLock, &pointer, &oldLock);

    Hi All,
    Does anybody know, whether it is possible to get Unicode file path of the current document in Photoshop via Photoshop SDK API or without them?
    Thanks,
    Serhiy

  • My graphical display of converted hexadecimal numbers changes with every run!

    Dear all,
    I've created a Vi that can select and convert hexadecimal numbers from a string array. These hexadecimal numbers contain acceleration data (units g).
    My string array (from line 68+) places every 10 rows a 1 line of hexadecimal number with a length of 300. I've managed to convert this into 1D array DBL.
    My current problem is, when I run my for loop my graphical representation of the acceleration data changes overtime!
    Can anybody help me solve this problem?
    Thanks in advance
    Attachments:
    Hexidecimal Numbers - BIN File GENEA 22-08-12.vi ‏46 KB
    T01Waist_right thigh_011628_2012-02-08 11-15-35.zip ‏750 KB

    I found a little dead time and decided to have a little fun cleaning up.  Notice that I removed the FOR loops on the left side.  The biggest thing was that I used the Read Text File configured to read lines (it gives me an array of the lines in the file), got rid of the first 68 lines, and then passed that array into the FOR loop.  Your code there was next to impossible to figure out, even with the comment.  I have no clue where you came up with trying to update every 25ms.  It shouldn't take your processing that long.  Instead, just index out the lines inside of the loop.
    There's still a bunch of cleaning up to do, but it's quitting time for me.  I'll try to get on sometime this weekend of you have more questions.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Hexidecimal Numbers - BIN File GENEA.vi ‏23 KB

  • CS3/CS4 Upgrade

    I installed CS3, I then bought a copy of CS4 upgrade and started to install it.
    Part way through, when it asked for CS3 serial number the only product option was CS3 Extended. I then realised that the upgrade copy I had bought was CS4 Extended upgrade.
    I then aborted the upgrade.
    The splash screen on CS3 about Photoshop now shows it as CS3 Extended even though it is just the normal version.
    I bought a normal version of CS4 upgrade but it will not recognise the serial, it wants a valid CS3 Extended serial.
    I uninstalled CS3 & CS4 Trial and then re-installed CS3, still the same problem with the solash screen showing it as CS3 Extended.
    If I uninstalled CS3 again and deleted all registry entries to Photoshop would this solve my problem?
    I have also tried the Adobe cleaner tool but this still left registry entries for Photoshop

    If I uninstalled CS3 again and deleted all registry entries to Photoshop would this solve my problem?
    Not at all. You need to delete the PCD database and any otehr asociated licensing and product identification files or simply manually deactivate everything, choosing to eradicate any stored serial numbers. Still, it wouldn't do anything for you, if you still had the wrong serials. Therefore do the only sensible thing - call phone support to sort this out. Nobody here can do that for you.
    Mylenium

  • How to convert chinese numbers into english?

    Hi
    I would like to know is there any API or code available to convert Chinese Numbers to English numbers.
    ex: chinese input is 萬一三
    i should convert this to 10013.
    Regards
    Suresh

    I would try using a numberFormat, but I don't know if it can parse a String with chinese characters.
    import java.util.Locale;
    import java.text.NumberFormat;
    NumberFormat formarter = NumberFormat.getInstance(Locale.CHINA);
    int number = formarter.parse(String);

  • Script to Change Paragraph Numbering

    Hi.
    I am really new to scripting (please don't hurt yourself laughing at my code below )  and need some help!
    The issue: The documents I author go through a translation process which takes the InDesign XML data and exports my text into a web browser tool so it can be translated. After it has been translated, the text is placed back into my document with the formatting and paragraph styles that it had when I exported it. That created a problem with Figure and Table captions as those paragraph styles have "Figure" and "Table" hardcoded into the paragraph style.
    Possible Solution: On page one of each document that is generated, I list the language of that document (for example "Russian"). I think I need to write a script that goes looks at the first page and if it has a language listed (in this case "Russian") then it replaces the paragraph numbering text with a defined text ("Рисуноk" is "Figure" in Russian).
    if ((app.documents.length != 0) && (app.selection.length != 0)) {
      myDoc = app.activeDocument;
      myStyles = myDoc.paragraphStyles;
      myStringList = myStyles.everyItem().name;
    // What im trying to do below: If page 1 contains text “Russian” then Change the “Figure Title” paragraph numbering style to “Рисунок ^#.” I am missing the page 1 text find function.
    var myPara = appliedParagraphfstyle;
    myPara.numberingStartAt: Рисунок ^#.
    I’m so lost!!!! Help! Screenshots below to show what im trying to achive. Thank you so much!

    Hmm, I think what you're after is "numbering expression" rather than "start at."
    "Start at" is the actual number it's going to assign, to either continue from the previous number or if you're hard-coding to always start at 1, for example.
    The expression is the form it'll take, with wording and spacing you're using as your format for these labels. In AppleScript, it'd be:
    set numbering expression of paragraph style "Figure Title" to "Рисунок ^#. "
    I don't know Javascript, but there must be something similar in the JS scripting guide.
    Hope that helps!
    Mary

Maybe you are looking for