Form Line Space Work Around (permanently set leading)

Hi All,
new to the forums – I find the format confusing, but I'll try to do my best!
I have discovered a way to permanently set the line space (leading) of a form field. If you all discover a better way, then let me know!
     Create a small, multiline text field anywhere. Name it "Reference". This field will become hidden and read only later, so don't worry too much about it.
     Enable it to have rich text formatting. This is done in the form field properties under "Appearance".
     Exit form field editing. Place a single space in that field (no other characters).
     Select that space, then hit command + e (ctrl +e on PC) to bring up the rich text formatting options.
     Select a font and size, then press "More."
     Click the paragraph tab, then select a line height. I prefer to use the "exactly" option from the drop down menu, makes it the most similar to setting type in Illustrator or Indesign.
     We're halfway done! Exit out of this field and save.
This next part gets a little trickier because it requires some event javascript.
     Create a new miltiline text field. Worry about this one more, because this is the one the user will use. For this example, name it "Text"
     Like before, enable it to be multiline and rich text in the appearance settings.
     Go to the "Actions" tab of the form field properties.
     Choose event "on blur" and action "run javascript".
     Insert the following code:
if (this.getField("Text").value == "") {this.getField("Text").richValue = getField("Reference").richValue;}
This code tells the form field that when exited, if it is left empty, it should copy the exact rich text found in the form field "reference."
Now set the field "Reference" to read only and hidden under "general" in form field properties. Exit form field editing. Select "Text" and type anything you want, then delete it. Click the field again. There is now a single space there! (invisible to user at first) that has saved all your formatting! If the user starts typing, it will be properly formatted. Make sure to save your document with the field "Text" having only the properly formatted space.
Other Notes:
There 100% is a value in the javascript to set line height. Otherwise, copying the ".richValue" of a field wouldn't allow this to work. Problem is, no one seems to know the syntax and can't find it in the API. My challenge to you guys is to find it! We've proven it exists. If we can find the syntax then we can avoid these complicated workarounds.

Sorry, when I instruct you to adjust settings in the "appearance settings," I actually meant the options settings. Sorry for the confusion!

Similar Messages

  • "Erase Free Space" work-around for non-apple ssd

    for those of you attempting to "Erase Free Space" per knowledge base article:
    "OS X Lion v10.7.3: User account passwords appear in log files for Legacy FileVault, and/or network home directories"
    quote:
    "6. Open Disk Utility.
    7. Select your OS X Lion volume on the left.
    8. Click "Erase Free Space…".
    9. Select the Erase Free Space Option you want and click "Erase Free Space". Enter admin name and password if prompted."
    but instead seeing a grayed out "Erase Free Space" in Disk Utility?
    you can perform an "Erase Free Space" by using WipeFS app by Jonathan Clark which can successfully perform a DoD (Department of Defense) wipe for digital media, apple's Disk Utility doesn't do this anymore with non-apple solid state drives (ssd)
    references:
    https://support.apple.com/kb/TS4272
    http://itunes.apple.com/hr/app/wipefs/id484887048?mt=12

    ...but instead seeing a grayed out "Erase Free Space" in Disk Utility?
    See,
    Mac OS X: About Disk Utility's erase free space feature
    which says,
    Note: With OS X Lion and an SSD drive, Secure Erase and Erasing Free Space are not available in Disk Utility. These options are not needed for an SSD drive because a standard erase makes it difficult to recover data from an SSD. For more security, consider turning on FileVault 2 encryption when you start using the SSD drive.
    Also google "erasing space on ssd".
    Bottom line, it is not something you want to do to a ssd. 

  • Hello All. I am working on a form, but I need to format the leading in a multi-line text-field.

    Hello All. I am working on a form, but I need to format the leading in a multi-line text-field. The options for the text-field only show a font size option, but no other styling options. Is there a way to format the leading? Thanks!

    Not within ID, and I'm not sure it can be done in Acrobat afterward either.

  • BO 4.1 SP3 WebI section space Issue - Work around

    System:
    SAP BO 4.1 SP3 Update
    Windows 2008 R2 Std x64 Edition SP1
    Universe - Single Source UNX
    We upgraded from SP2 to SP3 recently and while working on the WebI report, I noticed that WebI reports with Section creates big spaces between sections and the table block. There is a setting to adjust the Top header vs actual section header space using Format Section. But in the View Mode, there will be lot of space between table blocks due to the Section boundary.
    So, I read web articles and tried couple of options but in vain. But the following work around helped me to overcome this issue !!
    I tried to create it from a new 'Add report' in the same WebI report, so that I can reuse my earlier tables/cross tabs etc.
    1. At the bottom of the WebI report Right click the tab -> Add report -> In the new sheet go to Report Elements -> Section -> Insert Section and select the object from the UNX.
    2. A new section is created.
    3. Now check whether you can adjust the section size manually. If yes, then copy the Header content / table blocks from the problematic tab to this new tab;
    4. You can use the newly created section report for other problematic report tabs.
    The above steps are work around ONLY.
    For me it looks like a SAP Product bug. If anyone else had similar issue please post your comments !!
    Thanks,
    Chithresh

    Are you also having issues with merged dimensions that are used on the sections?
    I've had to unmerge, merge, and create the section again. It throws an error if I don't do that.

  • It's simple... I want the Illustrator pen tool to ALWAYS make corner annchor points and NEVER smooth.  Right now I have to convert every single one of them, or I have to do a work around every time I draw a line and make one of the handles disappear.  Is

    It's simple... I want the Illustrator pen tool to ALWAYS make corner annchor points and NEVER smooth.  Right now I have to convert every single one of them, or I have to do a work around every time I draw a line and make one of the handles disappear.  Is there some simple setting out there that will just "make it so?"@

    The video I am watching this guy is just dragging every line to make curves.  And every anchor point is a corner.  He is not switching back and forth between the pen and the anchor points tool, and he is not using the convert points tool.  He draws a curved line and starts another straight line only to curve it with a click and a drag.  It is super efficient, and I could save a world of time if I could figure out what he is doing.

  • How To Work Around Set Up Issue With Time Machine?

    When I attempt to set up an external drive for Time Machine I get this: You do not have appropriate access privileges to save file “.001b63b53d7a” in folder “Time Machine Backups”. I have searched for this file and cannot find it. I have deleted any and all Time Machine Backup files.

    I worked through the first four on the work around and this is what the terminal screen looks like:
    Last login: Sun Jan 11 20:59:31 on ttys000
    Macintosh:~ Brokenarrow$ cd /Volumes
    Macintosh:Volumes Brokenarrow$ ls -al
    total 12
    drwxrwxrwt@ 5 root admin 170 Jan 11 20:01 .
    drwxrwxr-t 40 root admin 1428 Dec 28 15:42 ..
    lrwxr-xr-x 1 root admin 1 Jan 10 06:29 Macintosh HD -> /
    drwxrwxr-x 15 Brokenarrow Brokenarrow 1020 Jan 11 19:56 Time Machine Backups
    drwx------ 1 Brokenarrow Brokenarrow 2048 Jan 11 20:10 mikesmail
    Macintosh:Volumes Brokenarrow$
    I tried to determine which was the back up volume name (tried Time Machine, Time Machine Backups) but no luck. Any suggestions? Thanks for your patience.

  • Working around a cs3[4?] Symbol Set Staining bug

    The problem will show if you stain some but not all of the symbols in a set, then apply at least one further Symbolism tool, then later want to change the original symbol.
    You'll find that the stained symbols won't update to the changes in the original symbol, though the unstained ones will, regardless of how many other Symbolism transitions have been made to them.
    The workaround is to touch the stained symbols with any of the symbolism tools, then do an Undo to remove any effect. Now edit the base Symbol, make no modifications, and return. Your stained symbols will now update to the base symbol appearance (shape change for example).
    You'll have to do this each time, after you've stained some symbols.
    The fascinating thing is that if you remove all staining (Alt/Option staining tool and strokes), the previously stained symbols will revert to proper behaviour, now obeying underlying symbol edits.
    It would be great if Adobe is still fixing CS3 bugs, and would fix this. Does it show up in Illustrator CS4?

    I've got a better sequence to demonstrate this bug, and a nicer work-around, after talking with someone helpful this morning.
    1. Create a symbol - for example 'sunglass' lenses, or as I named them, 'varilens'. This is a path shape for the front of sunglasses, with a gradient across the lenses to get a cartoon realism look.
    2. Spray the symbols. Just produce a Symbol Set normally.
    3. At this point you can use any of the Symbolism tools except Stainer, and everything seems to work properly.
    4. Double-click the 'varilens' in the Symbol window, and edit its shape. When you return from the Isolated 'group' for editing, you'll see that all the 'sunglasses' in the Symbol Set have the new shape, as they should.
    5. Now, stain a few of the 'sunglasses' -- not all of them. For example, use a red color, against an original blue basis of the gradient.
    6. Now, double-click 'varilens' in the Symbol window again, and edit it to a fresh shape. When you return from the Isolated editing 'group', you'll find all the original blue sunglasses have the new symbol shape. But the reddish Stained sunglasses do not. They've kept the previous shape. This is the bug.
    7. To work around the bug, I've found an even simpler way now. Just double-click 'varilens' once more, in the Symbol window, and immediately exit the Isolated editing 'group'. The Stained symbols will now 'catch up' to having the new shape, this second time.

  • Work Around for Order Extractor VDATU at the Line

    All -
    We have recently (July 2009) upgraded to BI 7.0 and have requirements for Request Del Date in BW reporting.  My understanding is there's a known bug with VDATU (request delivery date), also in previous versions.  This is found in R/3 com structure MCVBAK/VBAK; however there is also a VDATU (Date of update for statistics updating) in R/3 com structure MCVBAP/MCVBAPADD.  The actual object in the order extractor comes from MCVBAP which is the update for stat updating NOT the requested delivery date.
    We have added code to pull VDATU from MCVBAK through the extractor user exit; however this is only pulling the correct data part of the time.  It looks correct the first time through but if there are any changes to the order it resets it to an earlier date as if it never hits the code again.
    I'm thinking we need more code to pull the value at the line level but not sure if we should be pulling the vdatu from MCVBAP.  Is there a full proof work around in pulling requested delivery date correctly regardless of the number touches to the order?
    Thanks
    KLD

    Arun
    Thanks for your response.  Unfortunately it was decided back in 2000 we would not bring the order schedule line extractor in to BW.  No errors.
    Originally we had MCVBAP-VDATU (Date of update for statistics updating??) mapped in BW.  No one was really using the field so i added code to the user exit to populate the values coming from MCVBAK-VDATU.  I unmapped the object in the transfer rules from the date of update stat to a newly declared object in BW.  As i mentioned above the date in BW is not always matching the value in R/3.  It doesn't seem to be picking up the date if changes were made to the header or item level.  
    Brainstorming...
    Could you recommend another work around?  What is the name of the actual requested delivery date object on the 2lis_11_vascl extractor?  What are your thoughts on bringing that object into the line item extractor and adding logic in the user exit to capture the updates to the schedule line requested delivery date object?  It sounds messy.
    Currently we use the MCVBAP-VDATU in the extractor.  I was wondering if we could swap it for  MCVBAK-VDATU?
    Thanks again.
    KLD

  • Line space in cheque form in sapscript

    Hello All,
    We have developed or design new form for cheque printing.
    how to define on line space (amount in the word. ) sapscript form .
    amount in the word..
    FIFTY-SIX LAKH THIRTY-NINE THOUSAND SEVEN HUNDRED
    EIGHTY-SEVEN AND PAISE NINETY-EIGHT ONLY
    My requirement this type
    FIFTY-SIX LAKH THIRTY-NINE THOUSAND SEVEN HUNDRED
    EIGHTY-SEVEN AND PAISE NINETY-EIGHT ONLY
    Regards,
    Richa
    Edited by: Tripathi Richa on Dec 14, 2011 6:44 AM

    Hi tripati,
    Change the Paragraph format of that line.in paragraph format you can find the line spacing option.specify the required line spacing to that format.i hope this will solve your issue
    with regards
    Naresh

  • Script to work around Illustrator bugs

    Newbee here,   We are working in Illustrator CS5.  I have put together some scripts & Actions to automate several parts of our work.
         I'll start with what we have now.  Plus what we have now works on both Mac & PC & if there is a way to work around these BUGS it will need to work on both the Mac's & PC's.
    1)  We have an .ai file (our default format) that we can open up & inside some text will automatically fill in when we run a script. (see custom script at bottom) Some text boxes will fill in the date based on the present date on our computer, some text boxes will fill in a name based on the name of the electronic .ai file.
    See red boxes.
    One difficulty that I worked out is, sometimes in one of the fields in the file, it needs to have a name consisting of only 4 sections (or 3 dashes). In example:  ILSLIM = 1,  EXAMPLE = 2, TEST = 3, & AA01 = 4.
    So when this happens then the last dash in this one text box on our format (Not any of the other text boxes) will need the 3rd dash removed (now it is only 3 sections because TESTAA01 are now one).
    So I created an Illustrator "Action" that will after the "ChangeFileNameDate" script is run, the "Action" will select the one text box & then run the "Find and Replace" to delete the 3rd dash as seen above.
    NOW THE PROBLEMS!  (Illustrator bugs)
    1)  In the Illustrator "Actions" when you record an "Action" & use the "Insert Menu Item..." to put a Script in, it will work.  BUT when you quit out of Illustrator & then relaunch it the custom Script will disappear. I looked into this & this is a known bug for years in Illustrator that is still not fixed.
    http://js4ai.blogspot.com/2012/03/how-to-permanently-tie-script-to-action.html
    Works untill you quit out & relaunch.
    BEFORE QUIT.
    AFTER RELAUNCH.
    SO the only work around I can get to work for now is to "Insert Menu Item..." "Other Script..." & this will stay even after relaunch BUT then every time we run the "Action" we have to manually select the script. (CRAP)
    Still here after relaunch.
    PLUS A BUG with recording the "Find and Replace".  In case you do not know, when you save "Actions" in Illustrator you can; save any of the actions that require a dialog box; 1) to either have the dialog box come up so you can enter whatever you need into it or 2) you can have the dialog box NOT come up & the action will just do what it had in it when you recorded it.  This feature is turned on or off by clicking the box next to the check mark on or off (see pic).
    So the BUG is, for my "Actions" that use the "Find and Replace" to delete the dash to work for some reason I have to have the first "Find and Replace" steps dialog botton ON so that the "Find and Replace" dialog box will open up.
         Let me explain, when you record to use the "Find and Replace" it will work fine even with the dialog box option clicked off; but if you quit Illustrator & then relaunch it & try to run the "Actions" that have the "Find and Replace" in them then Illustrator will crash.  So the only work around that I found for this CRAPPY BUG is to simply have the 1st "Find and Replace" in the recorded "Action" with the dialog box set to on (to open up when Action is run) & then we have to manually close it.  We don't have to type anything inside of it.  We simply have to have it open & then close.  Then for some reason the rest of the recorded "Actions" will run with out the dialog boxes opening with the deleteing of the 3rd dash as like when I 1st recorded it.
         So basically, if I want the "Actions" to work at this point I would have to do this;  every time I relaunch Illustrator I would need to manually load the custom script into the "Actions" & I would need to open & close the "Find and Replace" box.  This is CRAP the whole point of "Actions" & Scripts are so I can do everything MANUALLY, NO.  We should be able to have it work for us!
    OR maybe this would be the best solution!
         If inside the "ChangeFileNameDate" custom script it could simply open & then close the "Find and Replace" box (that would solve the crashing 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.  Then all we would have to do is drag down to the custom script from "File" & run that.  No crashing, No babysitting.
    DOES ANYONE KNOW HOW OR IF THIS IS POSSIBLE?  To add to the attached script:
    1)  At the beginning to open & close the "Find and Replace" box.
    2)  At the end to cause a saved "action" to run.
    WE WOULD BE SO VERY, INCREDIBLY, EXTREMELY 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);

    Carlos or anyone,  I've been working on several ideas & think that I have come up with the best approach to work around these bugs.  But need it to work in java script.
    1)  In AppleSript I can build a script that will trigger an "Action" to run.  The "Action" will select an object by its "Attributes" "Note".  The selected text box in picture is called "UPPER FORDDOC NAME" so it will select this object only.
    activate application "Adobe Illustrator"
    on doAction(scriptName, actionSet)
              tell application "Adobe Illustrator"
      do script scriptName from actionSet
              end tell
    end doAction
    tell application "Adobe Illustrator"
              tell me to doAction("Save Part # Delete -", "TIC Color 03-13-12")
    end tell
    Can this be done in Java?
    If so then:
    2)  I built an AppleScript that can open the "Find and Replace" then simply close it; by using "System Events" to select the keystrokes.
    Is this possible to do in Java with out buying an extra program?  This AppleScript works great but need it to work also on the PC's.
    activate application "Adobe Illustrator"
    tell application "System Events"
      tell process "Adobe Illustrator"
      --This is the quick key to open the "Find and Replace" window
      keystroke "K" using {command down, shift down, option down}
      delay 1
      --This is the esc key
      key code 53
      end tell
    end tell
    I HOPE SO ssssssssoooooooo MUCH!

  • Subject line 'space' character is lost when sending mail?

    Hi,
    I'm using JavaMail, and when sending a mail with a subject line that is longer than 62 characters, the last space before the 63rd character becomes a linefeed. This means that when the recipient receives the e-mail, the space in the subject line is actually dropped (becomes a linefeed).
    For example. I send an email with the following subject line: "New User Setup [ITNUS-0005] User Setup Progress Report for: Louise Gans".
    The recipient will receive the following subject: "New User Setup [ITNUS-0005] User Setup Progress Report for: LouiseGans".
    Note the missing space between "Louise Gans". Perhaps someone could test sending out that subject line, and see if they get the same problem?
    Looking at the message source on the recipient client, it shows a line feed / new line where that space is supposed to be.
    Using MS Outlook or GroupWise or another mail client, the subject lines gets sent through perfectly using the same mail server (Groupwise Internet Agent 7.0.3), but using JavaMail to send the mail through that mail server gives me the space problem.
    Can anybody shed some light on why this is happening? I would really appreciate the help.
    Here is an example of the code I am testing with:
    public class SendHtml {
         public static void main(String[] argv) {
              new SendHtml();
         public SendHtml() {
              String  to = "[email protected]";
              String subject = "New User Setup [ITNUS-0005] User Setup Progress Report for: Louise Gans";
              String from = "[email protected]";
              String cc = null;
              String bcc = null;
              String url = null;
              String mailhost = "mail.server.co.za";
              String mailer = "sendhtml";
              String protocol = null, host = null, user = null, password = null;
              String record = null;     // name of folder in which to record mail
              boolean debug = false;
              BufferedReader in =
                   new BufferedReader(new InputStreamReader(System.in));
              try {
                   Properties props = System.getProperties();
                   if (mailhost != null) {
                        props.put("mail.smtp.host", mailhost);
                   // Get a Session object
                   Session session = Session.getInstance(props, null);
                   // construct the message
                   Message msg = new MimeMessage(session);
                   if (from != null) {
                        msg.setFrom(new InternetAddress(from));
                   else {
                        msg.setFrom();
                   msg.setRecipients(Message.RecipientType.TO,
                             InternetAddress.parse(to, false));
                   if (cc != null)
                        msg.setRecipients(Message.RecipientType.CC,
                                  InternetAddress.parse(cc, false));
                   if (bcc != null)
                        msg.setRecipients(Message.RecipientType.BCC,
                                  InternetAddress.parse(bcc, false));
                   msg.setSubject(subject);
                   collect(in, msg);
                   msg.setHeader("X-Mailer", mailer);
                   msg.setSentDate(new Date());
                   // send the thing off
                   Transport.send(msg);
                   System.out.println("\nMail was sent successfully.");
                   // Keep a copy, if requested.
                   if (record != null) {
                        // Get a Store object
                        Store store = null;
                        if (url != null) {
                             URLName urln = new URLName(url);
                             store = session.getStore(urln);
                             store.connect();
                        } else {
                             if (protocol != null)          
                                  store = session.getStore(protocol);
                             else
                                  store = session.getStore();
                             // Connect
                             if (host != null || user != null || password != null)
                                  store.connect(host, user, password);
                             else
                                  store.connect();
                        // Get record Folder.  Create if it does not exist.
                        Folder folder = store.getFolder(record);
                        if (folder == null) {
                             System.err.println("Can't get record folder.");
                             System.exit(1);
                        if (!folder.exists())
                             folder.create(Folder.HOLDS_MESSAGES);
                        Message[] msgs = new Message[1];
                        msgs[0] = msg;
                        folder.appendMessages(msgs);
                        System.out.println("Mail was recorded successfully.");
              } catch (Exception e) {
                   e.printStackTrace();
         public void collect(BufferedReader in, Message msg)
         throws MessagingException, IOException {
              String line;
              String subject = msg.getSubject();
              StringBuffer sb = new StringBuffer();
              sb.append("<HTML>\n");
              sb.append("<HEAD>\n");
              sb.append("<TITLE>\n");
              sb.append(subject + "\n");
              sb.append("</TITLE>\n");
              sb.append("</HEAD>\n");
              sb.append("<BODY>\n");
              sb.append("<H1>" + subject + "</H1>" + "\n");
              sb.append("</BODY>\n");
              sb.append("</HTML>\n");
              msg.setDataHandler(new DataHandler(
                        new ByteArrayDataSource(sb.toString(), "text/html")));
    }

    The header is being "folded" as described in RFC 2822 section 2.2.3.
    The folding doesn't lose the space if unfolding is done properly.
    Perhaps the recipient mail program isn't handling unfolding properly?
    If so, please report the bug to the owner of that program.
    If you need to work around such a buggy program, you can set the
    System property "mail.mime.foldtext" to "false" to disable all folding
    in JavaMail.

  • 10.4.9 Printing Work-Around Fix - 10 Steps

    VonB has already listed a fix in this thread.
    http://discussions.apple.com/thread.jspa?messageID=4234084&#4234084
    Unfortunately the links he provided there are for a paid site, and if you don't have a membership you're outta luck. I've taken his info, used it and written what I think are clear instructions to help you be able to print in 10.4.9 until Apple releases an update patch. Special thanks to Vonb for pointing me in the right direction.
    Hope this helps...
    Jim
    10.4.9 Printing Work-Around Fix - 10 Steps
    Problem - Many programs will not print in OSX 10.4.9.
    What This Fix Does - Allows you to print in TEXT EDIT. You can then save MS Word files as Text Edit files and print them. Hopefully a fix will soon be released by Apple for OS 10.4.9 or MS for office 2004.
    What This Fix Does Not Do - It won't allow you to print in MS Word if you currently can't, and it won't allow Appleworks to work if it currently doesn't.
    Difficulty - easy to moderate. Can you paint by numbers or do you tend to draw outside the lines? If you follow the directions closely you'll be ok.
    Disclaimer - I typed this fix out for myself and have applied it to my 5 personal macs and 4 at work. It hasn't crashed any of them, but I don't want you to get ****** off at me if it does... so if you screw your mac up by doing this don't say I didn't warn you. This fix isn't for newbies.
    Time to complete - about 1/2 an hour.
    Special Instructions -
    A. You'll need to be logged in as the administrator of the computer you're working on. I've written this help missive in real plain language. If it seems like I'm speaking down to you I'm not, I'm just trying to make sure you don't screw it up and send me nasty emails.
    B. Check to see if TEXT EDIT already prints for you, if it does then skip to #10. (TEXT EDIT can be found in your APPLICATIONS FOLDER on your Macintosh HD.)
    OK... here we go, THE TEN STEPS! (cue dramatic music)
    1. Delete all of your printers in the PRINT & FAX set up in SYETEM PREFERENCES by following this path - BLUE APPLE / SYSTEM PREFERENCES / PRINT & FAX. If the plus and minus button on the bottom left of the dialog window that appears is grey'd out, you need to CLICK ON THE LOCK and UNLOCK it. You'll need the administrator password to do this. Once the lock is unlocked, click on each printer listed there and then click the minus button. Repeat the process until all printers in the print & fax dialog are deleted.
    2. Download two programs from the net. (REMEMBER where you download these files on your computer.)
    A. Download a program called CUPS from this site. http://www.cups.org/software.php?VERSION=1.3svn-r6326&FILE=cups/1.2.8/cups-1.2.8 .dmg
    CUPS is a unix program that Apple uses within Mac OSX to print. Download version 1.2.8 only. When you get to the site, you will have FTP and HTTP buttons to select where to download from. If you're already in a browser, click on one of the HTTP sites. That way you don't have to open an ftp program.
    B. Download and install a program called PRINTER SETUP REPAIR (VERSION 5.0.5) from this site. http://www.fixamacsoftware.com/software/index.html
    PRINTER SETUP REPAIR is a shareware program we'll use to fix some issues... if this works I suggest you go back to this site and be a good net citizen and purchase the software. If it doesn't then don't buy it.
    3. Install CUPS by clicking on the CUPS.DMG file twice. This will open the DMG file on the desktop as a hard disk image. Open the CUPS HD image and click on the CUPS.pkg twice to install the program. Follow the instructions to the end. After installation click close button.
    4. Open psr505te.dmg by clicking on it twice. (it might be called psr505TE.dmg.zip. if it is, click on the psr505TE.dmg.zip file twice to open it, then click on the psr505TE.dmg file twice to open it.) Once the psr505TE.dmg is open, open the PRINTER SETUP REPAIR HD on your desktop. Inside is a program by the same name. Open it by clicking on it twice.
    5. Click the "TRY IT" button, type in your admin password, and click the CONTINUE button
    6. On the left side of the Printer Setup Repair dialogue window, click CUPS TOOLS icon. in the middle of the dialogue box, if the screen reads " cupsd is running" click the STOP button located just to the left.
    7. On the lower right hand side of the Printer Setup Repair dialogue window, under the words "replace current cupsd.conf file with", SELECT "new cupsd.conf file". Then click GO. Then click CONTINUE in the next dialog box that appears.
    8. On the left side of the Printer Setup Repair dialogue window, click on the FILE PERMISSIONS ICON. Make sure that all of the boxes in the middle of the Printer Setup Repair dialogue window are checked except for OMIT LOCALIZED FILES and both of the FOR ALL USERS boxes. At the top of the screen in the middle click on the PRINTER ICON THAT HAS A QUESTION MARK on it. In the window that pops up click CONTINUE. This will run VERIFY AND REPAIR PERMISSIONS from inside the Printer's Setup Repair Program. (I know, there is a repair permissions in the Disk Utility Program already on the mac, it doesn't do something that this program does. I don't know what it does, but this works and Disk Utility doesn't.)
    9. Run it AGAIN! (the second time does the trick for some reason. just once didn't do it on three out of 5 macs that I used this work around on). This should allow you to print in TEXT EDIT.
    10. If you are using Microsoft Word and you want to print something, you need to SAVE AS a text only file (File menu / Save As / Format - Text Only) and print by opening the document in TEXT EDIT and printing from that application. So far this fix has worked on 1 intel iMac, 1 lamp stand iMac, an eMac, a Macbook and an iBook. (Funny enough, my G4 sawtooth Mac running 10.4.9 works fine and prints from MS word without a hitch.)
    If this fix works for you, i encourage you to go back to printer's setup repair's website (http://www.fixamacsoftware.com/software/index.html) and purchase their software.

    Use the install disk that shipped with your Mac to "Repair Disk"
    Steps for using Disk Utility
    1. Insert the Mac OS X Install disc that came with your computer, then restart the computer while holding the C key.
    2. When your computer finishes starting up from the disc, choose Disk Utility from the Installer menu. (In Mac OS X 10.4 or later, you must select your language first.)
Important: Do not click Continue in the first screen of the Installer. If you do, you must restart from the disc again to access Disk Utility.
    3. Click the First Aid tab.
    4. Click the disclosure triangle to the left of the hard drive icon to display the names of your hard disk volumes and partitions.
    5. Select your Mac OS X volume.
    6. Click Repair.
    If you repair errors run it until no errors found.
    Let us know.
    -mj
    [email protected]

  • In Lion return key no longer opens a file! Is there a work around?

    In Lion return key no longer opens a file! Is there a work around?
    In Snow Leoppard I used the return key all the time in finder and Path finder when quickly navigating files. There was the choice of the 2 return keys, one opens the file and the other goes into edit the filename. Now in Lion both keys do the same thing and I miss it badly. It means you have to go to the mouse which (reletively speaking) takes ages.
    Is there a work arround or fix?

    This is a standard setting to change to this to allow users to access the emotions option, this has been like this for some while because the text messages app only allows a number of letters and to add a line break will cause issue with the letter count...  At this time there isnt any way to modify it other than use a 3rd party keyboard but a number of them does this as well.
    Another option that may work is open a email and type the message the way you want it to layout and then copy all text and paste in the text message window, it may keep the original format of the text but I havent tried it myself.
    UPDATE:  Just tried it and you can copy and paste from email and text will keep format...

  • FM hypertext doesn't work - work around in RH doesn't work... need help!

    I am working in TCS2 in Windows XP. I posted this in the RH discussion too... I hope that is OK that I put it here as well (hoping to reach the correct audience somehow!)
    I am trying to single-source things. So I have created a huge doc in FM. Within FM, I have hypertext links to openfile a PDF (which works just fine in FM, and when I generate a PDF it still works nicely). Then I import into RH and those hypertext links don't work anymore. So I created my own little work around:
    Went to that place and coded the FM hypertext as PRINT
    Added a hypertext link (coded as ONLINE) that will jump to the required destination in the online help files
    Works beautifully. But b/c I am single-sourcing (I think) whenver I make changes in the FM files and I have to update the RH files, the manual changes I've made to the RH files (as above) disappear. That is not going to work for me... I cannot do that manual work around everytime I update... too hard to remember, to time consuming, etc. etc.
    Here is ultimately what I need:
    -the PDF link to work in FM (which it does) - usable in PRINT generation
    -a RH link which jumps to that location in RH - usable in ONLINE generation
    Suggestions?
    Thank you!
    Adriana

    Hi there
    Could it be as simple as the setting in the RoboHelp HTML Single Source Layout of "Mark Of The Web"? (MOTW)
    With MOTW enabled, links to local files such as PDFs don't work. At least when you test using Microsoft Internet Explorer.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How do I get second monitoir to work, I have correct leads etc and have tried to find required actions in Pref Display, I can do this very easily on my pc but having real drama with my Imac

    How do I get a second monitor to work. I have all the correct leads etc.  But I can not find the additional monitor in the Pref Display section.
    Need to do this as built in screen is corrupting, with colour lines, I have been told that this is a screen issue not the graphics cards etc and not unusual on IMac

    Jeff,
    thanks.  I didn't know that and it does work.  But I still have the problem that it rarely works if I need to have the cursor in place in order to make a correction or addition to a cell, or if I want to use dictation, which is my preferred method. 
    But you have definitely provided me with a work around that I can use most of the time for entering text.
    I am going to give it some more time to see what I can learn before switching back to Excel.  It acts like there's a poor connection between the mouse and/or trackpad--I'm switching back and forth looking for better traction--and the program, although both the mouse and trackpad work well elsewhere.
    Again, thanks to everyone for your help. 
    Also, I just noticed the " This helped me."  I appreciate all the help, and I'm now embarassed that I didn't understand that I should probably be clicking.  Or does it work that way?

Maybe you are looking for

  • Error in writing to directory?

    Hi Team I format the Oracle DataBase and I am again installing Oracle DataBase when i click setup .exe It is showing an error message like Error in writing to directory C:\DOCUM~1\ADMIN~1\.... . Oracle Universal Installer needs you to have permission

  • Overwrite material BOM component

    Hi, I am trying to over-write the component of a material BOM with another component in the same position. I am using FM CSAP_MAT_BOM_MAINTAIN for this. I am passing values to the the below parameters. MATERIAL                            H.1013.2476

  • Personalization - Locale Profiles - Two Filters / OR not And!

    Hi all, I use the Dynamic Recipient functionality in 3.1 with Personalization. I set two different Filters in Locale Profiles. So I map two dynamic recipient fields to a report field. When I publish this publication (only 1 Webi-File inside) it works

  • Picture in signature?

    Can you put a picture in the signature area on the iPhone 4 (iOS 4.3.3)?

  • BOM Item Text

    In cs02 transaction i am tring to save long text into the field <b>item text</b> and . i am Using Standard LSMW for Uploading long text     /SAPDMC/SAP_LSMW_IMPORT_TEXTS. Pls help me to find  <b>Name</b> in the Long text - header (TDOBNAME). Its Ugre