Js import colour swatches from an other file

Hi all
I am trying to import the colour swatches from an other file into the current document.
I was hoping this would be just like importing Par or Char Styles...
...    app.activeDocument.importStyles(_theFormat_, sourceFile, importPolicy);
But I have so far had no luck.
Can anybody give me some hints.
Thank you very much
Romano

Hi Romano,
Can you please try the below JS code, The code is just import the swatches from the desktop document onto the active InDesign document.
var myColorDoc = new File("~/Desktop/color.indd");
app.activeDocument.loadSwatches(myColorDoc);
thx
csm_phil

Similar Messages

  • I can't find the Show menu to import a song from a shared file.

    Where do i find the show menu to import a song from a shared file?

    Welcome to the Apple Community.
    Do you mean this one in the bottom left corner of iTunes.

  • How do I import several layers from one Illustrator file into another Illustrator file?

    Hi!
    I have ten Illustrator documents with appr. 100 layers in each document.
    Each layer in all documents are named correctly for automatic script exporting to PNG files.
    Now I want to import all layers from all ten documents into one master file. And importantly, I want to keep the exact names of each layer.
    Thank you for any help on this!
    David

    Layers Palette flyout >> Paste remebers layers (Enable)
    Now when you paste the layer names will come over.

  • Can you import a master from one Muse file to another?

    I've got upload space through Comcast, and my homepage and other material are there.  (home.comcast.net/~gregfisk/)
    But I have another site that I uploaded there through Dreamweaver a year ago.  I'd like to update it with Muse.  (www.caption-ator.com)
    But the thing with Muse is, when it exports a site to HTML, it defualts the home page to 'index.html'.  In this case, the caption-ator site info (made with muse) would over-write my main web page.  The same goes for any files that share the same file name, like 'site global.css', and 'sitemap.xml'.
    So I guess I should take the site info from the caption-ator Muse file, and rebuild it in my personal web page. So there will (theoretically) be no conflicts in the file names, and can all be uploaded safely.
    Rather than rebuild the whole Caption-ator muse built site in the Muse file for my personal web  page - is there any way to take a Master page from one Muse file, and import it to another?  That would be a HUGE time saver.  My first instinct would be to take the Muse tab for my personal web page, and the Muse tab for the Caption-ator web page, then drag and drop the Master from the Caption-ator page to the personal web page.  But Muse doesn't seem to allow for tabs to be kept separate like that.
    Any advice is apprecaited.

    If you still have the .muse file for the template you want you can open it up in Muse 'Select All' --> Copy.
    Open your destination blank template and paste it. You can have bothe muse files up in Muse at the same time.

  • Importing Arabic text from an XML file

    Importing text from an XML file to appear as text in Flash
    works in English, however if the text I want to import is in
    Arabic, when I test the movie there is no text at all.
    Is there some particular syntax to preface the Arabic text?
    I'll want to import text from XML in other languages too.
    (French)
    I'd cut and pasted some Arabic text into the XML file that
    displays pictures and text in the "slideshow.fla" (
    http://www.adobe.com/support/flash/applications/jpeg_slideshow_xml/jpeg_slideshow_xml03.ht ml)
    Substituting Arabic text for English text, editing the XML
    file with Dreamweaver.
    Any ideas as to how I might achieve my objective of importing
    Arabic text into Fash?
    I'd started developing my prototpe in Macromedia Director 7,
    and then Director MX, but I have not found a suitable Arabic font
    that I can embed that will allow me to display Arabic fonts in
    Adobe Director. I have the Arabic text in a Word document.
    I've dicovered that my Flash MX Pro and Dreamweaver both
    support Arabic fonts, but I want to import text from an XML file.
    I'd prefer using cast libraries and cast members, but I don't
    know of an equivalent in Flash to what I'm comfortable with in
    Director.

    Oh so many questions. You probably aren't going to like the
    answers. I have Flash MX04 pro (aka Flash 7) and things made a big
    jump between MX (aka 6) and MX04. If you only have MX, there might
    not be a way to do this. All my advice is based upon MX04 or
    higher.
    It is possible to do complex languages in Flash. My
    experience is with Hindi and I've helped a few folks here with
    Arabic.
    You won't be able to use text from Microsoft Word – at
    least I don't think so. The XML file will need to be saved in the
    UTF-8 format. I think Word uses its own scheme and won't work. But
    I'm not a Word expert. Something like Text Edit (Mac) or WordPad
    (PC) should be able to save a UTF-8 file.
    The next problem is you mention "suitable Arabic font that I
    can embed." AFAIK, you can't embed any of the complex scripts in
    Flash. You just have to rely on the end user having appropriate
    fonts installed and enabled. Most operating systems from 2000 on do
    have this – although some folks like to remove them to save
    space.
    Next issue will be line composing. I've found that when using
    anything above the normal Latin range that Flash suddenly forgets
    how to make a line fit into a text area. It will just break things
    in the middle of words and not even notice the spaces between
    words. I've written a little snippet of code that "composes" the
    lines. It works well with Hindi and folks here have used it with
    Arabic and not come back saying that it doesn't work. Search the
    forums (both the Flash and Actionscript) if you can't find it I'll
    dig it out when I get home.
    So here is the checklist:
    Make sure the XML is saved in UTF-8
    Import the XML file
    In Testing environment go Debug–>List variables.
    Does it show up correctly there?
    Does it show at all in a text field?
    Use the "composer" to make the lines break.

  • Cannot import avid mxf from avid media files

    Hi,
    I want to import an avid project to premiere cc. I exported it as aaf, imported in premiere and wanted to relink media. Premiere doesn't recognize the mxf from "avid media files". I don't have the original files, but only the transcoded/wrapped files from that media files forder. Does anyone have any solution? It's urgent! Thank you.

    If you care to upload a short sample clip, I can test it here to see what happens.
    Mobile DepositFiles

  • Can I import songs downloaded from Wallmart & other sites?

    I have music I downloaded from Wallmart & other sites. Can these be imported into iTunes & then in the iPod?
    Thanks you,
    Howieb

    You can't import songs downloaded from Walmart music service. They are copy protected (DRM) wma files and both itunes and the ipod do not support that. You would need to burn those songs to a music CD and then reimport the CD via itunes or another ripper encoder.
    There is no direct way of doing that as far as I know.

  • Can you fix your help project (via coding) after importing a topic from an output file by mistake?

    Yes - I admit it - I imported html topic files from an output folder of another RH project into the help project I am currently working on (the source files were lost and I needed to bring over a lot of legacy content in a hurry). However, I completely forget that the RH output html file contains unique Java scripting that is used to render the topic properly in a browser, but that same Java Script causes havoc when you open it up in as a source file in another RH Project. Needless to say, it has caused numerous weird things when I went to publish and view my files (but, surprisingly, you don’t really see or notice them in the RH Design WYSIWYG view or preview mode).
    The bad news is that it took about 2 weeks for me to notice the issue (the help output is viewed on a special console running Linux with a QT browser that I only view occasionally). The good news is that is that I figured out what the problem was (that took some hours) and I can restore my help project back to a time before I did the "naughty deed".
    I am now at a crossroads - do I:
    Try to re-enter all of my content from the last two weeks? (Actually, to avoid repeating the same mistake twice, I will need to re-enter the text manually and NOT cut and paste from the RH output files!)
    Or locate and find the offending HTML coding in my topic files (if that is even possible)? Has anybody documented what the RH output file JavaScript code injects into your files, and what files they affect?

    OK - here is the documentation of this weird issue (hopefully, you can read the htlm code in the screen images):
    1. In this topic, I cut and pasted some text into the table you see at the bottom of the screen. I had to reapply the “TableBody” style to this text. After doing this, I moved my cursor to the “Keyboard" text on top. Notice that it is displaying the "TABLEBODY" style, although visually, it is displaying the correct style on screen (“Heading 1”).  
    2.     In HTML view, notice the addition of the class= “TableBody”> code for this “Keyboard” text.
    3.   I then reselected Heading 1 for this “Keyboard” text.
    4.   Notice that the class= “TableBody”> code is now removed for this “Keyboard” text and has just the proper <h1> tagged assigned.

  • How do I publish calendars imported into iCal from a .ics file to iCloud rather than MobileMe?

    Having upgraded my iPhone4 & iPad to iOS5 and my iMac to OSX 10.7.2, I have been having trouble with duplicate calendar entries. Unfortunately, having deleted all but one calendar from the iCloud web interface, I heeded the mistaken advice to disable Calendars in the iCloud preference pane on the iMac and it deleted the calendars that had been removed from iCould from the iMac as well.
    A few false starts later, I was able, after disconnecting all my devices from the net, to restore my iCal calendars with TimeMachine from before the chaos started then exported them as .ics files. After rebooting and re-enabling the network to the iMac, iCloud sync purged the restored calendars from iCal again, so I imported the .ics files into iCal and published them again, but the publish options only include MobileMe or a private server, so I chose MobileMe. iCal now happily shows all my calendars on the iMac again, but the iCloud web Calendar app can't see them.
    How can I get iCloud to see the published iCal calendars again?

    Solved, I think! What you need to do is log on to your icloud account at www.icloud.com, go to the calendar screen, click the gearwheel and choose New Calendar. Create a calendar here (ie up on the iCloud) with the name you want for your imported calendar data. Then switch to iCal - you may have to quit and relaunch for the new iCloud calendar to appear (or it will probably do so automatically if you wait long enough) then import the data using File->Import->Import... When you get to the step where it asks which calendar you want to import the data into, choose the new iCloud calendar you've just created. Job done!
    To be complete in my answer, I don't think you can exactly do what you want to do, at least not at present. There doesn't seem to be any way to publish a calendar to iCloud after the first time you set up iCloud on your Mac when it exports any calendar data that is on the Mac at that time. I suppose that Apple feel that the way I have described works by exporting from one calendar and importing into another, so no need to provide a way of doing it directly.

  • How do I import the data from Excel (.xls) file into Oracle Database table

    I have an excel file with 5 columns of 5000 rows.
    I have to import 5000 rows of data into my oracle table with
    same column names & Data types.
    What is the best advise for this ?
    Thanks.
    Srini

    You can connect to Oracle from Excel directly. I know you can read data but am not sure if you can export data.
    Other option is to import the data into Access.
    Create an ODBC connection for Oracle
    Use the to connect to Oracle from Access
    Export data to Oracle from Access
    Shakti
    http://www.impact-sol.com
    Developers of Guggi Oracle - Tool for DBAs and Developers

  • Import c struct from dll header file into TestStand?

    Hi,
    I'm writing a TestStand sequence to call some CVI functions I have compiled into a dll. One header file in the CVI code is the interface to the dll and declares some functions and some C structs which are to be passed into the functions as pointers. These structs are populated with test results as the CVI code executes. I want to import these structs into TestStand.
    TestStand seems to have properly imported my function calls because I can select them from a drop-down list. But it doesn't seem to recognize my struct definitions, because it just says "unknown __struct 617*" -- it knows it's a C struct pointer but doesn't know what fields exist in the struct.
    How do I get TestStand to recognize the fields that are in my structs?
    The C functions and structs are declared with DLLEXPORT in the header file. I compile the CVI code into a dll, with the target settings set to export marked header files and symbols. The only header file marked in the target settings dialog is the header file declaring these functions and structs. So I think they're being exported properly into the dll.
    Any ideas to help?
    Thanks!

    I'm using typedef struct {...} MyStruct; to make life easier in CVI world, so rather than changing that throughout my CVI code I think I'll just live with the fact that TestStand doesn't know what struct type it is.
    But typedef or not, is it ever possible for TestStand to import the struct definitions (ie so that it knows what fields and types exist within the struct)? Or do I have to make containers in TestStand that match the format of the structs I'm using in CVI, and pass those container pointers into my CVI function calls?
    Thanks!

  • Import old emails from hard drive file

    I have older Eudora emails exported to an expansion drive that I would like to move into my new Thunderbird email program. Thunderbird only seems to have imported files from my isp email account and not from my most current Outlook account and does not seem to allow me to browse to find files I wish to import. Does anyone know how I can go about this?
    Thanks

    ''thompsjp [[#question-1059542|said]]''
    <blockquote>
    I have older Eudora emails exported to an expansion drive that I would like to move into my new Thunderbird email program. Thunderbird only seems to have imported files from my isp email account and not from my most current Outlook account and does not seem to allow me to browse to find files I wish to import. Does anyone know how I can go about this?
    Thanks
    </blockquote>

  • Can you import form responses from one responses file to another? I know you can export...

    I have a distributed form with a responses file that has six responses in it. Somehow the distribution got cut off and I had to set up a new distributed form and a new responses file. I was able to export the six old responses to a .csv file, but have not found a way to IMPORT the .csv file into the new responses file.
    "Add" does not work-- it is looking for PDF files only. Does anyone know a way to import those 6 responses into my new responses file? The distributed form did not change in any way, so all of the fields are still exactly the same.
    I can create a master portfolio and just add the two portfolios together, but they just remain as file icons within the portfolio and I need the data to be inline together in one file.
    Thank you very much.

    If you still have the .muse file for the template you want you can open it up in Muse 'Select All' --> Copy.
    Open your destination blank template and paste it. You can have bothe muse files up in Muse at the same time.

  • How to import measurment data from a Excel File to Citadel DataBase?

    A Microsoft Excel File is being created in a PC and I want to include that flie´s data into my citadel Database wich is in another PC.

    I give a example "Importing Spreadsheet Data to the Citadel Database" in the LabVIEW Version 6.1 and LV-DSC 6.1.
    LabVIEW 7.0 with LV-DSC you must in the ini file "DSCEngine.ini"
    set NoShutdownLog=1 and UseServerTimestamps=TRUE.
    kind regards
    amcholger
    Attachments:
    Write_File_to_Citadel_Example.zip ‏139 KB
    Write_File_to_Citadel_VI_Server.zip ‏289 KB

  • Importing email addresses from a text file

    I have a db on one of my websites that I maintain for my client. I can download that db as an Excel file. This db has many fields.
    Once I download that Excel file I open and sort it for just the email addresses I want. Then I copy and paste those email addresses in plain RTF text file. So, now I have a long list of email addresses. I then have to put a comma after each one and then saved that file.
    Here's my question"
    What I want to do next is import that RTF list into Mail (somehow) as a group so I can send out a couple of hundred emails at a time to my customers in the Bcc box. And if I understand it correctly, since all those addresses are in the Bcc box those who receive those emails will only see their email address in the To: box.
    So how can I do this? How can I take this RTF file bring it into Mail and get this done.
    First time on this forum.
    Thanks in advance.

    Hi Martin
    I have been seeking answers on this forum for a problem you will encounter (but may not have yet). Firstly, you will want to import your DB files into AdressBook, not Mail. IN AddressBook you sort your contacts into groups for email or whatever. The Mail Program then uses that data to fill in its fields.
    The problem I have been having is that AddressBook seems like it should import, indeed looks like it should do it very simply, but ..... simply doesn't do it when you click the "OK" button.... as you might expect. I have not found the answer here yet, but suspect that its an OS development snafu and must needs be done another way. Some replies seem to suggest a solution at Versiontracker. com
    Good luck

Maybe you are looking for

  • Whither MQ 3.0.1 SP2?

    I've come across a Java bug report against the Sun ONE Message Queue, that is marked as closed, and fixed in '3.0.1sp2' - I'm running the 3.0.1 version of the MQ that's currently up on the Sun download pages, but beyond that I can't find any referenc

  • Screen exit for transaction MD14.

    Hi collegues, Does anyone know what the screen exit for transaction MD14 is?  I need to add an extra field to the detail screen of transaction MD14.  The field name to be added is MDBA-LIFNR. Thanks.

  • Where can I download the full installer for flash player?

    All we find in the site of Adobe is a litle program tha DOES NOT install flash player. Instead, it install one litle program (install_flash_player_11_active_x_32bit.exe) to do the download. And it DOES NOT DO THE JOB. All it does is say to the user t

  • Photoshop Elements 9 - Organizer opens, but editor will not.

    I have Windows 7. I don't believe I have any plug-ins loaded. Uninstall program (I have done this so many times. I'm sick of it.) Delete files Reboot Reinstall I AM STARTING TO HATE THIS PROGRAM.  Open Organizer Open Editor SHUT DOWN - there's a prob

  • Download JMS packages

    I have a lot of imports in my java file. import javax.jms.MessageListener; import javax.jms.QueueSession; import javax.jms.Session; import javax.jms.Topic; import javax.jms.TopicConnection; import javax.jms.TopicSession; import javax.jms.TopicSubscri