[AS] Script does not - need help

I tried every possible means to create a shade and use it as the fill color of a selection, but no matter what I try, it doesn't work. Here is my last attempt:

Tell application "Adobe InDesign CS5"
the value wiilibrary to the library 'template.indl Wii. "
Set myDocument to the active document
the value mycolorindicator to place the element element "column spinal indicator lang" of myDocument wiilibrary
Set mySelection to select mycolorindicator
mySelection set selection
the value mySpread spread active of the active window
the value myPageItem to article 1 of mySelection
the colorname to «Spanish3» value
languagevalue value {0, 10, 10, 10}
Set name of colors colorTest

the value of New_Swatch to make the color with properties {name: colorname, color: CMYK, color value: model languagevalue: process}
set the fill color of myPageItem to New_Swatch

tell the end

Error I get is:

error "Adobe InDesign CS5 has been an error: invalid value for set property 'fill color'.» Expected or string, but received color swatch. "number 30477

You need make the color in the document, not the application. And "color: CMYK" should probably be "space: CMYK.

Tags: InDesign

Similar Questions

  • Inherit CSS doesn't work does not (need help)

    Try as I might, I can't do the style of border to inherit. I found the code below in a published article and tried it. Unfortunately, it did not work as described or I would have predicted. Basically, I can't get border or any other default style not inherited to work. When I go below html 3rd paragraph beginning with the words "You Can... "do not have a border, or the fact the < a href >. According to the article and my understanding of inheritance as they should.

    Here is a link to the article. Original article

    Any help would be greatly appreciated.

    ----

    <! DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / BY" > ".
    < html >
    < head >
    < title > Structure CSS < /title >
    < style >
    div
    {
    do-family: Arial;
    color: Blue;
    font size: .9em;
    border: 1px solid black;
    }
    p
    {
    border: inherit;
    }
    one
    {
    border: inherit;
    }

    < / style >
    < / head >
    < body >
    < p > the Information technology (it) has been the domain of the most famous and more attractive during the 20 years and many students choose to study computer science and Information System who are eligible that they work as programmers, developers, database administrators and network engineers. < /p >
    "< Div > the < a href =" http://www.w3.org "> W3C site < /a >"
    contains the standard specifications of the web and it is very useful for Web designers, developers and software architectures to navigate this Web site. For example, you have CSS 2.1 specifications and XHTML 1.0 specifications discuss everything from A to Z on < br > technology
    < p > you can use CSS with the markup such as HTML, XHTML and XML languages. "All these languages for markup and CSS specifications a that the < a href =" http://www.w3.org "> W3C site < /a > < /p >"
    < / div >
    < / body >
    < / html >

    Based on your information and some additional research I discovered what is happening.

    IE6, IE7 and Opera does not support the value inherit. Firefox support. Design of DW window does not using any browser (they make their own thing), but also, incidentally, doesn't support (rendering) border: inherit.

    To help! important or no short form of border won't help.

    At least this is what explains what is happening.

    Thank you.

    Thank you

  • Button behaviour does not, need help.

    I created buttons in flash, and when a user selects the button of my services, there is a submenu that is displayed, and in this sub menu, there are two other buttons.

    I named (name of the instance) one of my buttons in this submenu "design_btn" and included a code for each button, but when I test the movie I get an error for my submenu "design_btn" with the description of:

    "The unidentified design_btn.addEventListener (event MouseClick, designClick) access;"

    I'm confused, because I made sure I got the name of the instance appropriate for each of my buttons, but present a button does not.

    Any ideas of what is the problem?

    This is the code I used for the buttons. Stop() on top

    design_btn.addEventListener (MouseEvent.CLICK, designClick);

    function designClick(event:MouseEvent):void

    {

    var request = new URLRequest ("http://www.youtube.com");

    navigateToURL (request, "_blank");

    }

    Either don't name the variable with the same name each time, or declare it outside the service and assign it to the inside.  The version of the latter would be...

    var request: URLRequest;

    function servicesClick(event:MouseEvent):void

    {

    If (evt.target.name == "webdesign_btn") {}

    request = new URLRequest ("http://www.sign.net/");

    navigateToURL (request, "_blank");

    } Else if (evt.target.name == "pcRepair_btn") {}

    request = new URLRequest ("http://www.sign.net/");

    navigateToURL (request, "_blank");

    }

    Else if (evt.target.name == "busSupport_btn") {}

    request = new URLRequest ("http://www.sign.net/");

    navigateToURL (request, "_blank");

    }

    }

  • Lenovo k900 hsdpa + doesn't work does not need help!

    I bought two lenovo k900 both work very well, but one of the k900 had some problems so he replaced by lenovo, now the problem is that I have the 3G compatible sim card and even I got the package 3G active Hat number whne I use the 3g network of these k900 the H icon only shows and I also have low speed on the net but same sim when I installed on my samsung S4 it shows me H + icon and high speed internet, so I tried this thing on my previous phone which is not replaced, and the new phone after replace and the three other k900 present the same problem could someone please help me n this what should I do?


  • simple script, does not. Help, please!

    Hi all

    I wrote a simple script to take the active layer in the current document, copy, paste in all open documents, and set the 'Color Dodge' blend mode:

    var docRef = activeDocument;
    var layerRef = docRef.activeLayer;
    var Sindocs = documents.length;

    layerRef.copy ();


    for (i = 0; i < = Sindocs-1; i ++)
    {

    activeDocument = documents [i];
    activeDocument.paste ();
    activeDocument.activeLayer.blendMode.COLORDODGE;

    }

    the script works, except for the change in merge mode. I tried to split the single command into components (for example, assign activeDocument.activeLayer to a temporary variable, then setting the blendMode on this variable). I guess I'm missing something stupid and simple, since this is my first Java script.  Any help would be appreciated!

    Oh, I use CS2 under WinXP.

    Thanks again,

    EPH

    You can try this...

    var docRef = activeDocument;
    var Sindocs = documents.length;
    docRef.selection.selectAll ();
    docRef.selection.copy ();

    for (var i = 0; i)< ndocs;="">
    activeDocument = documents [i];
    activeDocument.paste ();
    activeDocument.activeLayer.blendMode = BlendMode.COLORDODGE;
    }

  • WARNING the script does not have anyone can help on this?

    I get this warning whe script does not try to use firefox.

    I get sound on my computer laptop windows vists home premum.

    Hello

    I suggest that you try the Firefox Forums for assistance.

    http://forums.mozillazine.org/index.php?c=4

    See you soon.

  • Why do I get a message from Script does not

    Whenever I turn on my computer and go on the internet (Firefox), I get a message from script does not always.  I always click the stop script.  For up to about half an hour, the computer is very slow and sometimes does not.  After about half an hour, the computer starts more smoothly.

    The complete message, I just had was: A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script ends.

    Script: chrome://divxhtml5/content/script.js:6

    I use norton 360 and Malwarebytes anti-malware to scan my computer for viruses and also auslogics disk defrag every week.  I also use Windows Vista, which he said can cause some problems.

    I spoke to a staff member of my internet provider who told me it was a simple problem to solve, but they could not advise me on how to do it.

    Thanks for any help.

    Hi johne278,

    Thanks for posting in the Microsoft Community.

    Please answer the question-

    This problem occur on Internet Explorer as well?

    Method-

    If the problem is specific to Firefox, so I'd like you to contact the Support of Mozilla Firefox and post a question the Mozilla Forums as well.

    We know if you need help. We will be happy to help you.

    Thank you.

  • Comparison of simple table does not. Help, please!

    I struggled with this problem for a few days now, and I'm slowly losing my mind.

    • I am in Adobe Acrobat 10.
    • I have a field called button group: btn0, btn1, btn2, etc..
    • I have a band called text fields: txt0, txt1 txt2, etc..
    • I have a script that takes the value of txt0 and makes the legend of btn0 and so on.
    • I have a script that sets the btn0 to setFocus txt0 MouseUp action, and so on.
    • These scripts work very well.
    • I have a script that takes values of all fields txt and sort puts them in a table.
    • I have a script that takes the array element [0] and makes the legend of btn0 and so on (alphabetical list of buttons).
    • These scripts work very well.
    • I am trying to compare the value of the array element [0] to each field txt to find the match, then set the action MouseUp btn0 to setFocus to the corresponding txt field, and so on (until my alphabetical list points to the correct location).
    • It is here where I am at a loss.

    Here's what I have:

    specified fields txt

    txt0 var = this.getField ("name of Z");

    txt1 var = this.getField ("name");

    etc.

    put their values in an array named rxArray

    var rxArray = [txt0.value, txt1.value]; etc.

    sort the table

    rxArray.sort ();

    Set the legends on the sorted array elements

    for (var i = 0; i < 5; i ++) {}

    var b = ("btn" + i);

    this.getField (b) .buttonSetCaption (rxArray [i]); works very well; sort by alphabetical order of the list of buttons

    Here is what goes wrong

    for (var x = 0; x < 5; x ++) {}

    var r = ("txt" + x);

    If (rxArray [i] == r.value) {}

    var s = (r + ' ". setFocus();" ');

    this.getField (b) .setAction ("MouseUp", s);

    }

    }

    }

    end

    Here's what I know:

    Alphabetical order and labeling works very well, but the MouseUp scripts to buttons work at all. Nothing happens.

    If I change the piece next to the above script:

    If (rxArray [i] == r.value) {}

    var s = (r + ' ". setFocus();" ');

    this.getField (b) .setAction ("MouseUp", s);

    To do this:

    If (rxArray [i] == txt1.value) {}

    var s = (r + ' ". setFocus();" ');

    this.getField (b) .setAction ("MouseUp", s);

    Because rxArray [0] is equal to the value of txt1 ("name"), then the MouseUp script for btn0 Gets the value:

    Txt4.SetFocus ();

    So I know that, whenever the nested loop runs, the case statement is true, and the setFocus script updated. Until the end of the loop, leaving the setFocus as last run element. Then why my script does not work? It should only update the setFocus script IF the array element matches the txt field and it is on THIS field of txt.

    Please please help. I know I'm missing something simple somewhere.

    I don't see why you would need tables at all... For example, sortNumber.

    You can essentially all this code replace it with this:

    for (var x = 0; x)< 5;="" x++)="">

    var t = this.getField ("t" + x); the text field

    var b = this.getField ("btn" + x); the button

    b.buttonSetCaption (t.value);

    var s = "this.getField('"+_t.name_+"').setFocus()";

    b.setAction ("MouseUp", s);

    }

    It is the same for the rest of your code as well.

    With respect to the addNew function, you must add a pause command inside the if statement to prevent continue further after the first empty field has been found.

  • script does not work in firefox, but in IE, chrome, and safari

    I have a landing page with a script of web form, www.wholewoman.com/newpages/landing/helpforcystocele.html. the script does not appear in firefox. In addition, any of our videos (served from kaltura (CDN) show up in firefox.) nor is the registration of scripts for our drupal forum. the good news is that there are a lot of firefox users worldwide. the bad news is that none of them can opt in my list, watch my videos or register for my forum. Help!

    With a .html page, it is impossible to include the HTTP headers in the page. It should be in a file external to the page setup (unless you have a very unusual configuration on your server).

    On an Apache Server, the headers are sometimes defined in a file .htaccess at the root of your site. If you view the site in an FTP program or extension, make sure that hidden files are displayed.

  • Tiara startup script does not work when running file associated with

    Hello

    I have a startup script that works correctly with tiara itself, however when I open a file associated with tiara (tdms files) the startup script does not work.  Is it possible to ensure that the script runs without worrying?  Thanks for the help!

    Bala

    Hi Bala,

    Depending on your use case, I suggest you call the next VI, which comes with LabVIEW, after your purchase VI is the creation of the data file.  Just pass the data file path in the upper part of entry and your path to the VBScript file in less than entry.

    "C:\Program Files (x 86) \National Instruments\LabVIEW 2013\vi.lib\ExportToExcel\DIAdem report Assistant Start CSC.vi '.

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • If the State shows red and javascript script does not

    I am just learning Javascript and I can't believe, I have problems with that simple statement, but alas I am.

    Any help would be appreciated.

    The script is a script of learning:

    JavaScript document

    var crust = prompt ("what kind of crust do you want - thin or regular?'");

    If (== crust "thin"). (crust is 'regular')) {

    var cheese is prompt ("choose your cheese?");.

    {Switch (Cheese)}

    case "mozarella":

    case 'feta ':

    "parmesan" case

    case "cheddar":

    break;

    by default:

    Alert ("sorry we not that kind of cheese.");

    break;

    }

    } else {}

    Alert ("sorry we don't serve that kind of crust here.'");

    }

    Line no 4 and 19 shows red and the script does not run.  Help, please.  I created a similar script with numbers and it works fine but as soon as I put channels in I get errors.

    I tried to rewrite these lines so many times in so many different ways.

    I use Dreamweaver CC 2015, I Am studying an old version of Javascript?

    Any help would be appreciated.

    Thank you

    Try to run your code through this online validation tool.

    JavaScript - http://www.jslint.com/



    Nancy O.

  • Point culminating script does not work correctly

    I try to get the yellow filled rectangle to become visible behind the digital field when the numeric field is greater than "1". Can anyone help to see why my script does not work?

    https://Acrobat.com/#d=MJObRvA * l9tbFmrlHcMHUA

    Thank you

    -Don

    Hi Don,

    Your code does not work because because it is not actually executed. It's because of put you the code on the text box itself output event and this would require the user to move to that field and then leave the field and then run the code.

    I would recommend you change you form to add this code at the end of the code that runs your "addAttachment" button and then the form works as I expect.

    If (NumberOfAttachments.rawValue > 1) {}

    RectangleYellow.presence = "visible";

    }

    Hope this helps

    Malcolm

  • Describe in SQL script does not work as you wish

    Hello

    Could you please help me determine why this script does not work.
    He said that the date is not set.

    Thanks in advance


    set p_day_sh = & data_sh
    set p_rowid_sh = & rowid_sh
    declare
    date of p_day_sh;
    p_rowid_sh varchar2 (18);
    Start

    If & p_day_sh is not null then
    trains t update
    Set t.offdate = to_date ('& p_day_sh ',' DD-MM-YYYY HH24:MI:SS')
    where t.rowid = '& p_rowid_sh';
    commit;
    end if;
    end;

    Hello

    In a command SET, if the string to the right of the = sign contains spaces, then it must be in quotes: in the case otherwise, only the first group of characters, white space will be affected.
    For example:

    define p_day_sh = &data_sh
    

    If & data_sh has this value:

    11-06-2009 06:25:09
    

    then the DEFINE command is

    define p_day_sh = 11-06-2009 06:25:09
    

    and & p_day_sh Gets the value of the part to the workspace:

    11-06-2009
    

    Either eliminate the space, Alex has proposed, or place the chain on the right side of the sign = in double - quote:

    define p_day_sh = "&data_sh"
    

    The double quotes will not change the meaning if & data_sh contains no white space.

  • Is there such a thing as a USB wireless, that does not need USB cable upstream that goes into the usb slot in the main computer?

    Is there such a thing as a USB wireless, that does not need USB cable upstream that goes into the usb slot in the main computer? I've looked everywhere but I can't find one. I hate the son, and I try to clear my desk of as many people as possible.

    # USB is cable only.

  • I mistakenly checked the box "don't show me this message again" on the Script does not have attention... How can I bring back?

    Hi and thanks for reading my question,

    I recently got a pop up box "warning: the Script does not" Firefox v38.0 and checked by mistake the box (paraphrase) "don't show me this message again."

    How can I report these warnings? I saw something in the tools-> Options area... have I missed?

    Thank you!

    You can check these prefs on the topic: config page and if either appears "BOLD" (user set) (bold) then right click in the pref and click Reset.

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

Maybe you are looking for