Creating a Script to Replace Supplied Swatches with Our Own...

We have a client that provides us art with their own swatches. We in turn have to load the corresponding swatch from our library for that client and merge. Would there be a way to script this?
They are not named the same but usually part of the name is the same. For instance, a supplied swatch is called 'White_S06_001A_white' and we replace it with 'WHITE_we_rgb'... or 'Red_SLD_A1MH_186' is replaced by '186_RED_we_rgb'
Wondering if this might be possible. Thanks.

I think it's possible (although it's beyond my scripting prowess) but
... usually part of the name is the same ...
usually is not going to work. Only if you have one of these:
a list of all usual name differences (and all of them)
or, an exact list of all of your clients' names and yours.
then a script can do it.
For (1), it needs the differences to discard and replace the bad name bits with the good stuff. For example, the "_we_" can be added right after the first underscore, and eh (thinking about your 2nd example ...), well, something like "if there is a number at the end place it at the start and replace the word before the first underscore with capitals and throw everything else away and add "_we_rgb" to the result" -- you get the idea. Is there any rule to this at all?
For (2), it just requires a simple "a -> b" translation list.
By the way: how do you know it's safe to change the name? Are the RGB values of your and their swatches identical?

Similar Messages

  • I created an Apple ID for my daughter with her own gmail address, but I want her Apple ID and primary email address to be an iCloud email address. How can I do this? I can't set up an icould email address for her without first creating an Apple ID?

    I have created an Apple ID for my daughter with her own gmail address as the primary email address, but I want her Apple ID and primary email address to be an iCloud email address. How can I do this? I can't set up an icould email address for her without first creating an Apple ID right?
    I'm not good with computers so please explain in simple way...:)
    I also wonder what the best way is to set up accounts for children in a family. I dont want them to be able to purchase apps etc through the parents accounts, also some things we like to share as a family and others we don't want to share. Is there any good. clear, simple explanation from Apple Support about these issues? Or best to go to Apple store and go to genius bar or one to one advise?
    thanks

    You can set up an iCloud account which makes the iCloud email address you choose the Apple ID and thus the login for it:
    https://discussions.apple.com/message/22283348#22283348
    though I have to say I think it's more sensible if the ID is another address, both for security reasons (so people don't know what the login is) and as a contact address from Apple if the account were to stop working and they needed to contact you. So personally I would to to System Preferences, enter the GMail address which is an ID, and then choose a nerw @icloud.com address.
    If she has her own iCloud account she will need either her own computer or her own user account on your Mac to be able to make use of it. You should note that under Apple's terms of use Apple IDs are only available to children of 13 and over.
    As to purchasing apps, this is nothing to do with iCloud: it's iTunes, and the login can be different. So you can all sign into the same iTunes account but have different iCloud accounts. Or she can have her own iTunes account if she is of suitable age (credit card needed for purchasing apps).
    If you have other children you should be aware that any one Mac or device can create only three iCloud accounts - this is tied to the serial number, not the user account, and once reached cannot be bypassed. You can of course sign into an iCloud account created on another device.

  • Replace Detailed Navigation with an own iView

    Hi everybody,
    how can i replace the DetailNavigation with an own WD-iView (on the left side of the portal framework page)?
    regards,
    Sid

    Hi,
    I believe this question belongs rather to some kind of portal or portal development forum.
    Please close this thread and raise this question there.
    Thank you for your understanding!
    Best Regards,
    Ervin

  • Why does the itunes wifi show it is connected to my PC for all the devices we have when my husband has his own Apple ID, since we updated to Icloud with our own ID's

    since upgrading to Icloud, all the devices in our house show in Itunes Wifi they are all linked to my PC, although we have set them up with our own individual accounts, my husband is unable to sync his Iphone, Ipod & ipad to the music in his itunes, as it wants to connect to mine any one any ideas

    You can continue to use the current AppleID for iTunes, but your husband can create a new AppleID to use to create a new iCloud account that will be his own and not overlap with yours.  If you do not have another email address to use for an AppleID, just get a free Gmail account and use that.
    You can have as many AppleIDs as you want (or at least, as many as you have email addresses for).  You can use a separate AppleID for the store, another for iCloud, and even another for iMessage if you wish.
    You will want to keep the current one as the shared one for the store as all your previous purchases are permanently tied to it, and thus you need that AppleID to update or redownload your current purchased content.

  • HT1473 My girlfriend and I both have iTunes account with our own music libraries and we want to combine our two libraries into one icloude accounts so can both then access our one shared libary at anytime in the cloud.  How do we do this?

    My girlfriend and I both have iTunes account with our own music libraries and we want to combine our two libraries into one icloude accounts so can both then access our one shared libary at anytime in the cloud.  How do we do this?

    No it is not possible.  Content purchased from the iTunes Store is permanently tied to the account from which it was originally purchased, and Apple does not provide a way to change it.

  • Can we enhance the Sender SOAP Adapter with our own modules?

    Hi All,
    Can we enhance the Sender SOAP Adapter with our own modules on the Module Tab Page in the Module Processor?
    I believe the answer is no. However, whatever may be the answer, I would like to know that is there any specific reason for that.
    Please help me in this regard.
    Thanks,
    Yogi.

    Hi,
    I think, we are mentioning the URL of the adapter channel directly in the configuration. SO there is no place we can customize this flow..just a thought
    Because in the file adapter etc, After Adapter Engine picks up the data and before it goes into integration engine module is processed..
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/5ad93f130f9215e10000000a155106/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f013e82c-e56e-2910-c3ae-c602a67b918e
    Rgds,
    Moorthy

  • How do I create a new Sharepoint site at Home to connect with our own Website?

    How do I connect our website with our home computer.
    I am not linked with a company server site - just what has been created with the website, so how do I connect to a server or that server; know the server details and how can I link my Sharepoint with my website.

    Your question has not answered mine.
    Please respond to my next question as posted 1 March 2015 and re-posted:
    I have created a website - purchased a domain name and have started to build my own website for public viewing.
    I use Sharepoint at work so I am familiar in using webpages and creating them. I have Sharepoint 2010 & office 365 at home and would like to be able to use Sharepoint to manage and create new pages on my website as I am finding that it would be easier
    to manage the website as I am familiar with using Sharepoint.
    I have not completed any formal IT training and therefore don't know how to create the link between my website and Sharepoint on my private PC.
    I have read pages and watched videos and they reference back to 'your IT department will create the link for you' - as this is for my private PC, I don't have an IT department to create this for me, I have to do this myself.
    Are you able to direct me to a refer point on how to create the link please?

  • Pages templates how replace given info with my own?

    Question: I'm trying to use a business card template. Have replaced the 'holding info' with my own wording in upper left section: now want this info to be repeated in all other sections on page: how to do this?

    Pages 5?
    You copy the first corrected business card and paste it in the other cards. You can use Cpoy and Paste, Option  + drag or use Cmd + d to duplicate the first card.

  • Replacing verizon router with my own

    Hello,
    I want to replace my current verizon router with my own, the issue I have is I can not logon.  I know I can do a full reset but all the info will be lost. (gateway, verizon password, ect).  Is there any way around this?  I only have fios, no tv.  Incoming connection is a cat 5 cable from fiberoptic converter.  Or will I be stuck calling tech support?
    Any help would be appreciated, I have small to fair knowledge with these devices.
    Geo1cran

    since your hooked up with cat5 your good to go. Now if your DHCP verizon would need to help or if your PPPOE then all you have to do is hook up your router and your good to go.

  • Design 1313 with our own function

    We are planning to design our own Terminal block for SCXI-1125 with attenuator and with AC coupling circuit
    (both selectable). How can we get information to design this block?
    OR can any one send how SCXI-1313 works when you want to select the attenuator on/off automatically
    when a high range is selected?
    Rg
    Naushica

    Hi Naushica
    Unfortunately circuit sheets are not made available by National Instruments and therefore you will be unable to get information on how to design your custom terminal block. However there are custom kits available and you can view more information at this link:
    http://digital.ni.com/manuals.nsf/websearch/6B39E29F2EE4AD4E86256E35006C4240
    Hope you will find this useful
    Kind Regards
    YatinM
    National Instruments

  • Script to replace filename.tif with graphic of same name

    Have never written nor used an InDesign script.
    I'm using InDesign 3.0.1 and need a script which will replace filenames with inline graphics of the same name in a large catalog (each file has about 250 images).
    Can anyone please help me?
    Thanks

    Dave
    I placed and linked Jpegs in a document with like named tif's placed in a folder. I ran the script, pointed to the folder and it said that no graphics were replaced. The linked graphics were the original Jpegs.

  • I would like a image swap filter, like adblock but it replaces blocked images with my own choice.

    A web site I visit has large and ugly icons I would like to display my own image in their place
    Is there an addon for FF25.0.1? or could I set a custom swap filter any other way?
    Thanks for reading.

    Both these addons did
    https://addons.mozilla.org/en-US/firefox/addon/add-art/
    https://addons.mozilla.org/en-US/firefox/addon/my-image-here/
    Neither work with FF25.0.1
    Both of which are extensions that build on adblocker's filter, I'm still looking.
    I am not conversant with scripts etc I was hoping it would be simple like if uglyImage.gif replace with C:/desktop/myimage.gif

  • Why does iCloud replace my bookmarks with our warning?

    Why, without warning or notice, would Apple decide it's time to replace my current bookmarks with months/years old bookmarks?
    How, how, how can I replace the bookmark file that exists on iCloud? Because this is getting absolutely ridiculous.
    I honestly have no other way to tell Apple that I cannot stand this. And no other way to figure something out that I would imagine to be simple.
    Please, please, please, please help me out! This is getting so unbelievably frustrating!!!!

    You might try deleting the account, then adding it back with your new password.  Before doing so, if you have any photo stream photos on your device that you wish to keep, save them to the camera roll (unless already there) by opening your my photo stream album, tap Edit, tap the photos, tap Share, tap Save to Camera Roll.  Then go to Settings>iCloud, tap Delete Account, choose Delete from My iDevice when prompted (it will still be in iCloud), then sign back in with your new password and see it it's accepted this time.
    If this works on your iOS device, go to System Preferences on your Mac, click Sign Out, choose Delete at all the prompts, then sign back in with your new password.  Your iCloud data will reappear after a brief delay as it redownloads.

  • Drill to detail should come with our own report format....

    deptno          empcount
              Q1-07          Q2-07          Q3-07          Q4-07
         10     245          267          134          98
         20     328          898          211          88deptno is from test_1(total of 34 colums) table
    empcount is from test_2(total of 12 columns) table
    Q1-07,Q2-07... from time_1 (total of 37 columns)table.
    when i am going for drill to detail on deptno(20), its going to display all the 34+12+37 columns.
    but i don't want all these columns.i need to display few columns from test_1 table only.
    how to achieve that in Oracle Discoverer Plus 10.1.2.48.18?

    Hi
    Don't drill to detail. That is the old way of drilling and has the behavior you describe. What you need to do is hyper drill to a second workbook or worksheet from deptno.
    The second worksheet will be pre-defined and can either be in the same workbook or in a second workbook, Discoverer does not care either way. With both worksheets existing you right-click in the deptno cell and from the pop-up select the option to create the link. It's the last one in the last.
    For anyone reading this, please be aware that you can only create hyper links in Discoverer Plus 10g R2, and work in both Viewer and Desktop.
    Best wishes
    Michael

  • Integration of JTwain with our own interface??????HELP!!!

    hi....
    i have this one program which is an interface of my system...and now i'm about to add the function of scanning(i'm using JTwain to do the function...)but the problem is i'm having trouble to integrate the interface with JTwain can anyone help me out on this......here is my coding of interface and the jtwain coding......
    //  ToolBarExample.java
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.event.*;
    import java.awt.GridLayout;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.JFrame;
    import javax.swing.ImageIcon;
    public class ToolBarExample extends JPanel {
        public JTextPane pane;
        public JMenuBar menuBar;
        public JToolBar toolBar;
        public ToolBarExample(  ) {
              super(new GridLayout(1,1));  // 1 rows, 2 column
              JLabel label1, label2;
              //ImageIcon icon = createImageIcon("images/middles.gif",
                                                       //"a pretty but meaningless splat");
                      //Create the first label.
                      label1 = new JLabel("Image and Text",JLabel.CENTER);
                      label1.setIcon(new ImageIcon("full/copy.png"));
                      //Set the position of its text, relative to its icon:
                      label1.setVerticalTextPosition(JLabel.BOTTOM);
                      label1.setHorizontalTextPosition(JLabel.CENTER);
                      //Create the other labels.
            label2 = new JLabel("Text-Only Label");
             //Create tool tips, for the heck of it.
                      label1.setToolTipText("A label containing both image and text");
            label2.setToolTipText("A label containing only text");
             //Add the labels.
              add(label1);
            add(label2);
            menuBar = new JMenuBar(  );
            // Create a set of actions to use in both the menu and toolbar.
            DemoAction leftJustifyAction = new DemoAction("Scan",
                new ImageIcon("open.png"), "Scan text", 'L');
            DemoAction rightJustifyAction = new DemoAction("Recognize",
                new ImageIcon("new.png"), "Recognize text", 'R');
           JMenu formatMenu = new JMenu("Scan");
           formatMenu.add(leftJustifyAction);
           formatMenu.add(rightJustifyAction);
              JMenu fileMenu = new JMenu("File");
              menuBar.add(fileMenu);
           menuBar.add(formatMenu);
              JMenu helpMenu = new JMenu("Help");
              menuBar.add(helpMenu);
    JMenuItem jmiNew, jmiOpen;
    fileMenu.add(jmiNew = new JMenuItem("New"));
    fileMenu.add(jmiOpen = new JMenuItem("Open"));
    jmiNew.setIcon(new ImageIcon("full/new.png"));
    jmiOpen.setIcon(new ImageIcon("full/open.png"));
    fileMenu.add(new JMenuItem("Save"));
    fileMenu.add(new JMenuItem ("Save As"));
    fileMenu.add (new JMenuItem("Print"));
    fileMenu.addSeparator();
    fileMenu.add(new JMenuItem ("Exit"));
    helpMenu.add(new JMenuItem ("Help Topics"));
           toolBar = new JToolBar("Formatting");
           toolBar.add(leftJustifyAction);
           toolBar.add(rightJustifyAction);
           toolBar.addSeparator(  );
    // Disable one of the Actions.
          leftJustifyAction.setEnabled(true);
    /** Returns an ImageIcon, or null if the path was invalid.
        protected static ImageIcon createImageIcon(String path,
                                                   String description) {
            java.net.URL imgURL = LabelDemo.class.getResource(path);
            if (imgURL != null) {
                return new ImageIcon(imgURL, description);
            } else {
                System.err.println("Couldn't find file: " + path);
                return null;
        public static void main(String s[ ]) {
            ToolBarExample example = new ToolBarExample(  );
            example.pane = new JTextPane(  );
            example.pane.setPreferredSize(new Dimension(500, 800));
            example.pane.setBorder(new BevelBorder(BevelBorder.LOWERED));
            example.toolBar.setMaximumSize(example.toolBar.getSize(  ));
            JFrame frame = new JFrame("Menu example");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setJMenuBar(example.menuBar);
            JMenuBar jmb = new JMenuBar();
             //LabelDemo newContentPane = new LabelDemo();
             //frame.setContentPane(newContentPane);
             //newContentPane.setOpaque(false); //content panes must be opaque
            frame.getContentPane(  ).add(example.toolBar, BorderLayout.NORTH);
            frame.getContentPane(  ).add(example.pane, BorderLayout.CENTER);
            frame.pack(  );
            frame.setVisible(true);
            //Schedule a job for the event-dispatching thread:
                      //creating and showing this application's GUI.
                      javax.swing.SwingUtilities.invokeLater(new Runnable() {
                          public void run() {
        class DemoAction extends AbstractAction {
            public DemoAction(String text, Icon icon, String description,
                              char accelerator) {
                super(text, icon);
                putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(accelerator,
                         Toolkit.getDefaultToolkit(  ).getMenuShortcutKeyMask(  )));
                putValue(SHORT_DESCRIPTION, description);
            public void actionPerformed(ActionEvent e) {
                try { pane.getStyledDocument(  ).insertString(0,
                      "Action [" + getValue(NAME) + "] performed!\n", null);
                } catch (Exception ex) { ex.printStackTrace(  ); }
    import java.awt.Image;
    import com.asprise.util.jtwain.Source;
    import com.asprise.util.jtwain.SourceManager;
    * $Id$
    public class DemoSimple extends JTwainDemoCode{
         public DemoSimple() {
              try {
                   Source source = SourceManager.instance().getDefaultSource();
                   if(source == null) {
                        error("There is no (default) source on the system!");
                        return;
                   source.open();
                   Image image = source.acquireImage();
                   new ImageDisplayer("DemoSimple", image);
                   source.close();
              }catch(Exception e) {
                   exception(e);
              }finally{
                   SourceManager.closeSourceManager();
         public static void main(String[] args) {
              new DemoSimple();
    }

    my problem is that i have my own coding of my
    interface and i also have coding of JTwain
    coding...but the problem is that whenever i combine
    this 2 coding i always get so many errors...what can
    i do with this problem?could pleaze take a look at my
    coding and tell me how to combine this 2 coding....so
    that i will be integrated....This is a little more helpful but still vague as all get out.
    Please post an example of some of the errors you are getting because right now it could be any of the following
    - you haven't installed Java
    - you have some syntax problems
    - you are inventing method for the JTWain stuff that don't exist
    - you have a class path problem
    My money is on 3 and 4.

Maybe you are looking for