Script to work around bugs in Illustrator

Newbee here, we work in Illustrator CS5.  I've gathered a few scripts and Actions for automating many parts of our work.

I'll start with what we have now.  What we have now works on Mac and PC, and if there is a way around these BUGS, it should work on Mac & PC.

(1) we have a .ai (our default format) file that we can open and inside the text fills in automatically when you start a script. (see Custom below script) Some text boxes fills in the date based on the current date on our computer, some areas of text fills a name based on the name of the electronic .ai file.

Screen shot 2012-10-10 at 4.33.22 PM.jpg

See the red boxes.

Screen shot 2012-10-10 at 4.33.40 PM.jpg

One of the difficulties that I have worked on is, sometimes in one of the fields in the file, it must have a name composed of only 4 sections (or 3 dashes). In the example: ILSLIM = 1, = 2, TEST 3 = EXAMPLE & AA01 = 4.

Screen shot 2012-10-10 at 4.34.21 PM.jpg

Thus, when it then produces the last indent in this area of text on our format (not all of the other text boxes) will need the 3rd indent removed (now it's only 3 sections because TESTAA01 has become a).

Screen shot 2012-10-10 at 4.43.05 PM.jpg

So I created an 'Action' Illustrator who will be after the 'ChangeFileNameDate' script is executed, 'The Action' will select the text area and then run 'Search and replace' to remove the 3rd indent as seen above.

NOW THE PROBLEMS!  (Illustrator bugs)

(1) in Illustrator 'Actions' when you save an 'Action' & the 'Insert Menu Item... ". "lets put a Script, it will work.  BUT when you exit out of Illustrator & then start the custom Script again will disappear. I looked in this & it's a known bug for years in Illustrator which is still not fixed.

http://js4ai.blogspot.com/2012/03/how-to-permanently-tie-script-to-action.html

Screen shot 2012-10-10 at 5.00.50 PM.jpg

Screen shot 2012-10-10 at 5.01.19 PM.jpg

Screen shot 2012-10-10 at 5.01.33 PM.jpg

Work up to what you quit and restart.

BEFORE LEAVING.

Screen shot 2012-10-10 at 5.01.41 PM.jpg

AFTER RELAUNCH.

Screen shot 2012-10-10 at 5.05.03 PM.jpg

SO the only work-around, I can get to work for now is to «Insert Menu Item»... ««Other script...» "& it will remain same after restarts, BUT whenever we run 'Action' we must manually select the script. (SHIT)

Screen shot 2012-10-10 at 5.13.54 PM.jpg

Screen shot 2012-10-10 at 5.14.08 PM.jpg

Yet here, after relaunch.

Screen shot 2012-10-10 at 5.14.25 PM.jpg

MORE A BUG with the 'Find and replace' registration.  In case you don't know, when you save 'Actions' in Illustrator, you can; save one of the actions that require a dialog box; ((1) to-for either have the dialog go up then you can get everything you need in it or 2) you might NOT get dialog box up to & action will do whatever she had in her when she you recorded.  This feature is turned on or off by clicking on the box next to the check box on or off (see photo).

Screen shot 2012-10-11 at 9.17.08 AM.jpg

The BUG is so, for my 'Actions' that use the "Find and replace" to remove the dashboard to work for some reason that I have to have the first "find and replace" stages of dialogue botton ON so that the "Find and replace" dialog box opens.

Let me explain, when you register to use the "Find and replace" it works perfectly even with the dialog box option clicked but if you quit Illustrator and then restart it and try to launch "Actions" which have the "Find and replace" in them then Illustrator crash.  So the only work around that I found for this BUG DIPSHIT is simply having 1 'find and replace' in the 'Action' registered with the dialog box set to (to open when the Action is performed) and then must manually close it.  We owe nothing within this type.  He must simply open & close and then have it.  Then for some reason any the rest of 'Actions' recorded will run out with boxes of open dialogue with the removal of the 3rd dashboard as when I registered 1.

So basically, if I want to 'Actions' to work at this point I must do this.  whenever I raise the Illustrator I would need to manually load the script custom 'Actions' and I would need to open and close the box "find and replace".  It's the whole issue of the 'Actions' CRAP & Scripts are so I can do everything MANUALLY, no..  We should be able to make it work for us!

OR maybe that would be the best solution!


If in the "ChangeFileNameDate" custom script, it could just open and then close the box "Find and replace" (which would solve the bat with "Find and replace" in 'actions') then the custom script could cause 'The Action' to play instead of 'The Action' causing the custom script to play.  All we would have to do is slip down to the custom script of 'File' & who.  No don't crash, no babysitting.

DOES ANYONE KNOW HOW OR IF THIS IS POSSIBLE?  To add to the attached script:

(1) initially to open and close the box "find and replace".

(2) at the end to cause 'action' saved to run.

WE WOULD BE SO VERY, VERY, VERY GRATEFUL!

//////////////////////////////////////////////////////////// english //
// ----------------------
// -=> WR-DateAndTime <=-
// ----------------------
//
// A Javascript for Adobe Illustrator
// by Wolfgang Reszel ([email protected])
//
// Version 0.9 from 22.9.2011
//
// This script inserts the actual date or the actual time to a
// predefined position in the document.
//
// To define the position, you'll have to create an textobject and
// execute this script while the object is selected. The whole object
// has to be selected and not words or letters. You can mark more
// objects, if you select each object separate and execute
// the script on it.
//
// With the placeholders {DATE} and {TIME} you are able to define a
// particular point, where the date or the time should be replaced.
// If there is no placeholder in the textobject
// "{FILENAME}{FILEEXT} ({DATE}, {TIME})" will be used as standard placeholders.
//
// To update the date and time execute this script without any object
// selected.
//
// There are some additional placeholders:
//   {FILE}     - complete document-filename with path
//   {FILEPATH} - only the documents filepath
//   {FILENAME} - the filename of the document
//   {FILEEXT}  - the file extension of the document inclusive dot
//
// On my system this script can't see the path of the document, when
// it was opened directly from windows Explorer (double click).
//
// In Illustrator CS it is now possible to edit a DateAndTime-Object.
//
// To enable the english messages and date-format change the "de"
// into "en" in line 90.
//
// Sorry for my bad english. For any corrections send an email to:
// [email protected]
//
//////////////////////////////////////////////////////////// Deutsch //
// ----------------------
// -=> WR-DateAndTime <=-
// ----------------------
//
// Ein Javascript fuer Adobe Illustrator
// von Wolfgang Reszel ([email protected])
//
// Version 0.9 vom 30.9.2011
//
// Dieses Skript fuegt das aktuelle Datum und die aktuelle Uhrzeit an
// eine vorher bestimmte Stelle im Dokument ein.
//
// Um eine Stelle zu bestimmen, muss man ein Textobjekt erzeugen, es
// markieren und dann dieses Skript aufrufen. Es muss das gesamte Objekt
// ausgewaehlt sein, nicht etwa Buchstaben oder Woerter. Es lassen sich
// nacheinander auch mehrere Objekte als Datum/Uhrzeit markieren.
//
// Mit den Platzhaltern {DATE} und {TIME} (in geschweiften Klammern)
// kann man bestimmen, wo genau im Text das Datum und die Uhrzeit
// erscheinen soll. Sind die Platzhalter nicht vorhanden, wird
// automatisch "{FILENAME}{FILEEXT} ({DATE} - {TIME})" verwendet.
//
// Zum Aktualisieren des Datums/Uhrzeit muss man dieses Skript aufrufen
// wenn kein Objekt ausgewaehlt ist.
//
// Es gibt noch einige zusaetzliche Platzhalter:
//   {FILE}     - kompletter Dateiname mit Pfad
//   {FILEPATH} - nur der Verzeichnispfad des Dokuments
//   {FILENAME} - der Dateiname des Dokuments
//   {FILEEXT}  - die Dateiendung des Dokuments inklusive Punkt
//
// Auf meinem System kann der Pfad nicht ermittelt werden, wenn das
// Dokument vom Windows Explorer geoeffnet wird (Doppel-Klick).
//
// InÿIllustrator CSÿkann man nun ein Datum/Uhrzeit-Objekt bearbeiten.
//
// Um dieses Skript mit deutschen Meldungen und Datumsformat zu
// versehen, muss in Zeile 90 das "en" durch ein "de" ersetzt werden.
//
// Verbesserungsvorschlaege an: [email protected]
//

//$.bp();

// -------------------------------------------------------------------

var language="en";   // "de" fuer Deutsch

// -------------------------------------------------------------------

var WR="WR-DateAndTime v0.9\n\n";

var AIversion=version.slice(0,2);

if (language == "de") {

  var format_preset = "{FILENAME}{FILEEXT} ({DATE} - {TIME})";

  var MSG_unsetmark = WR+"Dieses Objekt ist als aktuelles Datum/Uhrzeit markiert, soll die Markierung aufgehoben werden?";
  var MSG_setmark = WR+"Soll dieses Textobjekt als aktuelles Datum/Uhrzeit markiert werden?";
  var MSG_askformat = WR+"Soll das Textobjekt als Datum/Uhrzeit formatiert werden? Formate:\n{DATE}, {TIME}, {FILE}, {FILEPATH}, {FILENAME} und {FILEEXT}:"
  var MSG_editformat = WR+"Datums-/Uhrzeitformat bearbeiten (Leer = entfernen). Formate:\n{DATE}, {TIME}, {FILE}, {FILEPATH}, {FILENAME} und {FILEEXT}:"
  var MSG_notexto = WR+"Kein Textobjekt!";
  var MSG_selectedmany = "Zum Markieren als aktuelles Datum/Uhrzeit darf nur ein Textobjekt ausgew\xE4hlt sein und falls Sie die Daten aktualisieren wollen, darf kein Objekt ausgew\xE4hlt sein.";
  var MSG_nodocs = WR+"Kein Dokument ge\xF6ffnet."
  var Timeformat = 24;
  var TimeSep = ":";
  var AM = " am";
  var PM = " pm";
  var Dateformat = "dd.mm.yyyy";

} else {

  var format_preset = "{FILENAME} ({DATE}, {TIME})";

  var MSG_unsetmark = WR+"This object is marked as actual date'n'time, do you want to remove the mark?";
  var MSG_setmark = WR+"Do you want to mark the selected textobject as actual date'n'time?";
  var MSG_askformat = WR+"Do you want to mark the textobject as actual date'n'time? Formats:\n{DATE}, {TIME}, {FILE}, {FILEPATH}, {FILENAME} and {FILEEXT}:"
  var MSG_editformat = WR+"Edit date'n'time (empty = remove). Formats:\n{DATE}, {TIME}, {FILE}, {FILEPATH}, {FILENAME} and {FILEEXT}:"
  var MSG_notexto = WR+"No textobject!";
  var MSG_selectedmany = "To mark as actual date'n'time, you have to select only one textobject. If you want to update the date'n'time-objects, there must be no object selected.";
  var MSG_nodocs = WR+"You have no open document."
  var Timeformat = 12;
  var TimeSep = ":";
  var AM = " am";
  var PM = " pm";
  var Dateformat = "yyyymmdd";

}

var error=0;

if (documents.length<1) {
  error++;
  alert(MSG_nodocs)
}

if (error < 1) {
  date_n_time();
}

function TodayDate()
{
  var Today = new Date();
  var Day = Today.getDate();
  var Month = Today.getMonth() + 1;
  var Year = Today.getYear();
  var PreMon = ((Month < 10) ? "0" : "");
  var PreDay = ((Day < 10) ? "0" : "");
  if(Year < 999) Year += 1900;

 var theDate = Dateformat.replace(/dd/,PreDay+Day);
 theDate = theDate.replace(/mm/,PreMon+Month);
 theDate = theDate.replace(/d/,Day);
 theDate = theDate.replace(/m/,Month);
 theDate = theDate.replace(/yyyy/,Year);
 theDate = theDate.replace(/yy/,Year.toString().substr(2,2));

 return theDate;
}

function TodayTime()
{
  var Today = new Date();
  var Hours = Today.getHours();
  var Minutes = Today.getMinutes();
  var Suffix = "";
  if (Timeformat == 12) {
    if (Hours >= 12 ) {
 Suffix = PM;
 } else {
 Suffix = AM;
 }
 if (Hours >= 13) {
 Hours = Hours - 12;
 }
 if (Hours < 1) {
 Hours = Hours + 12;
 }
 }
  var PreHour = ((Hours < 10) ? "0" : "");
  var PreMin = ((Minutes < 10) ? "0" : "");
  return PreHour+Hours+TimeSep+PreMin+Minutes+Suffix;
}

function DateUpdate(Name) {
  var docpath = activeDocument.path.fsName;
  var docname = activeDocument.name.replace(/(.*?)(?:\.([^.]+))?$/,'$1');
  var extension = activeDocument.name.replace(/(.*?)(?:(\.[^.]+))?$/,'$2');
  if (docpath.slice(2,3) == "\\") {
    docsep = "\\";
  } else {
    docsep = ":";
  }
  var content = Name.slice(11);
  var content = content.replace(/\{FILE\}/,docpath+docsep+docname);
  var content = content.replace(/\{FILEPATH\}/,docpath);
  var content = content.replace(/\{FILENAME\}/,docname);
  var content = content.replace(/\{FILEEXT\}/,extension);
  var content = content.replace(/\{DATE\}/,TodayDate());
  var content = content.replace(/\{TIME\}/,TodayTime());
  return content;
}

function date_n_time()
{
  if (selection.length == 1) {
    if (selection[0].typename == "TextArtItem" || selection[0].typename == "TextFrame") {
      if (selection[0].name.slice(0,11) == "actualDate:") {
        dateformat = selection[0].name.slice(11);
        Check = false;
        if (AIversion == "10") {
          Check = confirm( MSG_unsetmark );
        } else {
          dateformat = prompt(MSG_editformat, dateformat);
        }
        if(dateformat != "" && Check) {
          selection[0].contents = selection[0].name.slice(11);
          selection[0].name="";
          selection[0].selected = false;
        }
        if(dateformat == "" && !Check) {
          selection[0].name="";
          selection[0].selected = false;
        }
        if(dateformat && dateformat !="" && !Check) {
          selection[0].name="actualDate:"+dateformat;
          selection[0].contents = DateUpdate(selection[0].name);
        }
      } else {
        dateformat = selection[0].contents;
        if(dateformat.search(/\{DATE\}/) == -1 && dateformat.search(/\{TIME\}/) == -1 && dateformat.search(/\{FILE[A-Z]*\}/) == -1) dateformat = format_preset;
        Check = false;
        if (AIversion == "10") {
          Check = confirm( MSG_setmark );
        } else {
          dateformat = prompt(MSG_askformat, dateformat);
        }
        if (dateformat || Check) {
          selection[0].name="actualDate:"+dateformat;
          selection[0].contents = DateUpdate(selection[0].name);
          selection[0].selected = false;
        }
      }
    } else {
      alert ( MSG_notexto );
    }
  } else if (selection.length > 1) {
    alert ( MSG_selectedmany );
  } else {
    if (AIversion == "10") {
      var textArtItems = activeDocument.textArtItems;
      for (var i = 0 ; i < textArtItems.length; i++)
      {
        if (textArtItems[i].name.slice(0,11) == "actualDate:") {
          textArtItems[i].selected = true;
          textArtItems[i].contents = DateUpdate(textArtItems[i].name);
        }
      }
    } else {
      var textFrames = activeDocument.textFrames;
      for (var i = 0 ; i < textFrames.length; i++)
      {
        if (textFrames[i].name.slice(0,11) == "actualDate:") {
          textFrames[i].selected = true;
          textFrames[i].contents = DateUpdate(textFrames[i].name);
        }
      }
    }
  }
}

I THANK GOD ALMIGHTY!  A friend who knows AppleScript helped me to understand!

executives of related texts var = activeDocument.textFrames;

for (var i = 0; i)< textframes.length;="">

If (.note executives of related texts [i] == 'NAME of the SUPERIOR FORDDOC') {}

var frameName = .silence frames linked text [i];

newFrame = frameName.replace (/(.*-.*-.*)-(. *) /, "$1$ 2");

related texts [i] = newFrame .silence frameworks

}

Tags: Illustrator

Similar Questions

  • Work around for server not found problems on FF36

    I found a work around for all people with server not found problems with FF36.

    If you manually set your DNS network adapter to an external DNS server (as opposed to your local ISP) then the problem disappears. I set mine to use the google DNS servers:

     Preferred: 8.8.8.8
     Alternate: 8.8.4.4
    

    No idea why this works, but it is 100% success on my desktop PC, whereas before I could not connect to a Web page with FF36 without updating the multiple page and a lot of frustration, although FF35 was fine and back to FF35 turnover was as beautiful.

    Something has changed in FF36 and how it manages the DNS or the mode of operation with certain network cards.

    There is nothing to do with the Add - ons, profiles or software firewall as I tried all these things and that the DNS change makes a difference. I even copied on a full profile and directory of program files to work for Mozilla on my laptop which saw no problem and the problem still exists on the desktop, which is why I started watching the network adapater since everything between the working PC and no work was identical.

    I hope that this will help the developers to identify the real cause of the problem and fix it in the next version.

    AG - your problem looks different you had FF36 work.

    Considering that the problem of many of us that when we spend FF35 in FF36 we get a lot of server is found errors when you try to load Web pages.

    Sometimes they load and then they stop loading and then if you click Refresh a lot that they sometimes then charge again, or you have to wait a minute or two and then they load.

    For some reason any using an external DNS server {see # 698286 answer ~ J99} has stopped this problem completely, as does return to FF35.

    We need an expert on to Mozilla DNS resolution to focus on this. [*] See my note under ~ J99 Seems to me that you use an external DNS server adds some latency to name resolution and maybe this is necessary for the network card in the PC that encounter this issue to resolve the addresses of Web page.

    Obviously something changed in FF36 FF35 to cause this problem. I'm open to Mozilla contact me by E-mail if they want me to try something else to help pin it down.

    *

    change Note the John99
    Mozilla can consider WHETHER we are able to provide evidence to support this. We must be able to complete a report of bug with right steps to reproduce (STR). Developers should be able to see themselves the problem before we can expect to focus on this.

  • Folder level Javascript executes the Menu item, but not button - need a work around... Help, please

    I have a JavaScript that contains a function of confidence with a SOAP operation inside the confidence function.

    This function is inside a folder level script.

    When calling this function to a menu item, it works fine.

    When I try to add and call this function from a button or a Signature field to the title of JavaScript execution when signed, it will not work and I get an error message.

    What I'm missing and there is a work around, I need to run it from a button or a signature field?

    Any ideas?

    How to run privileged Javascript by a button

    //    1.  Need to put the necessary Javascript inside a function in the Javascripts folder

    //    2.  Javascript must be a function of trust

    //    3.  Add the call to the function of trust to the button

    //

    The Code for the button to execute a script Javascript on the Focus of the mouse is-> Trusted_CustomCode();

    //

    The following example is a JavaScript script at level folder for security reasons

    //

    The example code SHOULD BE wrapped in a function of trust which is part of .js in the javascripts folder

    //

    var Trusted_CustomCode = app.trustedFunction (CustomCode);

    function CustomCode() {}

    app.beginPriv ();

    Insert the custom JavaScript Code here

    App.Alert ("this is my custom Code that is running from a button");

    End of the custom Javascript Code

    app.endPriv ();

    }

  • 9.2 Organization repeat audio to fill after empty sections of the audio in the timeline panel. No work around? I'm on a MacPro to 2014.

    Just noticed this problem with empty sections of the audio in the timeline panel. 9.2 organization wants to fill then with audio of the previous element rather than let their silence when it is rendered. No work around for this bug?

    Hello

    On Mac, you can export via SOUL with sequences of import in native mode. Alternatively, you can export directly from Premiere Pro. It should be resolved. You can also export with a "Virgin" audio section where you have gaps.

    This is a known issue that we should have fixed in our next update. Sorry for the problem.

    Thank you

    Kevin

  • Is there a work-around that uplaod Image allows submitted forms AJAX?

    I use ajax to submit an entry form web app.  A file upload does not work with ajax in British Colombia.  Is there a work around?

    You can submit a form of web application with a file using ajax. As a note, the answer is the confirmation of web app page. I have posted a question recently that I needed help with the answer.

    Here is the code I use to send the form with the file:

    {$(function()}

    $('.upload').click (function () {}

    If more than one form on the page, specify an id for the form vs.

    formData var = new FormData ($('form') [0]);

    $.ajax({)

    This code is in the page itself. If in an external script, you must code in the module_oid hard and module_otype.

    URL: "/ CustomContentProcess.aspx?" CCID = 35265 & OID = {module_oid} & OTYPE = {module_otype}',

    type: 'POST',

    XHR: function() {}

    myXhr = $. ajaxSettings.xhr ();

    {if (myXhr.upload)}

    myXhr.upload.addEventListener ('progress', progressHandlingFunction, false);

    }

    Return myXhr;

    },

    success: {function (results)}

    Console.log (Results);

    },

    data: formData,.

    cache: false,

    contentType: false,

    processData: false

    });

    });

    The function below manages a progress bar for the download. IE:

    function progressHandlingFunction (e) {}

    {if (e.lengthComputable)}

    progressBar var = document.getElementById ('progress');

    progressBar.max = e.total;

    progressBar.value = e.loaded;

    }

    }

    });

    As a note, I'm not sure that you can submit a regular form with a file using AJAX, but work web applications.

  • Bug? Illustrator CC 2014 and parameters of the pixel grid does not.

    Hello

    I noticed that in Illustrator 14 CC when I make a new web document with 'align new objects of pixel grid"selected, as I work in the document any of the new forms that I would actually align to the grid without enter me the transformation Panel and selecting the option for each new form manually.

    Is it a new parameter in 14 I'm missing? Obviously it is not a totally disabling behavior there is a work around, but it of still pretty annoying and slows down my work flow. Any help or insight is appreciated.

    Right, new tool Rectangle Live objects are free to align it on the pixel grid until you release them expanding their.

  • I have a script that works on all the machines in my office, unless someone can help me?

    Most of the machines in my studio run cs5.5 or cs6, but only one machine is running 5.1 - we use this script on all machines:

    #target photoshop

    main() {} function

    If (documents.length! = 1) return end

    PSD opened with layers to copy

    var PSD = new File ("/ Applications/Adobe Photoshop CS6/Presets/Scripts/Script_Resources/moreLengthsOverlayTemplate.psd");

    If (!.) (Return PSD.exists);

    Open (PSD);

    selectAllLayers();

    activeDocument.activeLayer.duplicate (documents [0]);

    app.activeDocument.close (SaveOptions.DONOTSAVECHANGES);

    }

    function selectAllLayers() {}

    var desc29 = new ActionDescriptor();

    var ref23 = new ActionReference();

    ref23.putEnumerated (charIDToTypeID ('Lyr'), charIDToTypeID ('Ordn'), charIDToTypeID ('Trgt'));

    desc29.putReference (charIDToTypeID ('null'), ref23);

    executeAction (stringIDToTypeID ('selectAllLayers'), desc29, DialogModes.NO);

    }

    main();

    but I have a troublesome machine giving me issues.

    Here are a few screenshots to illustrate what is happening:

    Screen Shot 2013-05-30 at 11.05.37 AM.png

    Screen Shot 2013-05-30 at 11.07.23 AM.pngScreen Shot 2013-05-30 at 11.07.38 AM.png

    I'm not terribly saavy script and I don't know if it's just because the machine in question is running cs5.1 or if theres another problem.

    Thanks for your help!

    Here is an update on the situation, a user on the machine was having a problem where photoshop opens not at all, it will crash and reopen and crash very much. so we tried to connect as another user who is having the problem I described in this thread, it turns out that this user has some kind of issue in which he had no permission to open the source files for that solved the problem. Then, we deleted the user account in which photoshop will not open and created a new user and the new user seems to work around at the moment and the script has not been changed. I guess what my point, is that the problem is external to the script throughout.

  • Click event of s:ItemRenderer is not reliable; no work around?

    I received feedback from test users and confirmed by myself.  Sometimes a click "ignore."  This seems to happen if the mouse moves quickly away from the label as being on it.

    It's under MXML that defines a spark of list, with MXML for a spark ItemRenderer, with three labels each data a string of the data object.  Each of these labels defines a click event listener, they each link to the same function in the ItemRenderer.  Put a trace in this listener has confirmed that some clicks are simply ignored.

    All the world experienced this and found a work around?  I'm hoping that it might be a more reliable event to listen to, for example.  The source code of the item converter is included below for completeness.

    It's using Flash Builder 4.5, the latest libraries.

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:fx s:ItemRenderer ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx".
    autoDrawBackground = 'true '.
    >

    < fx:Script >
    <! [CDATA]

    [Embed (source = "... / src/images/cancel_12.png")]
    [Bindable] public var icon: Class;

    override public function set data(value:Object):void {}
    If (value! = null) {}
    Super.Data = value;
    deleteIcon.source = new icon.
    }
    }

    protected function item_Handler(event:MouseEvent):void
    {
    trace ("got click event" data.name);
    }

    protected function deleteIcon_clickHandler(event:MouseEvent):void
    {
    trace ("got delete event" data.name);
    }

    []] >
    < / fx:Script >

    < s:HGroup height = "100%" verticalAlign = "middle".
    paddingBottom = paddingLeft = "5" "5" paddingRight = "5" = "5" paddingTop >
    < s:HGroup >
    "< s:Label text =" {data.name} "width ="120"click =" item_Handler (event) "/ >
    "< s:Label text =" {data.price} "width ="15"click =" item_Handler (event) "/ >
    "< s:Label text =" {data.date} "width ="75"click =" item_Handler (event) "/ >
    < s:Image id = "deleteIcon" click = "deleteIcon_clickHandler (event)" / > "
    < / s:HGroup >
    < / s:HGroup >

    < / s:ItemRenderer >

    You can use change event from the list instead of a click on an item render?

  • Adobe PDF printer works is not in Illustrator since 9.3.2 update.

    Hi all

    Since the update to Acrobat Pro 9.3.2,and I was not able to print to PDF from Illustrator using the printer Adobe PDF (Adobe PDF 9.0 on my printer list).

    I tried several reboots and also deleted the printer and run the Acrobat Installation of repair on the Help menu in Acrobat to reinstall the printer, but the problem remains.

    I also tried to print from other programs (Photoshop, Firefox and Thunderbird) and the printer worked fine so I suspect that this my be isolated to Illustrator.

    No error message is given and the Illustrator print jobs are listed as completed in the printer list, but no files are created.

    I have a work-around, printing of Postscript file, then conversion to PDF in Distiller and it seems to work very well, but not my ideal solution.

    I checked the updates in Illustrator, but none is available.

    System details:

    OS X 10.5.8 (MacBook Pro 15 ", about 2.5 years)

    Adobe Creative Suite CS 3, Acrobat Pro 9.3.2,and Illustrator 13.0.2

    Any ideas?

    Thank you very much

    Dave

    Why not you use a direct recording to PDF in Illustrator? You will get a better product.

  • Index of Linguistics cannot SCAN ONE / RANGE 10.2, no work around?

    Hello

    Christian Antognini, in his book Troubleshooting Oracle Performance, when talking about clues language said:

    "Until the database Oracle 10 g Release 2, another limitation is that in order to apply a LIKE
    operator, the database engine is not able to take advantage of the linguistic clues. In other words, a
    the full index scan or full table scan can be avoided. This limitation is no longer available as of
    Oracle Database 11 g."

    But it cannot use scan limited unique index also, it seems. This is my test scenario:

    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64 bit Production
    With partitioning, OLAP and Data Mining options
    SQL> create table test as select to_char(rownum) x,to_char(mod(rownum,1000)) y, cast(' ' as char(100)) z from dual connect by level <= 100000;
    
    Tabla creada.
    
    SQL> exec dbms_stats.gather_table_stats(ownname=>user, tabname=>'TEST', method_opt=>'for all columns size 1', cascade=>true);
    
    Procedimiento PL/SQL terminado correctamente.
    
    SQL> CREATE unique INDEX test_idx ON test(NLSSORT(x,'nls_sort=spanish'));
    
    Índice creado.
    
    SQL> CREATE INDEX test_idx2 ON test(NLSSORT(y,'nls_sort=spanish'));
    
    Índice creado.
    
    SQL> SELECT x FROM test WHERE x = '123';
    X
    ----------------------------------------
    123
    
    SQL> @plan
    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------
    SQL_ID  5fbncq099nf9g, child number 0
    -------------------------------------
    SELECT x FROM test WHERE x = '123'
    
    Plan hash value: 217508114
    
    -------------------------------------------------------------------------------------------------
    | Id  | Operation         | Name | Starts | E-Rows | Cost (%CPU)| A-Rows |   A-Time   | Buffers |
    -------------------------------------------------------------------------------------------------
    |*  1 |  TABLE ACCESS FULL| TEST |      1 |      1 |   374   (4)|      1 |00:00:00.04 |    1619 |
    -------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       1 - filter("X"='123')
    
    
    17 filas seleccionadas.
    
    SQL> SELECT y FROM test WHERE y = '123' order by y;
    Y
    ----------------------------------------
    123
    .......
    .......
    123
    
    100 filas seleccionadas.
    
    SQL> @plan
    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------
    SQL_ID  85mu6hvnrvd49, child number 0
    -------------------------------------
    SELECT y FROM test WHERE y = '123' order by y
    
    Plan hash value: 217508114
    
    -------------------------------------------------------------------------------------------------
    | Id  | Operation         | Name | Starts | E-Rows | Cost (%CPU)| A-Rows |   A-Time   | Buffers |
    -------------------------------------------------------------------------------------------------
    |*  1 |  TABLE ACCESS FULL| TEST |      1 |    100 |   375   (4)|    100 |00:00:00.04 |    1625 |
    -------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       1 - filter("Y"='123')
    
    
    17 filas seleccionadas.
    
    SQL> SELECT /*+index(test TEST_IDX) */ x FROM test WHERE x = '123';
    X
    ----------------------------------------
    123
    
    SQL> @plan
    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------------------------------------------------------
    SQL_ID  1w53svu82whqn, child number 0
    -------------------------------------
    SELECT /*+index(test TEST_IDX) */ x FROM test WHERE x = '123'
    
    Plan hash value: 4153930100
    
    ---------------------------------------------------------------------------------------------------------------
    | Id  | Operation                   | Name     | Starts | E-Rows | Cost (%CPU)| A-Rows |   A-Time   | Buffers |
    ---------------------------------------------------------------------------------------------------------------
    |*  1 |  TABLE ACCESS BY INDEX ROWID| TEST     |      1 |      1 | 20755   (1)|      1 |00:00:00.30 |   20683 |
    |   2 |   INDEX FULL SCAN           | TEST_IDX |      1 |    100K|   328   (3)|    100K|00:00:00.01 |     320 |
    ---------------------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       1 - filter("X"='123')
    
    
    18 filas seleccionadas.
    
    SQL> SELECT /*+index(test TEST_IDX2) */ y FROM test WHERE y = '123';
    Y
    ----------------------------------------
    123
    .......
    .......
    123
    
    100 filas seleccionadas.
    
    SQL> @plan
    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------------------------------------------------------
    SQL_ID  37yz5ufq7a3b4, child number 0
    -------------------------------------
    SELECT /*+index(test TEST_IDX2) */ y FROM test WHERE y = '123'
    
    Plan hash value: 34309412
    
    ----------------------------------------------------------------------------------------------------------------
    | Id  | Operation                   | Name      | Starts | E-Rows | Cost (%CPU)| A-Rows |   A-Time   | Buffers |
    ----------------------------------------------------------------------------------------------------------------
    |*  1 |  TABLE ACCESS BY INDEX ROWID| TEST      |      1 |    100 |   100K  (1)|    100 |00:00:00.71 |     100K|
    |   2 |   INDEX FULL SCAN           | TEST_IDX2 |      1 |    100K|   286   (4)|    100K|00:00:00.10 |     284 |
    ----------------------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       1 - filter("Y"='123')
    
    
    18 filas seleccionadas.
    In the test, you can see that oracle does not use the indexes without suspicion. The reason is that the cost of the plan with FULL SCAN INDEX is higher.

    Like Christian said he does not use RANGE SCAN, but it does not use UNIQUE INDEX SCAN also. Does anyone know the bug/Pals in Metalink on this problem? I can't find. No work around?

    Thank you very much

    Joaquin Gonzalez

    Hi Joaquin

    No, the reason is that you have not set the settings nls necessary to perform a linguistic operation rather than the binary search operation by default.

    Run:

    ALTER session set nls_comp = linguistic;

    ALTER session set nls_sort = Spanish;

    and try again...

    See you soon

    Richard Foote
    http://richardfoote.WordPress.com/

  • you work around my decision of not to download the new version?

    You work around my decision of NOT to download new versions of firefox?

    I will never put firefox until the vault of Norton password will work in it. All of a sudden it disappeared from my browser. It happened the other day on my laptop too, and I had not updated this version of firefox either. THAT'S HAPPENED?

    TOO GET ALL MY SELECTIONS TO CANCEL REQUESTS CONSTANTS FIREFOX DID UPDATE?

    PLEASE LET ME KNOW AS SOON AS POSSIBLE - NOW COULD BE GOOD AS I CAN'T GET MY NORTON BACK VAULT PASSWORD!

    You'll keep using Firefox 40.0.3, who is from August 27, 2015, so I do not think that your Firefox put up-to-date.

    What does not seem to be updated is your Norton Safe identification - extension version 2015.5.6.76 is November 3 release. This version is supposed to be compatible with Firefox, 40-42, but many users reported glitches.

    A workaround mentioned on the forums of Norton is after the launch of Firefox, to launch a second window by using Ctrl + n, and the Norton toolbar must be visible in the second window. It works for you?

    If this is not the case, unfortunately, he can wait some time before Norton to end its compatibility fixes.

    See:

    As you can imagine, none of us are going independent with change your security software. Symantec is the only person who can solve this problem.

  • Firefox for android mobile phone said app can access the following on your phone... take pictures and videos? Is there a work around? If not have to uninstall.

    I have Firefox for my laptop and wanted to use it on my phone Android mobile phone. When I saw under permissions that the application can access photos and videos and can take photos and videos that seemed very odd. Does anyone know of a work around to keep the app to take photos and videos without my permission? I do not want to uninstall but can allow the intrusion of privacy.

    We have a help article about why this permission is here: how Firefox for Android uses the requested permissions?

    Specifically, some sites may give you the option to attach or embed an image directly from the camera instead of going through a folder of pictures already taken. In order to support this feature, Firefox requires permissions to access the camera. However, according to this article, Firefox will ask your permission before leaving the site to use the camera. I don't think I have ever seen this in action.

  • Work around for the Ical does not send do not issue invitations

    If I understand the problem, ical will not send an invitation email to someone it detects has an ical account. People don't know they have an invitation or they use Google or Outlook to their calendars. Despite everything, they just don't receive invitations to your meetings. For some reason, Apple does not change the rules.

    I was going to start using my Google Calendar and just invite myself, but I used my Gmail account as my ID for Apple. Ah, the tangled web we weave when we try to be cute with Apple products.

    In any case, I was wondering if anyone had a work around for this problem "iCal don't send invitations." I want just the people I work with in voluntary organizations to get an email with an invitation attached. Has anyone found a way around this? I'm about to go to Evite!

    Thank you

    You can invite people to events using their e-mail address or their name. To invite people by name, they must be in your Contacts application with an email address, or they must use the same service calendar CalDAV or Exchange as you (for example, your company's employees).

    Invite people using window addresses

    1. Choose window > presentation.
    2. Search people, then drag them to the event.

    Send an email or a message for guests

    1. Control-click on the event.
    2. Choose send all guests or Message all guests.

    Add guests to the Contacts

    1. Force or double-click on a click event.
    2. Hold the pointer over a guest, and then click the pop-up menu .
    3. Choose Add to Contacts.If you do not see Add to Contacts, but you do not show Contact card, the guest is already in Contacts.
    4. An apple article is here: Calendar (El Capitan): invite people to events
  • Fonts in iMove import or a work-around.

    Is there a way to import fonts in iMovie?, perhaps a work around as import in file iMoves fonts?, I have no ideal how do. I have this huge selection of fonts, but iMovie uses very little of them.

    Thanks for your time

    Hey Kirk you still autour?

    iMovie has access to all fonts in the font book. But iMovie will only show you the fonts that are compatible with the design of the title you have chosen. If you click the fonts in the T tool, drop down, you'll see the fonts. This will give you the window fonts, and you can see all the fonts on your system.

  • Possible work around sound but no picture...

    It is NOT a question but a possible work around. Youtube videos have sound but no picture. In this case, you can click on the small arrow to the right, near the right side of the address bar. This reloads the page and the problem seems to be fixed. You must do this for each video with sound but no picture. Should not, but it's a work around.

    Moderator edited the title to remove the question mark

    Hello

    Thanks for the useful information. Can you Post a response (below), possibly add more details and mark it as the solution.

Maybe you are looking for

  • My master password suddenly no longer works, can not access e-mail

    I tried to reset my password, as described in the help section. He said the password was reset... but what? He never asks me what I want to reset the password! So I try to log in again, and the same thing happens, suddenly is a password that works we

  • Satellite P100-221 cover breaks definitively

    Hello to everyone. Maybe someone could help me what to do next. I have bougth netobook Toshiba P100-221 in August 2006.After that 4 month (Dec. 2006) the lid broke the first time. The cover has been replaced by ASP.Then coverage broke once more after

  • I updated the BIOS on my dx2250, now NLTDR is missing

    I updated the BIOS on HP Compaq dx2250 my wife and then received "NLTDR is missing" press CTR, ALT, delete.  The machine has XP Professional as the operating system. I used the Windows configuration Option 'R' for copy NLTDR and NTdetect.com by HP he

  • PROFIBUS CP5613 and CP5613 A2 problem?

    Hi all. I created a program that communicates with the profibus CP5613 A2 and it works brilliantly. But when I try to use the program with the CP5613 card that he does not want to initialize. What is the difference between the two cards and is the di

  • KB2454826, has been a new update released today to fix this?

    My COMPUTER business gave me the solution, start the computer in safe mode, restart, start windows update, check for updates, find KB2454826, right click and hide the update.  This should have solved the problem temporarily until Microsoft fixes it.