How to find out the Gradient Object Information?

Is it possible to find out wheather the textframe contains "gradient object" or not through programmatically(Vbscript or javascript). Kindly advice me, also please provide any examples.

If I have correctly understood question, then it easy:
that is on VBS:
Dim objFSO 'As FileSystemObject
Dim objTextFile 'As Object
Set appRef = CreateObject("Illustrator.Application")
Set mydoc = appRef.ActiveDocument
myselection = mydoc.Selection
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.CreateTextFile("c:\color.txt", True)
For Each ch In myselection(0).Characters
Select Case mydoc.DocumentColorSpace
Case aiDocumentCMYKColor
c = Round(ch.CharacterAttributes.FillColor.Cyan, 2)
m = Round(ch.CharacterAttributes.FillColor.Magenta, 2)
y = Round(ch.CharacterAttributes.FillColor.Yellow, 2)
bk = Round(ch.CharacterAttributes.FillColor.Black, 2)
objTextFile.Write ("C=" & c & " : " & "M=" & m & " : " & "Y=" & y & " : " & "B=" & bk & chr(10) & chr (13))
Case aiDocumentRGBColor
r = Round(ch.CharacterAttributes.FillColor.Red, 2)
g = Round(ch.CharacterAttributes.FillColor.Green, 2)
be = Round(ch.CharacterAttributes.FillColor.Blue, 2)
objTextFile.Write ("R=" & r & " : " & "G=" & g & " : " & "B=" & be & chr(10) & chr (13))
End Select
Next
objTextFile.Close
script create txt file on C: and write a color of every character in selected frame

Similar Messages

  • How to find out the account group information in customer master record?

    how to find out the account group information in customer master record?
    in which tab? thanks in advance

    Hi
    Go to XD02 and select the Extras from the main menu , you will find Account group info -> click on the No.ranges.
    reward if it helps
    SR

  • How to find out the tables effected information from oracle from

    can any one tell me how to find out the tables effected information from oracle form

    Hi,
    Please refer to the following documents.
    Note: 259722.1 - HOWTO Determine Table and Column Name from a field in a form in 11i
    Note: 241628.1 - How to Find the Query That Succeeded Recently?
    Regards,
    Hussein

  • How to find out the Referenced objects ?

    Hi all,
    I want to find out the referenced objects
    Example : Table Name is Customer
    I want to know what are the procedures,functions,packages used that customer table. Please provide that sql Query.
    Thanks and Regards

    If this is not what you want, please give us a test case with input and expected output:
    SQL>
    SQL> drop table cust;
    Table dropped.
    SQL> drop procedure proc1;
    Procedure dropped.
    SQL> drop procedure proc2;
    Procedure dropped.
    SQL> drop procedure proc3;
    Procedure dropped.
    SQL>
    SQL> create table cust(x int);
    Table created.
    SQL>
    SQL> create procedure proc1
      2  is
      3  begin
      4  update cust set x = x + 1;
      5  end;
      6  /
    Procedure created.
    SQL> show errors
    No errors.
    SQL>
    SQL> create procedure proc2
      2  is
      3  begin
      4  delete cust;
      5  end;
      6  /
    Procedure created.
    SQL> show errors
    No errors.
    SQL>
    SQL> create procedure proc3
      2  is
      3  begin
      4  insert into cust values(0);
      5  end;
      6  /
    Procedure created.
    SQL> show errors
    No errors.
    SQL>
    SQL> select name, type
      2  from all_dependencies
      3  where
      4  type ='PROCEDURE'
      5  and referenced_name = 'CUST'
      6  and referenced_type = 'TABLE';
    NAME                           TYPE                                            
    PROC1                          PROCEDURE                                       
    PROC2                          PROCEDURE                                       
    PROC3                          PROCEDURE                                       
    SQL> exit

  • How to find out the overlapping object?

    Is it possible to find out wheather one pathItem which not in horizontal and vertical position be overlaped or touched any other items like pathitems,textframes etc. in illustrator cs3 active document.
    I got the top, left, right and bottom values of the bounding box for every items. From that i got the overlap of bounding boxes. But i don't know how to find out one pathItem overlaped (or) touched any other items. Kindly advice me the possibilities. I have attached the sample file for review.
    Thanks in advance.

    You always can copy your art and implement "Intersect" in Pathfinder
    using sAIActionManager->PlayActionEvent(...).
    Then check if remained art  != nil.

  • How to find out the PATTERN, GRADIENT and BRUSHED objects?

    How to find out the PATTERN, GRADIENT and BRUSHED objects information in illustrator active document file. And also how to find the CMYK and RGB color information in illustrator file through javascript. Could you please provide any examples.

    I tried using the below code. But for both "cmyk" and "grayscale" pattern it gives only CMYK. Kindly check and advise.
    Code:
    var docRef = activeDocument;
    for(var i=docRef.inkList.length-1;i>=0;i--){
      var inkRef=docRef.inkList[i];
      var inkRefName=inkRef.name;
      alert(inkRefName);
      alert(inkRef.inkInfo.kind);
    Thanks for looking into this.

  • How to find out the save as setting information in illustrator cs3?

    How to find out the save as setting information in illustrator cs3 through programmatically. I saved the file using the setting like Overprint, EmbedAllFonts, IncludeDocumentThumbnails throgh scripting. But i don't know how to find out the save as setting information(Overprint, EmbedAllFonts, IncludeDocumentThumbnails) whether the checkbox true or not through scripting. Kindly advice me.

    Thanks for your response. Some time the operator will set the wrong "save as setting" in the eps file . So i need to check wheather the operator set the correct save as setting or not. If the operator set the wrong save as setting,  i need to inform while running the script. So please advice me how to find out the save as setting information of the active document file, and then inform to the operator if any improper "save as setting" occured.

  • How to find out the Number range object for Incident number

    How to find out the Number range object for Incident number ?
    CCIHT_IAL-IALID
    regards,
    lavanya

    HI, an example.
    data: vl_num type i,
          vl_char(6) type c,
          vl_qty type INRI-QUANTITY,
          vl_rc type INRI-RETURNCODE.
    CALL FUNCTION 'NUMBER_GET_NEXT'
      EXPORTING
        NR_RANGE_NR                   = '01'
        OBJECT                        = 'ZRG0000001'
       QUANTITY                       = '1'
      SUBOBJECT                     = ' '
      TOYEAR                        = '0000'
      IGNORE_BUFFER                 = ' '
    IMPORTING
       NUMBER                        = vl_num
       QUANTITY                      = vl_qty
       RETURNCODE                    = vl_rc
    EXCEPTIONS
       INTERVAL_NOT_FOUND            = 1
       NUMBER_RANGE_NOT_INTERN       = 2
       OBJECT_NOT_FOUND              = 3
       QUANTITY_IS_0                 = 4
       QUANTITY_IS_NOT_1             = 5
       INTERVAL_OVERFLOW             = 6
       BUFFER_OVERFLOW               = 7
       OTHERS                        = 8
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    vl_char = vl_num.
    write vl_char.
    Regard

  • How to find out the object is available or not in BC

    Hi dear friends,
    Suppose I want to design/create a Cube / ODS, before going to create that object, how to find out the same type of Object is available or not in BC with the specification which I want
    Thanks in advance

    Hi Paul,
    at least you need to know the application you are talking about. Then you can goto that particular area and evaluate the content (cubes, infoobjects, infosources, datasources). It will surely give you an idea of the fulfilment of your requirements by the content.
    Siggi

  • How can we find out the info object in a query ....?

    How can we find out the info object in a query is belongs to that particular info cube? If the query is built on a Multiprovider having 4 different info cubes.

    Hi,
    If you have restrictions at the infoprovider level in the RKF then it is coming from that particular infocube.
    Or go to the selection option in the multiprovider...her you can get the mappings of which key figure is populted from which infocube.
    For characteristics you will have to look for identification tab in the characteristics option.
    Thanks

  • How to find out the user-exits?

    hi.
    how to find out the user-exits?
    regards
    eswar.

    Hi,
    *& Report  ZEXITFINDER
    *report  zexitfinder.
    *& Enter the transaction code that you want to search through in order
    *& to find which Standard SAP User Exits exists.
    *& Tables
    tables : tstc, "SAP Transaction Codes
    tadir, "Directory of Repository Objects
    modsapt, "SAP Enhancements - Short Texts
    modact, "Modifications
    trdir, "System table TRDIR
    tfdir, "Function Module
    enlfdir, "Additional Attributes for Function Modules
    tstct. "Transaction Code Texts
    *& Variables
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    *& Selection Screen Parameters
    selection-screen begin of block a01 with frame title text-001.
    selection-screen skip.
    parameters : p_tcode like tstc-tcode obligatory.
    selection-screen skip.
    selection-screen end of block a01.
    *& Start of main program
    start-of-selection.
    Validate Transaction Code
    select single * from tstc
    where tcode eq p_tcode.
    Find Repository Objects for transaction code
    if sy-subrc eq 0.
    select single * from tadir
    where pgmid = 'R3TR'
    and object = 'PROG'
    and obj_name = tstc-pgmna.
    move : tadir-devclass to v_devclass.
    if sy-subrc ne 0.
    select single * from trdir
    where name = tstc-pgmna.
    if trdir-subc eq 'F'.
    select single * from tfdir
    where pname = tstc-pgmna.
    select single * from enlfdir
    where funcname = tfdir-funcname.
    select single * from tadir
    where pgmid = 'R3TR'
    and object = 'FUGR'
    and obj_name = enlfdir-area.
    move : tadir-devclass to v_devclass.
    endif.
    endif.
    Find SAP Modifactions
    select * from tadir
    into table jtab
    where pgmid = 'R3TR'
    and object = 'SMOD'
    and devclass = v_devclass.
    select single * from tstct
    where sprsl eq sy-langu
    and tcode eq p_tcode.
    format color col_positive intensified off.
    write:/(19) 'Transaction Code - ',
    20(20) p_tcode,
    45(50) tstct-ttext.
    skip.
    if not jtab[] is initial.
    write:/(95) sy-uline.
    format color col_heading intensified on.
    write:/1 sy-vline,
    2 'Exit Name',
    21 sy-vline ,
    22 'Description',
    95 sy-vline.
    write:/(95) sy-uline.
    loop at jtab.
    select single * from modsapt
    where sprsl = sy-langu and
    name = jtab-obj_name.
    format color col_normal intensified off.
    write:/1 sy-vline,
    2 jtab-obj_name hotspot on,
    21 sy-vline ,
    22 modsapt-modtext,
    95 sy-vline.
    endloop.
    write:/(95) sy-uline.
    describe table jtab.
    skip.
    format color col_total intensified on.
    write:/ 'No of Exits:' , sy-tfill.
    else.
    format color col_negative intensified on.
    write:/(95) 'No User Exit exists'.
    endif.
    else.
    format color col_negative intensified on.
    write:/(95) 'Transaction Code Does Not Exist'.
    endif.
    Take the user to SMOD for the Exit that was selected.
    at line-selection.
    get cursor field field1.
    check field1(4) eq 'JTAB'.
    set parameter id 'MON' field sy-lisel+1(10).
    call transaction 'SMOD' and skip first screen.
    Regards

  • How to find out the "manufacture date"?

    Hello!
    Can you tell me how to find out the manufacture date of my Satellite A110-334 with the serial "SY6224123K"?
    I need this information for my insurance!
    I found only this link for HDD`s: http://www.storage.toshiba.eu/index_manual.php?pid=220&sid=536&la=en
    But there is no "S" on the first digit!??
    So it is maybe "Y6" which can be November 2006! Is this right?
    Thank you!
    ===========
    This is the information on the link above:
    How to encode a Toshiba Hard Disk Drive Serial Number?
    The Toshiba serial number (S/N) includes details of the date of manufacture. The first digit of the serial number indicates the Month of manufacture and the 2nd digit indicates the Year.
    Example:
    M Y x x x x x x x
    M = Month
    Y = Year
    The month digit goes from 1, for January, through to 9, for September, and then X, Y and Z, for October, November and December.
    Examples:
    2 8 1 7 0 0 0 1 A
    2 = February
    8 = 1998
    3 0 5 4 4 3 0 6 T
    3 = March
    0 = 2000
    X 9 D 7 8 3 3 1 T
    X = October
    9 = 1999
    The remaining digits contain information about factory and production line, and some digits are reserved for a continuously running serial number.

    Hello
    Try with http://gedb.toshiba.com/
    Let me know if you find info you need.

  • How to find out the changes made to a photo in numbers rather than in graphs..

    How to find out the changes made to a photo in numbers rather than in graphs..

    We need to know a lot more to help you. Please provide answers to the questions listed here: "FAQ: What information should I provide when asking a question on this forum?"

  • How to find out the textframe contains "stroke color" (or) "fillcolor"?

    How to find out the textframe contains "stroke color" (or) "fillcolor" via javascript. Kindly advise me with sample.

    I know, this post is quite a while ago, but: This simply does not work for me. Neither for simple PathItems, nor for the characters of a TextFrame.
    Working on: Illustrator CS5.5, Mac OS, Javascript
    Simple example:
    var numSelectedObjects = app.activeDocument.selection.length;
    // If any objects selected: Get fill and stroke color of the first one
    if(numSelectedObjects > 0){
    alert("Fill Color: " + app.activeDocument.selection[0].fillColor + " / Stroke Color: " + app.activeDocument.selection[0].fillColor);
    This returns always CMYKColor, RGBColor or GrayColor, even if there is no Color assigned to the objects stroke or fill!!
    For PathItems there is the attribute ".filled" or ".stroked", which returns "true" or "false" and is reliable.
    if(app.activeDocument.selection[i].filled){ // works fine with PathItems!
    Is there anything similar for Characters? I tried this one, but it does not work (because I think it does not exist):
    if(app.activeDocument.selection[i].textRange.filled){ // does not work!
    I just need to find out, if the characters in a textfield have got a fill or stroke color. Reliable.
    It would be very nice to get help from anybody!
    Thanks a lot in advance!

  • How to find out the node count?

    How to find out the node count in illustrator document through programmatically. Kindly advice me.

    Check DBA_HIST_RESOURCE_LIMIT. Your information will be there.
    Simialr information is available in DBA_HIST_SYSSTAT.
    Look for stat name logons cumulative/logons current - Total number of logons since the instance started/Total number of current logons
    You can joing dba_hist_snapshot with snap_id and give begin_interval_time and end_interval_time to know historic process utilization.
    Regards,
    Sreejith

Maybe you are looking for

  • Help with simple shooter game

    I am doing a school project and no one seems to know how to use graphics, sound, and most importantly KEY AND MOUSE EVENTS. Anyways I can't get my events for the mouse and keyboard to work correctly, so if anyone knows what is wrong or has some sugge

  • Upgrade from 9.2.0.6 to 9.2.0.8

    Hi All, I am trying to upgrade from 9206 to 9208 on Windows 32bit machine. During the analyzing depending I am getting the error as below. "Cetain files which need to reinstalled by Oralce Universal Installer are being used by one or more running ser

  • Is it possible to recover a form that has been inadvertently submitted so the user can continue to finish his input?

    We have recently subscribed to Forms Central and are in the process of creating our first form for commercial use. This form is quite long and hence we have enabled the ability for the user to 'Save' the form at any point and return to it. This works

  • Develop the z reports

    Hi, We have developed the z t.code for assign requisition for material procurement, now client wants for service requisitions also (item category D ), pls any one can help on this

  • "Copy Command" will not close down

    I moved several files from one folder to another and a pop up window named "Copy" came up  with the text "Preparing to move to "EnvX14" underneath. The file transfer bar is completely filled But nothing happens (been like this for two days now). I tr