How can I view the swatches.everyItem in the drop-down list

Hello world

Can you fix my script, are intended to let the swatches.everyItem in the drop-down list

If (app.selection.length > 0 & & (app.selection [0].constructor.name == 'Cell' | app.selection [0].constructor.name == 'Table')) {}
If (app.scriptPreferences.version > = 6) {}
app.doScript (principal, ScriptLanguage.JAVASCRIPT, [], UndoModes.ENTIRE_SCRIPT, "style every second column in the selection");
}
else {}
main();
}
} else {}
Alert ("nothing or wrong selection!');
}

//---------------------------------------------------------------------------------------- --------------has some prolems in this part


var sN = doc.swatches.everyItem () .name,
sID = doc.swatches.everyItem (user.user),

main() {} function

var l, c = 0, o, p, pO = {}, pA = [];
If (s == null) {alert ("selected No. Swatch"); return ;};}               I want to show swatches.everyItem.name as myColor
s = doc.swatches.itemByID (sID [s.index]);

//---------------------------------------------------------------------------------------- --------------has some prolems in this part


var myFillTint = 20;
var myCharStyleName = "Bold";
var myStrokeWeight = 0.5;

var curSel = app.selection [0];
var allCells = curSel.cells;
var startCol = curSel.cells [0].name.split (":") [0] * 1;
var endCol = curSel.cells [-1].name.split (":") [0] * 1;
var curSel.cells = StartRowOptional [0].name.split (":") [1] * 1;
var EndRowOptional = curSel.cells [-1].name.split (":") [1] * 1;
var counter = 1 + startCol;

for (var i = 0; i < allCells.length; i ++) {}
var curCell = allCells [i];
var curCol = curCell.name.split(":") [0] * 1;
curRow = curCell.name.split(":") var [1] * 1;

If (curCol, counter)) {}
with (curCell) {}
fillColor = myColor;
fillTint = myFillTint;
text [0] .appliedCharacterStyle = myCharStyleName;
rightEdgeStrokeWeight = myStrokeWeight;
rightEdgeStrokeColor = myColor;
leftEdgeStrokeWeight = myStrokeWeight;
leftEdgeStrokeColor = myColor;
}
If (curRow == StartRowOptional) {}
curCell.topEdgeStrokeWeight = myStrokeWeight;
myColor curCell.topEdgeStrokeColor =;
}
ElseIf (curRow == EndRowOptional) {}
curCell.bottomEdgeStrokeWeight = myStrokeWeight;
myColor curCell.bottomEdgeStrokeColor =;
}

Counter = counter + 2;
}

If (counter > endCol) {}
counter = 1 + startCol;
} / / end if
} / / end for
} / / main end

John

Check the names of var and share the same version:

mColor vs myColor

mCharStyleName vs myCharStyleName

(will use you a dropDownList 2nd as well?)

Note that I'm just show the way. I'm not an end_product_supplier.

Jarek

Tags: InDesign

Similar Questions

  • How can I clear the drop-down list in the user credentials dialog box in windows XP?

    I deleted a .net passport account by using the network password manage
    I have cleare IE cache and everything related to passwords
    But when I opened a credential information, such the connection to Outlook dialog box, in the drop-down list I see still some old user names, none of them is not in the list of Auditors .net.
    How can I delete all the entries in the drop-down list?

    Hi PiterAsquini,

    You can review the article and check if that helps:

    How to handle the names of stored user and passwords on a computer that is not in a domain in Windows XP

  • How can I get the drop down tool to show options menu?

    Can anyone help.  I am using the adjustment tool, but when I click it, the drop down options do not appear.

    It's the same for all options on this line (my crop button does not show me options to block certain size etc.)

    What I support on so he can show.

    It is cc in lightroom

    This small black triangle is a toggle that expands / contracts an adjustment Panel.

    Try and then click on it.

  • My list of selection includes values that are long enough. Can I do the drop-down list "wrap text" so that it is not on one line?

    According to the title. My drop-down list offers entire sentences, which sometimes extend over the entire page that I don't like. Can I do extend over several lines instead?

    Daniel Jakes wrote:

    According to the title. My drop-down list offers entire sentences, which sometimes extend over the entire page that I don't like. Can I do extend over several lines instead?

    Lol this is not possible in the standard selection lists. The element plugin Select2 can support this, but this looks like a redesign of the interface user is really necessary. Radio buttons or check boxes are a better choice to make selections of the options with long descriptions. Redesign/reformulation of the interface would be the best approach. What are these options? Why are they used?

  • How can I add multi line selection in a drop-down list

    I just started with Acrobat DC. Everything is simple, until it isn't. I try to add items to my drop-down list. It's easy. I'm trying to make the choice of multi line. It is an inspection report and the choice will not fit on a single line. So after making the choice, can not read the answer. Thank you-Tim

    It is possible to do it, but only with a script and it's a kind of buggy. In other words, not really a good idea.

  • How can I activate the drop down bookmarks menu?

    I've just updated to version 19.0.2 (I don't know which version I had before) but the favorite icon does not have the little arrow on it and there is no drop-down underneath (on the right side of the screen) when I click on it; the entire sidebar is opening on the left side. How can I get directly the menu drop-down back?

    If you don't see an item on a toolbar and in the toolbar palette, then click on the "Restore default" button to restore the default toolbar set up.

    You can check for problems with the file localstore.rdf.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the start safe mode window or make changes.
  • How can I customize the drop-down menu that appears when I right-click on an image to save him?

    When I right-click on an image that I order to save on the web on my computer, the menu drop-down is displayed. And there, the topic "save image under" will this stupid "image send by e-mail! When I right click too, sometimess I miss and choose the "send image...". "and then another stupid email"send letter"appears. Hell, I hate! Please help me to remove (or hide permanently) this option "send image...". "in this menu the menu drop down.
    Because if I ever want to send any image by e-mail, I'll do it myself and I don't need FireFox to help me with this!
    Thanks much adavance! (My version of FireFox - 18.0.1)

    You can use this extension to change the menu.

    You can find this code in the file userChrome.css below default @namespace.

    Customization files (interface) userChrome.css and userContent.css (Web sites) are located in the chrome folder in the user profile folder.

    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    
    #context-sendimage,
    #context-sendvideo,
    #context-sendaudio { display:none!important; }
  • How can I get an address of record is displayed in the drop-down list the address Windows 7 bar.

    I am referring to what used to be called 'Windows explorer '. No IE. The address at the top of a folder window bar has a drop down menu that accumulates the addresses of record for quick navigation.  I frequently navigate to a particular folder, but it is never appear on the drop-down list. How to appear on the drop-down list?

    Nothing in the link answers the question, but I thought about it.  If you copy and paste a folder address in the address bar, it will be added to the drop-down list.

  • I disabled the menu and cannot access the drop-down list to get back them

    I disabled all the menus to make a screenshot and now I can't access the drop-down list to get back them

    This has happened

    Just once or twice

    is today

    You can hide the menu bar in Firefox 3.6 on Windows, on "view > toolbars" or via the contextual right click menu on a toolbar.
    Press in and hold the Alt key to display the menu bar.
    Go to "view > toolbars", right click on the menu bar, or press Alt + V T to select the toolbars to show or hide.

    See also what happened to the file, edit and view menus?

  • Increase in the drop-down list values

    Hello

    How to increase not the drop-down list in the time values?

    I tried to use this

    http://obiee101.blogspot.com/search/label/prompt.

    but not helped me


    Suresh-

    Hello

    Try adding the following to the instanceconfig.xml


    nnnn

    where nnn is the number of lines that you need to answer to the.

    Ian

  • How can I view the timestamps of text on an iPhone 5 c

    On my 5 c 9.3.1 running iPhone, outgoing text messages display a timestamp. Incoming messages only. How can I view the time stamp on incoming messages?

    It is displayed at the top of the first post of the series

  • Game to "Save history" for 30 days, can only view last 7 days - how can I view the longer history of 7 days?

    "Save history" set to 30 days but can only view last 7 days of history - how can I view the longer history of 7 days?

    According to your troubleshooting info, you have 2 set preferences to update the:
    Browser.history_expire_days
    7

    Browser.history_expire_days. Mirror
    7

    In the address bar, type Subject: config and press ENTER. The subject: config "This might void your warranty!" warning page may appear. Click on that I'll be careful, I promise! to continue on the subject: config page.
    Search for the preference browser.history_expire_days. Right-click on it and select reset. Do the same for other preferences.

  • How can I view the contents of the .iso files?

    How can I view the contents of the .iso files?

    How can I view the contents of the .iso files?

    http://www.ehow.com/how_7307521_iso-file.html

  • [Solved] How can I view the properties of a network connection?

    = Solution:

    I activated the "Netman" service (friendly name: "Network connections").

    =====

    Don't forget that? Yes. I've seen one of them because I've gone from WinXP to Win7.

    Note: The image above was extracted from the Internet. It is not my computer.

    See the checkbox "Show icon in notification area when connected"? That's how I got Windows XP configured so that I would see a network for each network adapter icon in the tray all the time. Now I never see a network icon. I want to be able to bring up the properties so I can solve network problems.

    My new Manager computer devices">"Network adapters"indicates:

    Intel Centrino WiMAX 6150
    Intel Centrino Wireless-N 6150
    Microsoft Virtual WiFi Miniport adapt
    Microsoft Virtual WiFi Miniport adapt #2
    Realtek PCIe GBE Family Controller

    How can I view the properties of a network connection? And how I can put the properties of connection icons in the notification for all connections of 5 area?

    Thank you.

    It's very strange.  I used this command on dozens of computers (at least) and never have it back empty.  I don't know what to do. Here's a typical result.

  • How can I view the trial version of Mappoint 2013?

    Original title: trial version of mappoint 2013

    I downloaded the trial version of Mappoint 2013 2013 today. When I try to use it, there is a message that says that my trial period is in place. How can I view the trial version?

    Try asking in the forums of Mappoint:

    http://social.Microsoft.com/forums/en-us/home?Forum=streetsandtrips

Maybe you are looking for

  • G0 ProBook graphics driver problem

    Hi, I downloaded the driver from this page http://h20565.www2.HP.com/portal/site/hpsc/template.page/public/PSI/swdHome/?sp4ts.Oid=5379193&spf_p... -Graphics card (graphics driver) and after I restarted my laptop the screen kept flashing and I had to

  • Windows 7 clean installation Blue Screen of Death (BSoD) on a loop of reboot

    Aloha everyone,I did an install customized windows 7 on a new Western Digital 1 TB sata hard drive, which has been formatted, partitioned, scandisk, and a ntfs c drive was created prior to installation.The installation ended safely.  I then install m

  • Windows verkenner

    Of all wil ik squeeze lack keer als ik mijn foto fusion Windows verkenner works niet meer en Voert alles af en begint opnieuw, wat kan ik dan yesterday aan doen

  • Automatisches Sichern of the Datenportals oder der Daten in eine tdm OHNE Uberschreiben der alten Datei Speichern

    Hallo Freunde DIAdem, There're eine possibility die Daten im DAtenportal through, while einer measurement, evt. Alle 2 min zu speichern? Eine weitere Lösung ware as mich, wenn man die Daten über den "Speichern-Block" direkt in eine tdm Datei schreibe

  • LP - E6n with LP - E6

    I understand that the LP - E6n is compatible with the 3-5-2 of 5, but can someone tell me if the most recent battery can be used with the old LP - E6 in a grip BG - E11. Thank you