How to find out that an art item has spot color using script?

Hi all,
I have a number of art items on a document, some of them are filled with spot colors and some of them are with process color.
Is there any method by which I can find out which color type(spot or process) is applied to the selected art item?
Thanx in advance...

Thanx for the reply carlos....
But I am not able to use "icolor.typename". There is nothing like "typename" showing in the properties.
I am using it like this:
var app:com.adobe.illustrator.Application = Illustrator.app;
                                        var pathArt:PathItem;
                                        var allPaths:PathItems           = doc.pathItems;
                                        if ( app.documents.length > 0 && doc.pathItems.length > 0)
                                                       var colorValue:com.adobe.illustrator.Color;
                                                       //Fill color to the selected object.
                                                       for (var i:int = 0; i < doc.pathItems.length ; ++i)
                                                                      pathArt = allPaths.index(i);
                                                                      if(pathArt.selected)
                                                                                     colorValue = pathArt.fillColor;
                                                                                     trace(colorValue.typename);              //But colorValue doesn't show any property like "typename".
Do am i missing some thing?
Thanks...

Similar Messages

  • How to find that art item has spot color?

    Hi all,
    I have a number of art items on a document, some of them are filled with spot colors and some of them are with process color.
    Is there any api or method by which I can find out which color type(spot or process) is applied to the selected art item?
    Thanx in advance...

    I believe this should do the trick:
    bool HasFillSpotColor(AIArtHandle handle)
       bool result = false;
      AIPathStyle pathStyle;
      AIErr error = sPathStyle->GetPathStyle(handle, &pathStyle);
      // check error
      if (pathStyle.fillPaint) {
        AIColor color = pathStyle.fill.color;
        if (color.kind == kCustomColor) {
           AICustomColor customColor;
          error = sCustomColor->GetCustomColor(color.c.c.color, &customColor);
           // check error
          result = customColor.flag & kCustomSpotColor;
      return result;

  • How to find out that particular structure is used in which tables

    Hello Friends,
    Most of the times through techinal information we come to know the table name for a particular field.And in se16 when i give that table name than system says its structure and not the table.So in se11 when i give that structure name in database table field, its shows all the field in that structure, but not the data stored in that field.
    So my question is how to find out that particular structure is used in which tables,so that i can view data stored in that structure?
    Thanking you guys in advance.
    Regards,
    Jitendra

    Dear,
    When you click on the technical information it will give the structure name and field, double click on the structure and it will take you the display structure screen, there you will have the where-used List icon (Ctrl + Shift + F3) at the top , click on that and it will show the options, select Database tables and execute, it will give the tables related to the structure, you can explore the list of tables and find where your required field is stored in them.
    Thanks & Regards,
    Vijaya Bhaskar A

  • How to find out if SQL execution plan is changed proactively using job/grid

    Hello,
    Can you help me on How to find out if SQL execution plan is changed proactively using job/grid control?
    Thank you..
    -

    The answers so far are supposed to show ways how to see that a plan changed after the fact - that is not really proactive but that was the question.
    A way to see a plan change proactively would be to create a SQL Plan Baseline for the SQL statement with the 'good old' plan and then watch DBA_SQL_PLAN_BASELINES for new rows with that SQL_HANDLE which would indicate that a new execution plan was computed - although not yet used.
    Kind regards
    Uwe Hesse
    "Don't believe it, test it!"
    http://uhesse.com

  • How to find out that the card in a given NIDAQ slot is a DSA card?

    In the description of DAQ_Op(...) function in the traditional NIDAQ function reference one reads:
    "buffer" is an integer array. "buffer" has a length equal to or greater than count.
    When DAQ_Op returns with an error number equal to zero, buffer contains the acquired data.
    For DSA devices, buffer should be an array of i32. These devices return the data
    in a 32-bit format in which the data bits are in the most significant bits.
    Question 1: How to find out programmatically that the card in a given NIDAQ slot is a DSA card?
    Question 2: How many MSB carry the information? How do I find out bit-ness of the card (programmatically)?
    The obvious solution to create and keep updated the table/fil
    e with the data for all existing DAQ cards is unacceptable. This could be maintained by NI itself, but not by 3rd party developpers, like me.

    Bryan, thanks for your answer.
    I hope that my NIDAQ-wish-list will not only reach NIDAQ developers but some of it will be implemented in the next versions of NIDAQ.
    I should say that I am quite pessimistic because I was sending similar requests via German support few YEARS ago and I am still even do not know whether they reached developers or not. Even if yes, the present NIDAQ still does not have these functions and this means that NI takes 2..4 years to react on the feedback.
    At the moment I have no choice, and I do maintain self-made info file (nidaq.ini). But beleive me, it is a pain in the @ss to scan help files and manuals of the DAQ cards which I've never seen just to include info in nidaq.ini. And when my customers of a brand new NIDAQ ca
    rd call and wonder why the card is not reacognized by my application correctly, I tell to them that this is basically fault of NI. Because NI provides no way to get card info. I am doing my best analysing error codes, but it does not help in all cases. Sorry, guys, but you left no choice to me.
    As for NIDAQmx, this is not a solution either. I am not going to rewrite my existing and working rather big application. It could be a good suggestion for those who just starts developing a new applications from the scratch, but not for those who almost finished it. Even for those who begin now, NIDAQmx may not be a good choice, because, as I saw in this forum, it does not support all cards that are supported by NIDAQ. It also looks like that instead of improoving, developing and fixing NIDAQ, NI dicided to change API completely. It is not yet clear to me whether NIDAQmx is supposed to substitute NIDAQ in the future or not. If not, I would concentrate on improoving trad. NIDAQ. If yes, it wou
    ld be a disaster for many developers. :-(
    Anyway, I hope that the interaction between NIDAQ team and application developpers will be improoved, and we will see some results of this feedback.

  • How to find out that recovery is sufficient

    HEllo all,
    Lets say I am running recovery of database (no RMAN) and I apply few redologs. How can I find out that recovery done on datafiles so far is sufficient and datafiles are in consistent state so I can open DB w/o problems? I mean , I know that I would get error in case I try to open DB and datafiles need more recovery, but I would like to see some kind of proof on my screen that recovery is not finished (probably some v$ view or something ).
    Or it does not have to be an option that I am running recovery of DB, it can be that my DB is running and there is some failure which will require media recovery . Where can I see expect logs that I need to recover because of this or that does not match (I guess in some v$view for datafiles will be mismatch of some numbers comparing to v$controlfile or v$database view.....or??? )
    I hope you guys got it what I mean :)))if not just let me know I'll try to explain it better
    thx

    You claim to have done an Offline Backup. And yet, Oracle asked for Recovery. Then there might be something wrong with your backup.
    Here I do a normal shutdown of the database and when I MOUNT, I see that the files are NOT Fuzzy :
    ora10204>sqlplus '/ as sysdba'
    SQL*Plus: Release 10.2.0.4.0 - Production on Thu Aug 27 23:24:40 2009
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  880803840 bytes
    Fixed Size                  2087992 bytes
    Variable Size             197133256 bytes
    Database Buffers          675282944 bytes
    Redo Buffers                6299648 bytes
    Database mounted.
    Database opened.
    SQL> select file#,fuzzy, checkpoint_change#, to_char(checkpoint_time,'DD-MON HH24:MI:SS') from v$datafile_header order by 1;
         FILE# FUZ CHECKPOINT_CHANGE# TO_CHAR(CHECKPO
             1 YES            2063978 27-AUG 23:24:48
             2 YES            2063978 27-AUG 23:24:48
             3 YES            2063978 27-AUG 23:24:48
             4 YES            2063978 27-AUG 23:24:48
             5 YES            2063978 27-AUG 23:24:48
    SQL> shutdown
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area  880803840 bytes
    Fixed Size                  2087992 bytes
    Variable Size             197133256 bytes
    Database Buffers          675282944 bytes
    Redo Buffers                6299648 bytes
    Database mounted.
    SQL> select file#,fuzzy, checkpoint_change#, to_char(checkpoint_time,'DD-MON HH24:MI:SS') from v$datafile_header order by 1;
         FILE# FUZ CHECKPOINT_CHANGE# TO_CHAR(CHECKPO
             1 NO             2064344 27-AUG 23:25:36
             2 NO             2064344 27-AUG 23:25:36
             3 NO             2064344 27-AUG 23:25:36
             4 NO             2064344 27-AUG 23:25:36
             5 NO             2064344 27-AUG 23:25:36
    SQL> alter database open;
    Database altered.
    SQL> select file#,fuzzy, checkpoint_change#, to_char(checkpoint_time,'DD-MON HH24:MI:SS') from v$datafile_header order by 1;
         FILE# FUZ CHECKPOINT_CHANGE# TO_CHAR(CHECKPO
             1 YES            2064345 27-AUG 23:28:49
             2 YES            2064345 27-AUG 23:28:49
             3 YES            2064345 27-AUG 23:28:49
             4 YES            2064345 27-AUG 23:28:49
             5 YES            2064345 27-AUG 23:28:49
    SQL> The MOUNT after a NORMAL Shutdown that would have been used for an Offline Backup, shows "NO" for Fuzziness of datafiles.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • How to find out that a record is empty or null

    hi
    how can i find out that a record is empty or null.
    in other languages when a object or record is not initialized it will be null.
    after initialization how can i find out its values are null. so far i tried this
    declare
    v_r_emp emp%rowtype := null;
    BEGIN
         if (v_r_emp is null) then
         dbms_output.put_line('record is not initialized');
         end if;
    END;
    it seems in plsql we can assign null but cannot compare it with null clause why? if we are able of assign null we must should about to compare it with null too.
    also how record can be made empty. how can we find out that a record variable is empty
    please help me to understand the concept
    thanks

    You need to check every element in the record.

  • How to find out, that sales invoice is paid

    Hi,
    does anybody some hint, how to easy find out, that sales invoice is paid already (2007). I need to do this check for list of invoices (thousands) - so Im looking for some query.
    I know, how to find it through oinvoice object, from bank payment, internal reconciliation, ..., but I think that there must be some internal view or SP which is in use for SAP for receiving this information (calculating variables). I dont need informations about payment dates, Im looking just for info, that invocie is paid already. Maybe some record in JE linked to invoice?
    thanks

    We need to get the Invoice Paid Amount. Our customer use Bill of exchange frequently , so we are looking into OBOE for payment info, because Invoice Paid Amount (OINV.PaidToDate) does not reflect current payment info when there are Bill of Exchanges.
    Are we wrong?
    Does anybody know an easy way gather this information?
    For more detailed info about the way we are doing this see Field BoeType - OBOE

  • How to find out that the database table is empty

    Hello all,
    How to find out in ABAP in the best performant way, that the database table is empty. The table could have several milions of records or be empty. SELECT count( * )  looks to me as not the best way.
    Kind regards
    Radim Benek
    Moderator message: FAQ, please search for previous discussions of similar topics.
    example: "SELECT SINGLE" vs. "SELECT UP TO 1 ROWS"
    Moderator message: Please Read before Posting in the Performance and Tuning Forum
    Edited by: Thomas Zloch on Aug 11, 2011 5:06 PM

    Hi,
    One approach is:
    check lt_mytable is initial.
    This will be true if there are no lines.
    Another:
    describe table lt_mytable lines lv_count
    if lv_count = 0.
    "Empty
    Thanks.
    Anitha a

  • JCA: how to find out that import parameter is structure?

    Hello,
    I'm using JCA to obtain import parameter of some function (com.sapportals.connector.metadata.functions.IParameter). Now, I'd like to switch program flow depend on kind of this import parameter (scalar, structure, table). Especially, I'm interested in finding out that import parameter is structure. In API I was only locate getStructure() method in IParameter. I tried to compare with null value, but it didn't solve my problem.
    Best Regards,
    Josef Motl

    I have come along this post so many times that now that I have solved it myself I will have to reply to it, even after 5 years.
    MappedRecord output = (MappedRecord) ix.execute(ixspec, input);
    //Now we want to read the output.
    //If we deal with a structure, we get an IRecord Object
    IRecord addressStructure = (IRecord) output.get("ADDRESS");
    //Otherwise we would get an IRecordSet Object (Field)
    I hope it will help all those searching as well.
    BR
    Sigi

  • How to find out if your BB line has been capped?

    Is there somewhere I can go to find out if my BB line has been capped? I had an email form BT about a month ago warning me I might exceed my download limit. In the end I did not exceed my limit for the month. But it was shortly after that my BB speed was cut in half and has remained that way ever since. I have had 2 engineers out who can find nothing wrong with the exchange, the line or the equipment in my house. Despite at least 3 SNR resets, my IP profile has been fixed at 750k for the whole time. My IP profile was 2000k or more before the speed was cut.
    I just wonder if there is anyway to tell if your BB line has been throttled.

    "it is very likely a local noise issue that your line is picking up it is not a line fault this is is why bt cannot find the fault the problem could be caused by many things microwaves central heating pumps computer monitors poweresupplies and many similar items"
    If there is a local noise issue as you suggest, How would one detect such a thing? You can't just switch everything off in a house and leave it for 3 to 5 days to see if the BB speed increases. Surely the tests the the engineers did when they came out to see me would have detected any noise on the line when they tested the line.
    The thing I find most frustrating is BT don't even seem able to admit I have any sort of problem at all. The fact I have had a stable connection for years and then suddenly it drops by half overnight seems not to be considered a problem. I think I might just change to another ISP. I really don't think it can be any worse than this.

  • How to find out if someone's phone has I cloud backup?

    Is there a way to find out if an Apple user has iCloud backup on their phone if you have their Apple ID and user password? My daughter has been up to something very suspicious lately and I would like to monitor her phone. But I need to know she has iCloud backup. So someone could please let me know if there's a way to figure this out without having access to the phone because she lived in a different state that would be wonderful thank you

    Sounds to me you're up to something very suspicious.

  • How to find out if a long String has a "subString" twice or more.

    I need to find out if a long String has the same number twice or more.
    I need to look matches for numbers running from 000, 001....999 and if a number is found twice or more, return that number and lines there were found.
    example String:
    -;000 ; 1 ; 2006-12-11 ; -; job;
    x;001 ; 2 ; 2006-12-11 ; 2006-12-12; do this
    -;002 ; 3 ; 2006-12-11 ; -; work
    -;003 ; 0 ; 2006-12-11 ; -; some
    -;004 ; 2 ; 2006-12-11 ; -; thing
    x;005 ; 1 ; 2006-12-11 ; 2006-12-11; reads
    -;003 ; 0 ; 2006-12-11 ; -; here
    Should return from example String:
    003 at lines 4 and 7
    Any ideas?

    So there are newlines in the String?
    You could use a StringTokenizer to break the String into lines, then searching on each line if it contains any of the search strings. (You need to clarify if a line can contain more than one search string).
    Probably you should use a Map<String, Integer> to record the searchcounts.
    Or an int[] Array if you are really sure that the Strings you search for really are numbers.
    Another option is to use:
    LineNumberReader lnr = new LineNumberReader(new StringReader(searchString));This will save you from explicitly having to take care for the line number.
    In any case your example looks like the individual lines are semicolon separated fields and the numbers you search for always are in column two.
    So after breaking up the original String in lines, you could use another StringTokenizer to break up the line in fields.

  • How to find out if a query(report) has a role.

    I want to find out if a query(report) has a role and what the role name is.
    Do anybody know a function or a table?

    goto SU01 , give ur username , click on roles tab , and click F1 on role field , then goto technical attributes , and use where-used-list of that dataelement , u will lot of tables on Roles and its attributes
    You can look up AGR* tables in SE16
    Please give me reward points if it is useful.
    Thanks
    Murali Poli

  • How to find out that position is a chief position or not?

    Hi All,
    Kindly let me know to find out the position is a chief position or not?
    I have to display various positions with Y if it is a manager and N if it is not.
    Thanks!
    Sachin

    Hi
    1. tcode PPOME
    2. select the position by double click
    in the overview position, chief position will be differentiate by symbol a person with red clothes and wearing a hat
    in the tab "Basic Data", chief position can be defined if the "Head of own organizational unit" is being ticked/flagged.
    Head of Organizational Unit
    If you flag this field, the position becomes the chief position of the organizational unit that it belongs to. When this position is displayed again, it is automatically flagged and is automatically the chief position.
    Technically, a relationship (A/B 012) is created between the organizational unit and the position.
    Field Name : OMLEADER
    Data Element: HROMLEADER
    hope this info helps you.
    best regards,
    dhenny muliawaty (pei pei)

Maybe you are looking for

  • Error while running EPMA Batch client in 11.1.1.3

    I am using the following syntax to refresh a plannin app Execute Deploy Parameters(ApplicationName,InstanceName,ApplicationServer,HubProject,waitforcompletion,purgeTransactions,deployOption,datasourceName,RefreshOutline) Values ('Appname','PLANNING',

  • ORA-01722: invalid number caused with SQL using bind variable

    Hi, Im am hoping that someone can help me resolve a problem thats only just services and is being experienced on quite a few clients. our application uses C++ exes and makes OCI calls to the database. what has happened in the last week or so, there h

  • LACP using 2x 10G ports not showing 20G?

    I currently have etherchannel configured to 2x 10g ports. Cat_6509#sh run int ten8/1 Building configuration... Current configuration : 156 bytes interface TenGigabitEthernet8/1  switchport  switchport mode trunk  channel-group 42 mode desirable end C

  • Ebay photo up-loader

    The eBay photo up-loader (both of them) has stopped working in FireFox. I click on the links and nothing happens. The up-loader does work in IE.

  • How can I TEMPORARILY disable built-in microphone?

    I like to record music from the web on my Touchsmart 310-1145UK (BTW this is 3 months old but HP don't recognise this model number so I can't contact customer support on-line!!!  It is a 20 inch screen all-in-one PC). I use Audacity to record, this w