How to copy swatches between documents?

Hi,
I've been trying for a while to copy all swatches from a document to another. The goal is to create a new document with the same swatches as a source document.
The most obvious solution to this, would be to use the duplicate command, but I can't seem to get it working properly. Something similar to the following line produces the error "clone not allowed":
duplicate swatch 1 from doc1 to doc2
I've have also tried this variant:
repeat with i from 1 to count of doc1's swatches
     set swatchProperties to properties of swatch i of doc1
     set swatchProperties's container to doc2
     make new swatch in doc2 with properties sProp
end repeat
This oddly enough works in the first iteration, but then spits out the error: "Adobe Illustrator got an error: Invalid type".
I thought this would be an easy task, and I still believe it somehow is and I'm just doing it wrong.
Anyone?
Thanks

OK,
Now I actually managed to do it:
repeat with i from 1 to count of doc1's swatches
     set newSwatch to make new swatch in doc2
     set newSwatch's name to (name of swatch i of doc1) as string
     set newSwatch's color to color of swatch i of doc1
end repeat
It would it still be nice though if someone could tell me how to use the duplicate command.
Thanks

Similar Messages

  • HOW TO COPY STANDARDTEXT BETWEEN CLIENTS

    Hi All,
    HOW TO COPY STANDARDTEXT BETWEEN CLIENTS. I WANT TO COPY BETWEEN 200 TO 110 CLIENTS.
    Thanks & Regards,
    suman.

    Hi Suman,
    Check below points.
    2. goto se09 and create a new
    customizing rqeuest.
    3. after that
    in the object list,
    go in edit mode
    and a new window will come
    where u can add the objects(in table control)
    4. there u put
    program id = R3TR
    object type = TEXT
    object name = TEXT,YHRS_FNF_LTR,YHR1,E
    where
    YHRS_FNF_LTR = name of standard text
    YHR1 = TEXT ID
    E = english language
    How To Transport STANDARD TEXTS??
    Transporting standard text
    Thanks
    Ramakrishna

  • Indesign CS6 crashes when copying pages between documents

    I have two documents and I want to copy 28 pages from one to the other. Indesign crashes on any form of attempt. What I tried so far:
    1. Copy pages per drag and drop, ID would then ask where to insert, I selected "at the end". Crash.
    2. Save both documents as IDML, then opened the IDMLs, saved as INDD (to erase possible document structure corruptions), closed and opened both INDDs again, then drag and drop. Crash.
    3. Selected the 28 pages from the source document, selected "Insert pages" from mini menu of pages panel, then set what pages to use, where to put ("At the end") and target (the other document). Crash
    4. Tried both, "Insert pages" and drag 'n drop, with different target position "At the beginning". Crash.
    5. Saved a copy of the source document, reduced it to contain only those 29 pages I want to copy, then drag and drop to target. Crash.
    6. Tried vice versa, means copy all target document's pages to the source document. Crash.
    Any idea how I can get the pages over to the target? There is unfortunately no "Append pages from file" in the mini menu.
    TIA!

    I would try another one with each of these documents.
    Create a new document with 2 pages.
    Name the master pages so, that their names are not conflicting with neither of these 2 document’s masters.
    Delete every style in that empty document, also any swatch
    No drag the pages of the first document into such an empty document.
    Do the same step 1 to 4 with the second document in a NEW empty document.
    Now you have 2 new documents. Take care that no conflicting master names appear.
    In each of these documents create in each style panel a folder and drag all used styles in that folder.
    Save both documents
    Try again to insert the pages of both documents.
    Otherwise, it this does not work out, could you send me via private message the files or a link. I would check it with a Debugging Version of InDesign (InDesign DEV) I can use to find errors.

  • How to move pages between documents WITHOUT elements shifting

    Hi everyone! My team members and I are so frustrated over what I think should be a really simple issue: copying/moving/dragging pages between documents and NOTHING CHANGING.
    Whenever we move pages between documents (which we have to do on a monthly basis - moving content into client branded files), at least ONE thing will shift and it usually has to do with overset text and/or text wrap. We have googled our brains out. We've tried everything on this list How-To: 10 Techniques for Copying Pages Between InDesign Documents | CreativePro.com and in the various Lynda tutorials we've looked at. We have combined our powers and still can not solve this problem so now I come to you, hoping that you can please please please help us figure out this issue before one of us throws a computer out the window.
    We have this one document. And this is what one of the problem pages looks like. Everything is on one layer. (look at the section marked 5)
    Then I move the pages (copy/paste the content; drag and drop the pages; etc.) into the destination document so we can apply branding.
    AND THIS HAPPENS.
    WHY does this text suddenly become overset?
    The preferences of both documents are IDENTICAL. In fact, Document B was originally created from Document A.
    AND FUN FYI: I took Document A and Saved As a new name. Opened it the new name. And tried moving the pages into the newly named document -- and the SAME EXACT THING HAPPENED.
    I am going to bash my head into a wall. Can someone please shed some light on this? Have you seen this before? How do we fix it??

    aschwartau wrote:
    Doesn't saving as IDML lose some of the properties if you use any shadow or other effects?
    That's not something that I have ever heard, but since I haven't heard everything, I suppose it's possible. What you may be thinking of is that some people use idml to migrate a file to a lower version, and if that lower version lacks a feature of the version that created the file, you will either lose or modify the way that that feature worked in the original. I don't think that even in that scenario that a feature that was present in both versions would go away just because it took a trip through idml to get to an earlier version. And if idml botched shadow or effects, nobody would use it, and I don't think Adobe would have it.
    aschwartau wrote:
    If we had just done a final Save As on the Document A before giving it to the team member who's going to be copying the content into Document B, does that not count as doing a Save As? You mean the minute it's freshly opened try doing another Save As? (P.S. Edit: Just tried this. Didn't change what happened. )
    The thing that Save-As does is remove little bits of data associated with undos that a normal Save retains. Sometimes this data can lead to problems, so any time you do it, it will help, but if you do it at stage 37 and you hand off at stage 38, you will have cleared out most all of anything that may have built up over time. I don't want to give the impression that it is required, but it certainly doesn't hurt, and is probably a good idea to Save-As periodically.

  • How to Copy from Billing document F2 to Credit or Debit memo?

    Hello,
    I know the Menu path for copy control of billing document to billing document which  is as follows
    SPROIMG-Sales and Distribution-BillingBilling Documents-Maintain Copy Control of Billing document--Copy COntrol: Billing Document to Billing Document where I give the Source and the target.
    Now I have a scenarion where F2 invoice has ForTrade/Customs information in the Header of F2 invoice which can be viewd through VF03->Header->ForTrade/Customs tab.
    Now that inforamtion has to be transferred to CR/DR which is now not being copied although I have set the copy controls between the billing document.
    So, can anyone help me by providing the information for the following questions?
    1.How will I acheive the copy of Foreign trade to CR/DR from F2?
    2. When I copy from F2 to CR/DR, which all information from F2 will be copied to CR/DR?
    Thanks for the help.
    Anupama Rao

    Anupama,
    The foreign trade data is copied from delivery to billing and any order doesn't contains the foreign trade data and when you create a credit memo request CR by copying F2 invoice the foreign trade data is not copied to CR and when you create a G2 invoice from CR the foreign trade data is not copied because it doesn't exists
    the optimal solution for this is to keep the incompletion for foreign trade in the G2 and L2 inovices
    Regards,
    Santosh

  • How to copy a web document on screen and paste it to pages application

    how do I copy a web document on screen and paste it to pages application?

    Generally all you should have to do is select what you want to copy (and copy it) and paste it into Pages.

  • Copy pages between documents

    Hello there,
    I'm trying to compile a final .indd file based on different documents pages. To do that, i'm loading a XML file with the names of the files I need and the page I need .
    exemple of my XML:
    <files>
         <file url="firstDoc.indd" page="2" />
          <file url="secDoc.indd" page="5" />
         <file url="thirdDoc.indd" page="1" />
    </files>
    There is no probleme to load that XML and parse it. I can open the file and get the right page, but I don't know how can I copy these pages in a single new document.
    Is there any copy function ? or move function ? that can do that easily ?
    I've got a function like that for now:
    var myDocument = app.documents.add();
    for(var i=0;i<(xml.file.length()-1);i++){
         var address = xml.file[i].attribute("url");
         var myMod = app.open(File(idFileFolder+"/" + address), false);
         var myPage = myMod.pages[xml.file[i].attribute("page")];
         myMod.close(SaveOptions.no);
    If someone have an advice or a part of a script, I'll be really thankfull.
    Cheers.
    Gael

    This should get you started:
    if(app.documents.length < 2) {
        alert("Must have two open documents");
        exit();
    var myDocOne = app.documents[0];
    var myDocTwo = app.documents[1];
    var myPage = myDocOne.pages[0];
    myPage.duplicate(LocationOptions.AT_END, myDocTwo.pages.lastItem())

  • How to copy textbox between pages docs?

    when I copy and paste, the result is no where to be found. Option drag wont move the textbox to the other document. how is this done?

    What I you hoping ?
    When we copy paste a text block, we get a text block in the target document but its location is not guaranteed.
    Sure, it would be fine if the block was pasted where we put the cursor.
    I really don't know which is the rule used by the program to define the destination point.
    If like me you wish that the object is inserted where we put the cursor,
    _Go to "Provide Pages Feedback" in the "Pages" menu_, describe what you wish.
    Then, cross your fingers, and wait _at least_ for iWork'10
    As far as I know, the drag and drop feature doesn't apply to transfer the text blocks from a document to an other one.
    For this feature too a feedback to Apple would be interesting.
    Yvan KOENIG (from FRANCE mardi 3 mars 2009 20:39:29)

  • How to track changes between documents

    We are trying to find ways to track/compare changes between two or more versions of an InDesign document. We need to be able to store these version changes in a master version tracking document. We know InDesign can track text changes in a story but we need to know more than that, like graphic or style changes. Is there a plugin out there that can compare two versions of an InDesign document and list/print out the differences?  Acrobat has this feature but we haven't found this for InDesign. Any suggestions?

    Hello,
    I hesitated to post the plugins because my company is the publisher of one of them.
    You will find them all at:
    http://www.pluginsworld.com/
    Search for BlackLining from EMS, CtrlChanges from Ctrl Publishing and EditMarks BlackLining from Kerntiff Publishing Systems.
    We are responsible for EditMarks.
    As I said we do not track changes to objects.
    All the best.
    P.
    ( I am not connect to pluginsworld in any way )

  • Copy prices between documents assigned to different pricing procedures

    Different pricing procedures are assigned to sales document & Billing document -- however some of the condition types are common in the two procedures-- would the pricing get copied for the those common conditions if the copy control is set to copy (pricing type "G")
    Appreciate your responses.

    Pricing Type = G is to copy the pricing and redetermine taxes so it should based on if that is all in the copy control. We do not have a different pricing procedure for both, we just copy the values from the order and/or the freight document.
    When I have these types of questions, I always run a test order in dev and it answers many questions. Good Luck.

  • How to copy tables between diff data source ?

    if copy tables in same datasource, the problem is easy , just
    CREATE TABLE DESTDB.TABLE as select * from SOURCEDB.TABLE
    but in diff data source, such as copy access table to a non-exsit oracle table,
    need to create the target table first . my problem is how to create the target table by source table structure. though the source table structure can be read out, but parse it and make the SQL statement to create the table is a tough job.
    anyone have good idea ??
    thanks.

    You are explaining a huge topic in simple terms.
    You are trying to do Database Migration from MS-Access to Oracle. It's not all that easy. But if you are restricting to creating few tables then, do a small exercise.
    1. Use ResultSetMetaData to get the no of coluns and their data types.
    2. Construct a create statement by using above information.
    3. Then query the table1 for all the records and insert those records into created table.
    Sudha

  • How to copy images between folders?

    Hi,
    Overall, I really like Lightroom, but there's one thing that's bugging me to no end. I work with a lot images, where I need real physical copies of an image on several locations on the disk (workflow reasons, automatic backup, publishing etc).
    It's a very common and recurring task I perform, so I just want to be able to do it with drag-and-drop. As of now, I either have to export the images or do multiple imports of the same files to overcome this obstacle, which is extremely tedious.
    I have tried every imaginable way to perform this extremely simple and, to me, vital function in a DAM tool, and I just can't find how to do it.
    In any other application, and even the sub-par Finder on a Mac, it's just to hold down the Alt key when dragging an image to another folder, and automatically a true copy is being created.
    I even tried the beta of Lightroom 2, and this still isn't in there!
    Please, tell me I'm missing something obvious, or is it really true that this feature doesn't exist in Lightroom?
    I'm using Lightroom 1.4.1 in Mac OS X.
    Best regards,
    Robert Nyman

    p6889k,
    To copy them out, you simply drag and drop them to your desired destination, which will copy them there.
    Rob Sylvan,
    Yes, exporting originals is an option, but a bit overkill and annoying to use, since drag-and-copy is by far the easiest way.
    > Lightroom is not a file browser
    I just can't see why it can't act as a file browser as well as its other features? Meaning, if exporting to another folder works (and in version 2 it even has the option "Add the Exported Photo to the Lightroom Catalog"), why not support drag-and-copy?
    I think refusing to implement this feature by Adobe, even though A LOT of people has been asking for it online, is just narrow-minded.
    As a software distributor, you have two options:
    1. Adapt your software to the end user's needs and wants.
    2. Try and force your end users to learn how the application vendor wants the program to be used, instead of implementing what people want.
    History has shown that option 2 is always failing in the long run.
    Therefore, Adobe, PLEASE, make sure it's possible to copy files in Lightroom for those of us who wants it.
    Best regards,
    Robert

  • Move or Copy pages between documents

    In the Adobe Help Menu it says... If you copy a page from a document that has a different size than the document you are copying to, it will be resized to the dimensions of the destination.
    I can not get this to work. Can copy from doc to doc, but ad size remains the same. Any help with this please.

    Yup, I think you're right Mr. Mike. I also think that they are trying to make "it" sound like they're making water into wine! Like I said, I'm just plumb frustrated w/trying to learn this program 2day. I'll do better 2morrow... I hope! Thanx all for your help.

  • How to copy data between two tables row by row

    Hi All,
    I have three tables TableA and TableB and TableC
    I wanted to write a stored procedure to copy data row by row from TableA to TableB and then update TableC by replacing any record that has the old id (before copying) to the new id after copying the data.
    here is the steps 
    iterate throw all the rows in tableA ( probably with a foreach)
    in each iteration we will do the following:
    Get current ID (identity) for each record in TableA ( will call it @oldID)
    Insert the row in TableB
    Get the new ID for the row from TableB will call it (@NewID)
    find rows in tableC that has the (@oldID)
    replace all ids in tableC with @oldID to @NewID
    Thanks in advance

    0
    TableA and TableB are identical they should have the same columns 
    TableC columns will be ( ID, TableA_ID , Notes)

  • Copying Nodes between Documents

    Hi everybody,
    I have a very strange problem and can�t explain why it occurs.
    I�m parsing a valid XML Document, i.e. producing an DOM Document, which I want to filter partially (which works very well). But when I have filtered some Nodes and when I try to add those in another DOM document, which I also read in, the program will stop without throwing an exception!!
    That�s my command:
    resultDocument.getFirstChild().appendChild(someFilteredNode);
    It won�t work...Does anybody know why this happens??
    Thanx for any answers!!
    Phil

    ok, it looks like you use some old parser.
    with something "recent", it should work - check:
    http://xml.apache.org/xalan-j/apidocs/org/w3c/dom/Document.html#importNode(org.w3c.dom.Node,%20boolean)
    or
    http://java.sun.com/xml/jaxp/dist/1.1/docs/api/org/w3c/dom/Document.html#importNode(org.w3c.dom.Node,%20boolean)

Maybe you are looking for

  • Table control and a selection screen

    Hi, I have a requirement where I am supposed to be designing a screen that has a table control with fields w/selection column       label 1(non-editable)          i/o field(from)        i/o field(to) w/selection column       label 2(non-editable)    

  • Offline help manuals

    Hello, I've downloaded and installed Apps through Creative Cloud on my desktop and they work fine. I need help manuals offline installed on my desktop. I tried adobe help manager, but it shows no content available to download. I can access online hel

  • How can I deauthorize old PC's as I am over 5

    I had my laptop crash yesterday, got a new PC and I am trying to sync for the first time. I found out I cannot authorize this PC as my old laptop was #5. I had old work PC's at an old place of employment, a home PC that is dead and gone, and the lapt

  • Issues with importing a VM template

    I have an Active server pool and an active Virtual Machine Server i have copied two templates to the Virtual machine server /OVS/seed_pool directory root@cmsvs38 seed_pool]# pwd /OVS/seed_pool [root@cmsvs38 seed_pool]# ls -ltr total 0 drwxr-xr-x 2 ro

  • I cannot get firefox to load mymathlab and it was working last week

    i have to do my math homework on mymathlab and i cannot get it to load on firefox it is saying website is unavailable but i know it is not the website cause it works on other computers. please help