How to correlate items in Illustrator document in GUI vs scripting objects?

As a novice to Illustrator and Illustrator scripting. I notice that without good knowledge of Illustrator (the GUI and/or scripting), it's a bit tricky to correlate the type of item/object an item is as seen in the Illustrator GUI selecting the item on screen and/or seeing it in the layer's window. Because both of those don't indicate the matching Illustrator scripting item/object type, and I have to guess at what it is (or iteratively/recursively dump all items and see if I can figure out what is what from the dumped items from the script comparing to the info/properties in the UI).
Or is there some mapping feature that will indicate this that I overlooked? If not, how best to correlate?
As some examples:
* how to figure out what type of object text is that we see in the Illustrator document (assume total novice, not knowing specific text types in Illustrator)
* how to figure out whether a certain item in a layer is a page item, path item, or both? I can't tell.

I assume this is a continuation from your previous thread?
https://forums.adobe.com/thread/1765707
The only thing I have ever seen (regarding a visual reference of any kind from Adobe) is this regarding the Application SDK:
http://cssdk.s3-website-us-east-1.amazonaws.com/sdk/2.1/docs/WebHelp/app_notes/AI_obj_mode l.htm
[^ Pretty impressive (insert sad/pathetic) coming from the market leader in graphics software huh?]
Anyway, it looks like you are at a crossroads of needs and wants and may have to fulfill each of these yourself due to their lack of current existence. ;-)

Similar Messages

  • How to chek the adobe illustrator document version.

    hi all,
    Can anyone guide me how to check the version of the adobe illustrator document.(currently active document).
    I tried using app.version which gives the version of adobe illustrator application i.e 12.0.0 for CS2.
    But i want the version of the illustrator document.I tried app.activeDocument.version which gives me the undefined value.
    Any suggestion on this ?????
    Also please help me on the script for finding out the font type used in the document. e.g. times new roman,arial new etc.
    thanks in advance,
    Sanat

    owh dear
    var v_fl = "/d/_temp/3ds_eles_msh.ai"
    function getFileVersion(v_flToOpen){
        var v_fileObj = new File(v_flToOpen);
        var vrs = null;
        v_fileObj.open("r");
        try{
            while(v_fileObj.tell() < v_fileObj.length) {
                var line = v_fileObj.readln();
                //alert(line.reflect.methods);
                var idxOf = line.indexOf("Creator: Adobe Illustrator(R)");
                if(idxOf > 0) { vrs = line.substring(idxOf+30, line.length);}
        catch(ex) { alert("There is some sort of strange error ... damn, and all was going so well");}
        finally { v_fileObj.close(); return vrs; }
    var v_fileVersion = getFileVersion(v_fl);
    if(v_fileVersion != null) {
         alert("Version of the file is:" + v_fileVersion);
    } else {
         alert("Now seriously did you really selected an .ai file? If so, something strange happened!");
    cheers;

  • How to add a file in Document Set using ECMA script?

    Hi,
    I want to upload a particular file into Document set using ECMA script.
    I can do it easily through C# but unable to achieve the same using ECMA Script.
    Any pointers or piece of code will be helpful.
    Thanx in advance :)
    "The Only Way To Get Smarter Is By Playing A Smarter Opponent"

    The following blog post provides a way to create a document set using ECMA:
    http://blogs.msdn.com/b/mittals/archive/2013/04/03/how-to-create-a-document-set-in-sharepoint-2013-using-javascript-client-side-object-model-jsom.aspx
    The following blog post provides a way to upload files into a document set using CSOM:
    http://www.c-sharpcorner.com/Blogs/12139/how-to-create-document-set-using-csom-in-sharepoint-2013.aspx
    See if you can follow the logic in the CSOM example to apply it to ECMA. Let me know if you have specific problems with it.
    Dimitri Ayrapetov (MCSE: SharePoint)

  • Stupid question: How do I set an Illustrator document to 4:3 aspect ratio?

    Is this as simple as make a 4" wide X 3" tall rectangle.... and then proportionately scaling it up from there?  I know this is an ignorant question... but thanks for confirming my assumption... or providing accurate instructions.
    Thanks!  Have an excellent day.

    You can do it that way and then once you have the size you want go to Object>Artborads>Covert to Artboards.
    Or in the New Document dialogue simply enter the dimensiions you need it is a pretty simple equation to figure if you know one dimension.
    Just in case File>New gets you the New Document dialog

  • How can I convert a screenplay document into a multicolumn script?

    Is there a way to import an existing script into the multicolumn format?

    You can use Adobe Acrobat or Adobe CreatePDF.

  • Object array - how to add items?

    Hello!
    I have little problem, how to add item to array, to get something like this:
    Object[][] someObject = {
    {"1", "2"},
    {"4","5"}
    };From this:
    Object[][] someObject = {
    {"1", "2"}
    };? Thanks in advance!

    Once you allocate an array like that, you can't
    resize it.
    Object[][] someObject = {
    {"1", "2"}
    };creates an array with size [1][2]. You can't makeit
    any larger. You can create a new Object[][]
    with the new size, copy the elements into the new
    array, then add your new objects in the newposition.
    or even better use arraylistExcept that he's using this for a JTable, so the best he could do is a Vector. Yuck. :)

  • How to Create PDF from Illustrator CS3 by using applescript?

    Hi Guys,
    Do some one knows how to create PDF from Illustrator CS3 by using apple script. If know, please give me the scripting.
    HARI

    Have you tried File>Scripts>SaveDocsAsPDF? There should be a folder of sample scripts installed in your AICS3 folder and a folder of documentation which contains an Illustrator AppleScript Reference which has examples.

  • How to Get Choices as a Dropdown from a different Column for the same Item In a Document Library?

    Hello All,
    I was trying to see if there is any way that we can get the choices for a Field from another filed in the same item in a Document Library.
    To be specific.
    I have Created a Project Document Set, Which has a Column called "Project Members" where all the members will be listed. This will be inherited to all the documents in that Project Document Set. This is used to grant Permission using Workflow.
    I also have "Document Members" Column(This is only for Documents) who will be given Edit permissions to that Document using a Workflow. This can be any type of column(choice, People or Group etc) As long as I can select multiple values.
    I am looking for a way to get the "Project Members"(Values or Users) as choices for "Document Members". I know this is possible in the List as you can customize in the InfoPath Form. But not sure in the Document Library.
    Document Members can only be the members from the Project Members, In order to grant granular Permissions for the project And Documents using a Workflow
    Document Library
    Project Document Set Name
    File Name
    Project Members
    Document Members
    Project A
    User1;User2;User3
    Doc1
    User1;User2;User4
    User1;
    Doc2
    User1;User2;User5
    User1;User2;
    Doc3
    User1;User2;User6
    User1;User2;User3;
    Project B
    User5;User6;User7;
    Doc1
    User5;User6;User7;
    User7;User5
    Doc2
    User5;User6;User7;
    User7;User5
    Doc3
    User5;User6;User7;
    User5;User6;User7;
    Thanks for your time.

    >
    Jenny Karunakaran wrote:
    > Hi Jung,
    >
    > Thanks for the reply. But I dont know how to assign value set to this attribute(i.e. Context atribute to which filter value property is bound). Can I use a supply function for this ?
    >
    >
    > Regards,
    > Jenny
    No. A value set and a supply function are two completely different things. You use this Context API to populate the value set for an attribute:
    IF_WD_CONTEXT_NODE_INFO=>SET_ATTRIBUTE_VALUE_SET
    Value Sets are also how ByKey UI elements (like the DropDownByKey) are built.  Here is a help document that discusses value sets - but in the context of the ByKey UI elements.  The process is the same for creating the value set however:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/bb/69b441b0133531e10000000a155106/frameset.htm

  • Need FM/BAPI to get how many line items per given FI document...

    Hello Experts,
    IS there an available FM or BAPI to get how many line items there is for a given
    FI document? We are avoinding BSEG because of the performance.
    Hope you can help me guys. Thank you and take care!

    Hi,
    Not sure if there is a specific FMs or BAPIs whose specific purpose is to just count FI document lines. But you can use a number of FMs to read an FI document.
    i.e. FI_DOCUMENT_READ - pass the document keys (BUKRS, BELNR, GJAHR) and retrieve the T_BSEG table to get the document lines. Then you can just use DESCRIBE statement to get the number of lines in T_BSEG.
    Also, based on experience, I never had any problems with BSEG as long as I am providing the complete keys for an FI document (BUKRS, BELNR, GJAHR). But if you are trying to avoid BSEG, you can use the secondary index tables like BSIS , BSAS, BSAD, BSID, BSIK, BSAK to improve performance.
    Regards,
    Oscean Tortona

  • How do I Select all the items in a document based on SpotColor?

    I'm trying to select every object with the color "CutContour"
    So far I've been trying:
    myDoc.selection = myDoc.spots.getByName("CutContour"); 
    I guess this obviouslly wouldn't work though because myDoc.selection is looking for an array of objects.
    However, I can't figure out how to loop through all the objects in the document and check to see if they contain the SpotColor.
    Any help would be incredibly appreciated!
    EDIT:
    I want to use the Select > Same > Stroke Color , but I heard that using that in Javascript isn't available unless you have CS6 (which I currently don't). Is it true that accessing menu items through scripting is a feature in CS6?

    Thanks for clearing some of that up for me!
    I only need to select path items, and I see that if I do something along the lines of:
    var objects = myDoc.pageItems;
    I can get an array of all the items in my document. However, I'm trying to figure out where to go from here, but the process seems overly complex. I want to loop through objects and see if they are pathitems, and then check to see if they have the color I'm looking for, but I can't find the strokeColor property in the Javascript reference. Also, what about compoundPathItems (closed paths)? If I check for PathItems, will I also get CompoundPathItems?
    EDIT:
    This is what I have so far, however, it is not working correctly /:
    var myColor = myDoc.spots.getByName("CutContour");var arrObj = [];for (var i = 0; i <objects.length; i++) {  if (objects[i].typename == "PathItem" && objects[i].fillColor == myColor) {    arrObj.push(objects[i]);    objects[i].move(layer_Cut, ElementPlacement.PLACEATBEGINNING);  }}
    See, the whole goal is to move all objects with the color "CutContour" to

  • How to add Service item in  PR Document using BAPI_PR_CHANGE

    Hi Folks,
    I am using BAPI_PR_CHANGE to change existing purchase requisition document. By using this FM, i am able to add new item in PR document.
    Now my requirement is to add services and limits at item level details.
    But when i saw the parameter list of this FM, i am not able to find any parameter where service details or limits can be passed.
    So does it mean that, its not possible to edit service details at item level of PR by using  FM BAPI_PR_CHANGE?
    Or if yes then how can we do it.
    If No, then what could be the alternative to change the service details of the item.
    Regards
    PG
    Edited by: PG on Aug 30, 2010 6:32 PM

    Hi,
    I just realised that, this question can be asked in specific forum of MM.
    Regards
    PG

  • Illustrator document with positive photoshop (.tif, .psd) file prints negative. How do I fix this?

    I placed a positive grayscale photoshop file (.tif, .psd format) in an illustrator document that I painted in a spot color, when I print it, it outputs as inverse, negative. How do I fix this problem. It looks fine on the screen, but when I print it prints in negative. Is there some setting in photoshop or illustrator to fix this. Please advise
    Joe

    okay I figured out how I can get it to print correctly. I discovered the problem is when I paint the photoshop file in a spot color (pantone, gcmi), the file prints in negative or inverse of the image, but if i paint it in cmyk equivalent of the spot color i want then it prints fine.
    Thanks all for your help

  • Create a counter(in a query) by how many unique items are in a document num

    Hi,
    Is there a way for me to create a counter(in a query) by how many unique items are in a document number?
    If you look at the bold amounts below they have two unique item numbers 3 & 11. Because of that data is being duplicated in the InfoSet. The Subtotal needs to be 13500 instead of 27000. The two subtotals above are correct. I was thinking if I can create a create a counter(in a query) by how many unique items are in a document number (in this case it would be 2). And then if i divide Quantity by that counter, i shall get the correct value of 13500.
    How can i do this?
    Thanks
    Doc Num                  Item #       Quantity
    5900001759     11     2,700
    5900001759     11     5,400
    5900001759     11     2,700
    5900001759     11     2,700
    5900001759          13,500
    5900001890     7     2,700
    5900001890     7     5,400
    5900001890     7     2,700
    5900001890     7     2,700
    5900001890          13,500
    5900002176     3     2,700
    5900002176     11     2,700
    5900002176     3     5,400
    5900002176     11     5,400
    5900002176     3     2,700
    5900002176     11     2,700
    5900002176     3     2,700
    5900002176     11     2,700
    5900002176          27,000          
                             54,000

    Create a New Calculated Key Figure
    From the context menu for the Formula Variable, choose New Variable
    Choose the Processing type as Replacement Path
    In the next screen, select the Characteristic Info Object based on which the number of documents is to be displayed in the report (For example: Document Number / Order Number).
    Choose Next.
    In the Replace Variable with drop down box, choose Attribute Value.
    In the Attribute drop down, select Characteristic Reference (Constant 1).
    Choose Next.
    On the Save Variable page, an overview of the settings made for the variable will be displayed.
    Confirm the entries and Choose Finish.
    Open the formula variables directory and use Drag & Drop to transfer the formula variable
    To avoid the warning message, the formula variable is multiplied by 1
    The most important step here is to set the Time of Calculation to After Aggregation in the KF properties.
    (by Default the Time of Calculation is set to After Aggregation)
    The new calculated key figure is available under Calculated Key Figure in the Key Figure directory, and can be included in the query definition using Drag & Drop.
    Hope this help
    Rgds

  • In iCloud preferences when I deselect an item, e.g. documents I get a message saying the info in documents will be taken off my mac and kept in iCloud. I would rather have in on my mac and not in iCloud. How can I keep my data?

    Macbook pro, os 9.4.1.
    In iCloud preferences when I deselect an item, e.g. documents I get a message saying the info in documents will be taken off my mac and kept in iCloud. I would rather have the info on my mac and not in iCloud. How can I keep my data on my mac?

    My mistake, my OS is 10.9.4.
    Thank you for your reply.
    I guess, I really don't understand iCloud and how files are stored and where. I gather when I was asked to set it up I should have declined. Anyway, it looks like some of my files are stored in the cloud. If I shut off "documents" in the preferences it will remove those docs from my macbook, but they will remain in the cloud and I could get access to them for another computer if I set it up.
    I also gather to avoid this, I have to, on a file by file basis, save them to my mac and then they will be on my mac. What I don't get, is that these files must exist on my mac because I can edit it without being connected to the internet. Maybe those files I see when disconnected from the internet are on my mac and I wouldn't be able to see cloud files unless I was connected to the internet.
    My concern is that when I deselect "documents" in the iCloud preferences it warns me that those documents on my mac will be removed from my mac. I am afraid to deselect "documents' or "calendars" as a result.
    If I seem confused, I am. Please don't feel obligated to reply if my message is too muddled.
    LR

  • How to create seperate color channel for print of illustrator document

    Hi,
    I need to print a document with partial UV-spots, and cannot figure out how to make my Illustrator document ready for print!
    The online print center guides me to:
    create a 'seperate print channel' for the specific elements in my document i want covered, with either a '5th color or a special color' set for 'over-print and 100% color'.
    Can anyone help?
    Thank you!

    Draw the spots you want to use and fill them with a spot color.

Maybe you are looking for

  • My ipod is registering as a camera, and i cannot find it in itunes

    I use my iPod touch on both a pc and a mac, however as it is formatted to my pc I expected it to work with iTunes without any problem. However, when I plug my iPod into my pc, I can only locate it as 'Apple Camera,' I cannot access any of the files o

  • Port of the TNS Listener for the second SAP system

    Hello! I had problems during the installation of the second SAP system with second Oracle DB on the same host (OP is SOLARIS). The error occurs was faced with TNS Listener. (> error: TNS Listener is started) Which settings are applied for the TNS Lis

  • Import asian file name files

    I am trying to import some old songs with asian file names and asian characters in the meta tags. itunes won't import them. any way around this? There are japanese, chinese, and korean characters if that makes any difference.

  • Controlling JAR contents

    Is there a way of controlling what Workshop puts inside an EJB JAR (i.e. preventing it to include stubs and skeletons)?

  • Logic for Header data required

    1.I have a Sales Cube. 2.i have field called Header Data. 3.I need to populate Header data by calculating Net Order amount based on Sales order no and Sales order item details. For Example:-                      Sales order  ,  Sales Item Data    ,