Stroke bug in ILL-CS2 (?)

Hi all,
I think I might have discovered a bug in Illustrator CS2's stroke weight handeling by Javascript.
The bug is that when there is no stroke at all (ie. stroke weight is "0 pt" or empty), JavaScript reports it as being "1". It also reports the stroke weight as being "1" when it is actually 1 pt.
I've written this simple script to verify it:
] myCharAttribs = app.activeDocument.textFrames[0].textRange.characters[0].characterAttributes
] alert(myCharAttribs.strokeWeight)
Results: when the first char in the text frame has a stroke of "0 pt", the result is "1".
when the first char in the text frame has a stroke of "1 pt", the result is "1".
when the first char in the text frame has a stroke of "6 pt" (for example), the result is "6".
Can anyone else verify this? Also, is there a way to solve this problem?

Keep in mind there are many textranges per textframe, usually one per character. Textrange 8 might have a different stroke value than textrange 9.
app.activeDocument.textFrames[0].textRanges
Checking the stroke color is another important item to check if you want to be sure a textrange isn't stroked:
if( tf.textRange.characters[0].characterAttributes.strokeColor == "[NoColor]" ) {
$.writeln( "I am not stroked" );

Similar Messages

  • Apply stroke to text (JS, CS2 or higher)

    Hi all,
    I'm having some problems applying a 3 points red stroke to a text layer using JS on PS-CS2 (or higher).
    I've tried adapting xbyto's script ( http://ps-scripts.com/bb/viewtopic.php?p=2021#2021 ), but to no avail.
    Any help is appreciated.
    Cheers.

    The script in that post is for doing fine grain control of text styles within a text layer. If all you want to do is apply a 3px red stroke to the entire text layer, use a layer style and script listener code. You'll end up with something like this:
    function stroke3pxRed() {
      function cTID(s) { return app.charIDToTypeID(s); };
      function sTID(s) { return app.stringIDToTypeID(s); };
        var desc39 = new ActionDescriptor();
            var ref13 = new ActionReference();
            ref13.putProperty( cTID('Prpr'), cTID('Lefx') );
            ref13.putEnumerated( cTID('Lyr '), cTID('Ordn'), cTID('Trgt') );
        desc39.putReference( cTID('null'), ref13 );
            var desc40 = new ActionDescriptor();
            desc40.putUnitDouble( cTID('Scl '), cTID('#Prc'), 100.000000 );
                var desc41 = new ActionDescriptor();
                desc41.putBoolean( cTID('enab'), true );
                desc41.putEnumerated( cTID('Styl'), cTID('FStl'), cTID('OutF') );
                desc41.putEnumerated( cTID('PntT'), cTID('FrFl'), cTID('SClr') );
                desc41.putEnumerated( cTID('Md  '), cTID('BlnM'), cTID('Nrml') );
                desc41.putUnitDouble( cTID('Opct'), cTID('#Prc'), 100.000000 );
                desc41.putUnitDouble( cTID('Sz  '), cTID('#Pxl'), 3.000000 );
                    var desc42 = new ActionDescriptor();
                    desc42.putDouble( cTID('Rd  '), 255.000000 );
                    desc42.putDouble( cTID('Grn '), 0.000000 );
                    desc42.putDouble( cTID('Bl  '), 0.000000 );
                desc41.putObject( cTID('Clr '), cTID('RGBC'), desc42 );
            desc40.putObject( cTID('FrFX'), cTID('FrFX'), desc41 );
        desc39.putObject( cTID('T   '), cTID('Lefx'), desc40 );
        executeAction( cTID('setd'), desc39, DialogModes.NO );
    -X

  • Stroke Bug Illustrator CS6

    I contacted Adobe in June 2013 about a problem with the stroke profile items. I was told that there would be an update available and no updates were available. Will this be fixed anytime soon? Is it fixed in CC? In my photo I show the same exact stroke with different profiles applied. I have yet to find any efficient work arounds. Any info would be very helpful. Thanks!

    Below more elements
    My computer:
    Processor: Intel Xeon E5410 (Intel (R) Core (TM) i7 CPU 2.67Ghz [email protected]
    Microsfot Windows 7 Service Pack 1 +
    Installed memory (RAM): 8.00 GB
    64bit operating system
    Display: 1920x1200
    Graphics Card: NVIDIA Quadro FX 1800-30bits
    My usage:
    illustrations (I only use Illustrator CS6)
    planes (I use Illustrator with CADtools)
    documentions-packaging (I use illustrator with jpeg or psd done with photoshop CS6)
    information: I work on my computer and then I put my files on the corporate network
    My problem:
    regularly Illustrator will not start or it cuts abruptly, the following message appears:
    "A problem caused the program has stopped working properly. Windows will close the program and tell you if a solution is available"
    Do you have enough evidence to help me?
    De : Mylenium [email protected]
    Envoyé : vendredi 14 mars 2014 16:19
    À : Alison LEPREUX
    Objet : bug illustrator CS6
    Re: bug illustrator CS6
    created by Mylenium<http://forums.adobe.com/people/Mylenium> in Creative Suites - View the full discussion<http://forums.adobe.com/message/6209512#6209512

  • Bug in Illustrator CS2-CS5.1 beim SVG Speichern

    Mittlerweile ist klar, das ist ein Fehler im Programm, getestet mit Illustrator CS2, CS4 und CS5.1 .
    Was muss man wo tun um ein Hotfix zu erhalten?
    Wohin muss ich mich da wenden und was kostet's ggf.?
    Eine Kollegin hat herausgefunden, dass Illustrator bei eingestellter Codierung UTF-8 nicht in UTF-8 exportiert, sondern in ANSI.
    Wenn UTF-8 drauf steht, aber ANSI drin ist, passt das natürlich nicht zusammen
    D.h. im XML Quelltext steht UTF-8 drin, aber es ist eigentlich ANSI, das führt dann zu Interpretationsfehlern.
    Witzigerweise kann AI sein gerade gespeichertes SVG noch nicht mal selbst öffnen.
    Beispiel:
    Öffnet das Pseudo-UTF SVG mal mit den normalen Windows Editor, anschließend geht ihr auf "Speichern unter", der Editor schlägt vor, in ANSI zu speichern, heißt die Datei ist eigentlich ANSI kodiert. Speichert man das SVG mit dem Editor dann nicht unter ANSI, sondern als UTF-8 ab, gibt es plötzlich keine Anzeigefehler mehr, weder im IE noch im Firefox.
    Habe mittlerweile die Möglichkeit gehabt es in CS5.1 zu versuchen, selber Fehler.
    Gibts dafür vielleicht schon ein Fix?
    Wir steigen nun von CorelDraw auf Illustrator um, zu Testzwecken habe ich im Mom zwar nur CS2 drauf, aber CS5.1 wird folgen.
    Es geht darum maussensitive SVG's zu erstellen, d.h. bei einigen Objekten werden Grafikattribute hinterlegt um das SVG hinterher interaktiv machen zu können.
    Problem:
    Das Grafikattribut ist als "Imagemap: Polygon" gesetzt und sieht in etwa so aus: "Þg;8314;S005Þ"
    Problem:
    Leider werden Objekte die mit diesem Attribut im SVG später nicht angezeigt(siehe "Link mit Zeichen"). Wenn ich das Thorn "Þ" weglasse, werden die SVG's richtig angezeigt (siehe "Link ohne Zeichen").
    Im IE8 werden Objekte im SVG mit diesem Thorn einfach weggelassen, der Rest wird angezeigt.
    Im Firefox wird das SVG gar nichtt angezeigt und er gibt einen XML-Verarbeitungsfehler in der entsprechenden Code Zeile aus.

    Confirmed this is being generated entirely in CS5. I opened the font Sabon. I created a text box. I pasted in some generic type I had just made in text edit. I changed the font to Sabon and the paragraph to justify. I saved and closed the document and closed Illustrator. I closed Sabon and opened Sabon from another foundry. I opened Illustrator and opened the document. All looked good. I duplicated the text box over and outlined the type. I went into the font manager and closed Sabon. I opened the original Sabon. DING! Type reflow. I saved as a second document. I copied the outlined type and closed the document. I opened the original document (note the original font is open). No problems. I paste the outlined type (type outlined with the wrong version of the font active) and it lands exactly in place. I open the second document. The type that reflowed now gives me the stupid message about another version of Illustrator screwing it up. I hit OK and the type reflows back to the way it is supposed to be.
    This proves that the kerning changes weren't due to differences between the fonts. This proves that Illustrator CS5 has a MAJOR type engine bug that could easily spell disaster in production.

  • Long standing bug in Photoshop CS2 Bridge

    I have been using Photoshop CS2 for many years and have constantly "lived with" a bug in Bridge whereby, instead of an image thumbnail, there is just an icon shown. This is the same icon that appears before Bridge has read all the images to produce the thumbnails - but some of them get "stuck" and there seems to be no way to make Bridge "read" the image and produce the thumbnail. Pressing "View" "Refresh" (or PF5) does not work. Is there any fix I can download for this, please?

    Curt touched on a possible concept:  Abandon Bridge and get a codec pack for Windows Explorer.  Then just use Explorer to integrate your work.  This, of course, assumes you're using Windows.
    It's possible a newer version of Photoshop might come with a Bridge implementation that doesn't fail in the same way.  It's pretty much futile to hope for a change to Photoshop CS2 in this day and age.
    Did Bridge CS2 have the functions the modern version has for requesting a clearing of the Bridge cache?  If not, perhaps those functions were added to address the kinds of problems you're having.
    -Noel

  • Ill CS2 won't launch

    On mac OS 10.4.1. I work in CS2. Have for years. All applications work except for Illustrator. I have re-installed the entire suite. All applications work except Ill. The app starts to load then crashes. Thoughts anyone?

    This comes to mind: http://kb2.adobe.com/cps/534/cpsid_53468.html
    However, that should kill InDesign as well; well, depending on the Suite.

  • ILL-CS2 runtime error R6025

    I wrote a script that from time to time produces a "runtime error R6025
    - pure virtual function call" for no apparant reason. I've noticed that when I run the script through the debugger this error doesn't occur, but it does when I let it run on it's own. I've also checked online and read what information I could about this C++ error, but I can't seem to solve this issue.
    Does anyone have any experience with this runtime error, or has any ideas on how to solve it?

    Hi Nate,
    Thanks for the tip. I was finally able to write the script I wanted using VBasic, and was also able to write a more simplified version with JScript, without encountering the dreaded R6025 error (although basically the script does exactly the same)...
    I will consider trying it using CS3 as well.

  • OS 10.4.8 with PHOTOSHOP CS2 on a QUAD & halting delayed typing....

    this has happened lately. It definitely is the CS2!
    I am finally doing keywords and details iptc on my photos. I am typing in the
    file info page on photos that sit in an internal ATA drive which
    seems to have no bugs. Pshop CS2 is on my start up drive.
    I have noticed that on my QUAD with 4.5 GB RAM with 10.4.8 that
    if i start opening up other apps or connect Firewire Drives &
    hours go by the typing gets slowed up inside pshop CS2 ( file info)
    on my internal drive ( not the startup drive ) or the startup drive ( desktop). Typing gets very delayed. If i reinstall CS2 ITS FINE!!!!!!
    SO it cant be that drives right??
    Why does pshop CS2 9.02 slow down ( typing in info ) as time goes by or
    if this has anything to do with it, opening up other apps etc...??
    any clues??

    Kappy wrote:
    Then explain to the OP where he/she can purchase a retail copy of 10.6.8 Snow Leopard. I'm afraid I don't know where to get one.
    As you know, there is no 10.6.8 disk, but one can clone 10.6.8 into a late 2011 MBP (from an external HDD).  Niel mentions a 2012 model, you are the one who speaks of 2011 MBPs.  That is why I directed the comment to you.
    Ciao.

  • Photoshop Cs2 with windows 7 64 bits

    i find that the printer icon in the page setup page is missing.
    can anyone help me to solve it, please.
    i cannot select printer while i am in the page setup tab.
    or it is a bug in photoshop cs2?

    Windows 7 x64 is a separate build from Windows 7 32 bit.  Windows 7 Ultimate comes with BOTH.
    There isn't a separate package of Photoshop CS5 for 32 bit or 64 bit.  Photoshop (since CS4) installs both 32 bit and 64 bit software on a 64 bit Windows system, or only 32 bit software on a 32 bit Windows system.
    Photoshop CS5 is fine with every variant of Windows 7.
    Photoshop CS5 is reportedly fine with modern AMD processors, though I have only used Intel.
    The detailed system requirements are here:  http://www.adobe.com/products/photoshop/photoshop/systemreqs/
    My own (personal, subjective) opinion is that ATI (AMD) video interfaces are better than nVidia.
    Hope this answers your questions.
    -Noel

  • Illustrator CS2 shuts down on open

    I believe this is a legitimate Leopard question, please feel free to direct me to the right forum.
    Every time I load Illustrator CS2 it shuts down (crashes) on open. I read some other forum comments on the same subject and tried to check my disk drive and verify my fonts. That seemed to fix the problem for one session then when I tried to use it again this morning, it started all over again. I've been using Illustrator on my system for years with no problem. Then, all of a sudden....
    I am using a PowerMac G5 duel processor (the last generation of Motorola chips). Please of RAM and hardrive space.
    HELP!!!!

    According to what I'm seeing CS2 isn't officially supported under Leopard, and Adobe acknowledges that it will be buggy and they have no plans to fix those bugs.
    Other links have mentioned a well-documented bug in Illustrator CS2 that was fixed with the CS3 release.
    Here's a CS2 thread about the (lack of) support:
    http://discussions.apple.com/thread.jspa?messageID=5673439&
    My only suggestion here is to reinstall the software and see if that helps.
    ~Lyssa

  • Please Help! Can't open illustrator cs2 - tried all I know!

    I'm running ill cs2 on my mac with leopard and for 2 days it won't start up-- I get the "...unexpectedly quit ..." message. I have checked for corrupt fonts and have trashed the prefs folder as described in other posts. It does open if I try with another user acct on the mac but then I have only a handful of fonts and it doesn't solve the problem. I am downloading the free cs4 trial now (taking forever) because I have an urgent project-- is this wise? should I uninstall cs2? Thanks for your time!

    Hi Ovvio
    Here's a list of places Illustrator puts preferences:
    /Users/[User]/Library/Preferences/Adobe Illustrator CS3 Settings
    /Users/[User]/Library/Preferences/Adobe Save For Web AI 12.0 Prefs
    /Users/[User]/Library/Preferences/com.adobe.illustrator.plist
    try the plist file first, You can trash it and it will regenerate itself. The others need  a bit more care when trashing. I recommend making a copy of what's there first, move the copy someplace safe and then trash the originals. If it doesn't help, replace with the copies so you don't run the risk of losing some settings.
    Note, this is for CS3 but aside from the version differences, the paths should be the same.

  • Lines in PDFs from AI CS2

    Ever since we switched to CS2 over 2 and half years ago we've had problems with PDFs out of AI. We have to embed all images otherwise there are lines that run across the pdf pages. Embedding solves the problem but its time consuming on some jobs especially if these are then placed in InDesign. Not to mention file sizes after embedding images as well.
    Is there any other quick fix for this problem - a check box I'm forgetting. Or is this just a bug in AI CS2?
    Has this been fixed in AI CS3
    Thank you,
    Christopher

    This often happens when you make pdfs straight from Illustrator.
    Dunno why.
    The lines will be even more apparent if you have rotated the images.
    It's best to make eps files and then use Distiller to make the pdfs.
    Try this method and see if it works better for you.

  • Mighty Mouse in Illustrator CS2

    My mighty mouse seems to have given up scrolling on it's x axis in Illustrator CS2. It works fine in Ill. 10, still does. Has anyone else had this problem or is it just me?
    G5 ppc   Mac OS X (10.4.6)  

    ive always had this issue in ill CS2, i have it with every mouse that can scroll on its x axis, and my powerbook trackpad gives same results. its a adobe issue, your mouse is fine.

  • Correctly align imported AI/PDF [CS2, Win, JS]

    Hi all,
    Would really appreciate it if someone could provide some insight about this issue (ILL CS2, but I suspect later versions act the same, Windows, JS):
    I'm trying to import an existing AI into an empty layer of a new one, so that the new file will be in effect identical to the existing one. So I read the height and width of the existing file, create a new one with the same measurements and then use the createFromFile() method of the groupItems collections to import it.
    The problem is that the imported item is not aligned properly with the new file. I can see that they are identical in size, but the crop area from the original file is outside the artboard, which causes an offset when saving the new file as a PDF. The same happens if I first save the AI as a PDF and then try to import that.
    If I do exactly the same thing manually (using the Place command), the result is perfect.
    Any ideas on how to overcome this annoying problem?

    Hello Steve Light,
    Thanks a lot for answering me. I did it (renamed and added this two lines at new line 89 and 90 in the Script, selected Textframe and execute the jsx from Windows-Explorer) but nothing happened. Only a warning message appeared. It sayed: "You used an illustrator-12 Script " The Message is in German, I cannot to translate literally.
    No filename and no date wasn't fill in textframe.
    It's a great pity, the same Script runs in CS3 without problems. But I need it for CS2 :-(
    What can I do?
    Sorry for my bad english again.

  • Acentos Tildes en Photoshop CS2

    ¡Saludos a todos! Soy nuevo en el foro y espero convertirme en un asiduo visitante. Al tema:
    No puedo poner tildes en letras mayúsculas en Photoshop CS2. Puedo poner tildes en minúsculas, y también en mayúsculas pulsando Bloq Mayús. Pero si pulso tilde, y después Mays+letra parece como si el Mays borrase de la memoria el que he pulsado tilde, y la letra aparece en mayúscula pero sin tilde. A ver si me podéis decir algo, majos. También me gustaría saber, en caso de que sea un bug de photoshop Cs2, si ocurre también en Macintosh.
    ¡Un saludo desde Madrid!

    -Copiando la mayúscula acentuada de Illustrator a Photoshop, aparece perfectamente. Pero ya te digo que con Bloq Mays activado también puedo acentuar las mayúsculas. Es al hacer la mayúscula con Mays cuando no funciona.
    - En Illustrator y en InDesign funciona correctamente
    - Las combinaciones de teclas que me propones no producen ningún efecto.
    - No se cómo introducir el código ASCII. Pulso la combinación de teclas de Á mayúscula y no ocurre nada. Lo mismo con otras combinaciones ASCII.
    Menos mal que este fallo sólo ocurre en Photoshop. ¡Si me ocurriese en todo el paquete o en Indesign o Illustrator menudo desastre!

Maybe you are looking for

  • Multiple formats of same movie on iTunes?

    If I want to watch my movies on my iPhone or iPod I convert them using Quicktime (640x480 <1500bps) and then stick them into iTunes for syncing. Works great. If I want to watch my movies on my Plasma TV I convert them using Quicktime (AppleTV setting

  • Slow motion lost after sync from mac to iphone

    Hi, I can capture videos in slow motion but those videos play at normal speed once Sync them via iTunes. 1. Capture videos in slow motion. 2. The videos first play in slow motion in the iPhone. There is a time line slider to move the slo-mo effect ba

  • Is my ipod 1st generation? and reset utility

    Hi, I don't know much about ipods so i don't know which board to post this message in.. My ipod is a small shuffle, it's bright green and 1gig. Right, now on to the problem. When i connect my ipod to the computer to update, it says i need to download

  • Restrict deployment of OSB project

    Hi, Is it possible to allow deployment of a specific OSB project only for specific developpers? In my project there are several teams developping OSB. Each team has its own OSB project. There is also a shared project that contains shared resources. T

  • How to activate a CoreShowDetailItem by a link

    Hi, I have an application based on a showOne component which contents a few showDetailItems. So, i would like a link (button) "next" to activate the following showDetailItem without to click on the name of the showDetailItem. How to active a showDeta