Script for changing individual folio colors

Hi,
I have a designer creating a 400+ page book where each page number is a different CMYK color based on the light spectrum (ROYGBIV). Is there a script out there that will apply a color to each page folio determined by a user's defined page range and beginning and ending of the spectrum? Thus, hypothetically, a user could assign Red (M100Y100) to Yellow (Y100) for pages 1-100 and Yellow to Green (C100Y100) for pages 101-250 and then go from Green to Red from pages 251-400.
Thanks!
--chung

Let's say you want to have red links in your #header and green links in your #footer.
CSS:
#header a {text-decoration:none}
#header a:link {color:red}        /**unvisited**/
#header a:visited {color:gray}  /**visited**/
#header a:hover,                   /**on mouse over**/
#header a:active,                  /**on click**/
#header a:focus                   /**on tab key/active in IE**/
{text-decoration:underline}
#footer a {text-decoration:none}
#footer a:link {color:green}
#footer a:visited {color:yellow}
#footer a:hover,
#footer a:active,
#footer a:focus 
{text-decoration:underline}
HTML:
<div id="header">
<a href="some-link.html">Link in the header</a> |
<a href="some-link.html">Link in the header</a> |
<a href="some-link.html">Link in the header</a> |
</div>
<div  id="footer">
<a href="some-link.html">Footer link</a> |
<a href="some-link.html">Footer link</a> |
<a href="some-link.html">Footer link</a> |
</div>
For more on CSS pseudo classes:
http://www.w3schools.com/css/css_pseudo_classes.asp
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media  Specialists
http://alt-web.com/
http://twitter.com/altweb

Similar Messages

  • Scripts for changing the address of the user when they have been in the box for 6 months

    Scripts for changing the address of the user when they have been in the box for 6 months
    If users are in a folder for deactivated users and disabled users in Active Directory, and been there for 6 moths do: change email address in exchange to existing email address.old 
    Anyone have suggestions on how I can go about it?

    What is this "box"?  What is this "folder" you're asking about?  You'll likely get a better answer if you use standard terminology.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • Edit catt script for changes in in web appl server higher than 6.4 release

    Hello Guru’s,
    Will you help me in editing the CATT script for changes in Web application server release higher than 6.4 release, when I look for edit mode it was showing the following message. will anyone suggest me is there any way to make changes.
    “While I was choosing change mode it was displaying the above message ( Message No:TT005)”
    Full points for the answer

    It seems there there is no problem with my FireFox 7.0.1 on my Mac OSX 10.7.2. So, maybe you can solve the problem by updating your OS. The only minor problem here is that Firefox doesn't display in the Tibetan fonts that you choose, it always display in Kailas font for Tibetan.

  • Script for changing InCopy assignment locations globally

    I have a book with multiple documents with hundreds of separate stories. I need a script to change the assignment locations globally within the ID document to a single folder. As it stands now, I can only change them one by one using their individual Assignment Options dialogue box in ID. Also, it would be nice to also be able to change the "Assigned to" field to a specific set of person(s).
    Someone had written a script a while back for ID2 that did just this but I can't seem to locate it. Not sure it would work with CS3.
    Anyone have any ideas?

    As Andbrowny asked, have you tried using OS X's Locations? See KB 106653, Using network locations in Mac OS X.
    If that doesn't give you the power that you need, checkout Location X.

  • Changing individual link colors

    I am making a website where I want a certain link to display in red while the other links stay white. I went into the page properties to set the link colors, but I cannot figure out how to individually change the colors for certain links. When I changed the link color properties, it does so for all the links. Is this possible to set individual link colors, and how would I go about doing it? Thank you.

    Let's say you want to have red links in your #header and green links in your #footer.
    CSS:
    #header a {text-decoration:none}
    #header a:link {color:red}        /**unvisited**/
    #header a:visited {color:gray}  /**visited**/
    #header a:hover,                   /**on mouse over**/
    #header a:active,                  /**on click**/
    #header a:focus                   /**on tab key/active in IE**/
    {text-decoration:underline}
    #footer a {text-decoration:none}
    #footer a:link {color:green}
    #footer a:visited {color:yellow}
    #footer a:hover,
    #footer a:active,
    #footer a:focus 
    {text-decoration:underline}
    HTML:
    <div id="header">
    <a href="some-link.html">Link in the header</a> |
    <a href="some-link.html">Link in the header</a> |
    <a href="some-link.html">Link in the header</a> |
    </div>
    <div  id="footer">
    <a href="some-link.html">Footer link</a> |
    <a href="some-link.html">Footer link</a> |
    <a href="some-link.html">Footer link</a> |
    </div>
    For more on CSS pseudo classes:
    http://www.w3schools.com/css/css_pseudo_classes.asp
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • Is there a script for changing layer names in ID CS4?

    I have multiple documents with an average of 20 layers in each. Each of the layers is named for the expiration date of the coupon in the ads. When a new order comes in I retrieve the previous files and change the dates via scripts and the Find/Change option. I have looked but cannot find a way to rename the dates in the layers as well.
    Does anyone know of a script for this?
    Thanks in advance!

    E-mail, eh? You're missing out a lot of fun stuff, as there is
    - editing your own posts
    - using bold and italics to highlight important stuff
    - finally being able to shout (some posters think it's necessary to use a large bold font to make their post stand out in the crowd. They are correct, it does. In the Bad way.)
    - inserting images
    - uh, Jive (-- sorry, couldn't think of any more fun stuff to add)
    Visit the scripting forum (using a web browser, s'il vous plait) by clicking here.

  • WLST script for changing password for userid in Weblogic 9.2

    Hello Everyone,
    We want to change password for userid in weblogic 9.2. Is there a way we can do this by using WLST script? If so please provide me with steps for doing that using WLST. Thanks in advance.
    - - Weblogic Consultant

    Did you try going to the WLST documentation and searching for it? Go to [http://edocs.bea.com/wls/docs92/pdf/config_scripting.pdf] and search for "Changing a Password". The example there seems to be what you need.

  • Script for changing tif links to jpeg

    Hi,
    I have a file linked to a bunch of tifs. I've run a script in PS converting those images to jpeg. I could manually change each link, but I'd much rather use a script to go through my doc and convert my link urls from *.tif to *.jpg
    Has anyone come across a script for this? and if not, I can build one, but I'm having trouble finding the InDesign Scripting Reference pdf. Can someone point me in the direction?
    Thanks,
    Stan

    I attached a new version of the script, but I haven't properly tested it yet.
    Is there a repository of InDesign scripts online somewhere? if there isn't there oughtta be....
    Here is Scriptopedia by Loik.
    I started a new page on my site where I want to post scripts for download and links to scripts on other sites, sorted by categories.
    There are loads of scripts on InDesign Exchange, but some of them are quite outdated — it takes ages to post scripts there.

  • Scripts for changing metadata in Bridge or CC ?

    A client of me wants to copy the filename of an image into a certain field in the Metadata, so that they can change the filename to another filename, so they can keep the original filename as reference.
    I know it's possible to do this manually in Bridge, but speaking of thousands pictures, this should be done with a script...
    Thanks for input

    You might try asking in Bridge General Discussion
    This Cloud forum is not about using individual programs
    This Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Using GREP styles for changing characters and colors

    Hello everybody,
    I have a question regarding GREP styles. I wish to change each letter of an alphabet in text to a square in a different color. For example: every 'a' in the text change to a yellow ■. I thought GREP styles would be perfect for it so I went to find/change, typed in my requests and InDesign told me it has found no 'a' in my text, which isn't possible. How do I fix it? And the other thing- is it possible to change the color of ■ ? Because i couldn't find the option.
    Please excuse me my incompetence, I am a new user of InDesign.
    Thanks in advance for your help! : )

    First off, it sounds like you want to use find/change with GREP, which is fine, rather than a GREP style, which is part of a paragraph style definition and cannot change the text in any way other than apply a character style to the found string, so would not help here.
    The not finding the text makes me think you've limited the search parameters in some way, either by limiting the scope to a selection, or by including a style or format requirement in the find options, perhaps.
    In order to do this, I think you are going to need to make use of the "other" category in the change dropdown and select Formatted Contents of Clipboard (which should clue you in that you need to make one of your colored squares and copy it to the clipboard before you run Find/Change). You can do this with either a plain text query or a GREP query, and there is no advantage to GREP in this case unless you want to match several different things and apply the same clipboard content to any of them.
    You'll need to run a separate find/change for each colored square. It might be possible to script a chain so it runs in a single operation, but that would also require swapping the colored sqaures on the clipboard which complicates things in this case. You might want to ask over in scripting: InDesign Scripting

  • Need Javascript code for changing text field color

    Looking for a Javascript code to change the textfield background color and edge color in acrobat?  (without any xfa reference)

    The background color is the fillColor field property: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.705.html
    and the edge color is the strokeColor property: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.723.html

  • Script for changing objects presence based on amount range

    Hello,
    Is there a way to change an objects presence (either a field or a subhead) based on the entered amount range in a numeric field? 
    For example:
    -The numeric field amount entered is a range between 1 and 49,999, then "Signature Subhead 1" appears.
    -The numeric field amount entered is a range between 50,000 and 250,000, then "Signature Subhead 2" appears.
    Etc.
    Any advice for this script would be appreciated.
    Thanks!

    Hi Bruce,
    Your solution worked perfectly.  If I was to expand the ranges (let's say to three ranges), would I just have to add another "case this" logic section such as this?
    switch (true)  
    case this.rawValue >= 1 && this.rawValue <= 49999:  
      SignatureSubhead1.presence = "visible";  
      SignatureSubhead2.presence = "hidden";
      SignatureSubhead3.presence = "hidden"; 
      break;  
    case this.rawValue >= 50000 && this.rawValue <= 249999:  
      SignatureSubhead1.presence = "hidden";  
      SignatureSubhead2.presence = "visible";
      SignatureSubhead3.presence = "hidden";    
      break;
    case this.rawValue >= 250000 && this.rawValue <= 500000:    
      SignatureSubhead1.presence = "hidden";  
      SignatureSubhead2.presence = "hidden";
      SignatureSubhead3.presence = "visible";    
      break;  
    default:  
      SignatureSubhead1.presence = "hidden";  
      SignatureSubhead2.presence = "hidden";
      SignatureSubhead3.presence = "hidden";   
    Appreciated,
    Eric

  • Need to find a scripts for changing default "Open with" iTunes app to Quick

    Hello all...
    I'm new to scripting but need a script really quickly...
    I was wondering if anyone knew where I could find a script that will change the default "Open with" of audio files placed within a certain folder on my desktop...
    I'm making sound clips with WireTap and dumping them in a folder called WireTapExports as .mp3. I then need to play them without using iTunes (and importing them by default) but going into the "Get Info" and manualy changing the "Open With" settings for each file is taking ages...and it's very irratating...
    Is there a way I can make all audio file put in that folder automaticaly open with Quicktime instead.
    I know this is quite easy to most but I've only just started looking at Applescript (i.e. a few days ago) and but I need this to work now...
    Many thanks in advance...
    PigeonCake...

    Not what you want, but if you hold the control key while getting info it changes to summary info which then lets you change the preferred application on a batch of files in one go.

  • Scripts for setting mail message colors quickly

    I've been frustrated at how difficult it is to set the color of a message subject etc in a mailbox. Sometimes applying a color would work, sometimes not, and many clicks required. Finally I wrote a simple script that appears in the Finder's Scripts menu, which applies a particular color to all emails that are selected. I made one version for each color I use (I use these to keep track of emails that are useful references, or that require some action, etc.) I added a leading space to the script names so they would appear at the top of the scripts menu. I wish I could connect them to buttons in the Mail window, but don't know a way to do that, and this is nearly as conveniet.
    Here's one of the scripts. Colors can be none, red, orange, blue, gray, green, purple, yellow:
    tell application "Mail"
    set selectedMessages to selection
    set nm to count of selectedMessages
    if (nm) is equal to 0 then
    display alert "No Messages Selected" message "Select the message(s) you want to color red before running this script."
    else
    repeat with nn from 1 to nm by 1
    set theMessage to item nn of selectedMessages
    set the background color of theMessage to red
    end repeat
    end if
    end tell

    HI Disha
    Check out these links. They will surely help
    http://www.geocities.com/mpioud/Z_EMAIL_ABAP_REPORT.html
    http://www.thespot4sap.com/Articles/SAP_Mail_SO_Object_Send.asp
    If you find this answer useful, please reward me for the same.
    Good luck
    Karthik Potharaju

  • Script for changing DHCP Exclusion Range

    I am looking for script which can change/modify  DHCP Exclusion  ( from 1-10 to 1-20 ) among 2000 scopes.   if any one have  script please help me on this
    Regards, Triyambak

    Hi Triyambak,
    If you are running Server 2012 and newer, please check the cmdlet
    Add-DhcpServerv4ExclusionRange in DHCP Module.
    DHCP Server Cmdlets in Windows PowerShell
    You can also refer to these functions to add and remove the exclusion range to a DHCP scope on the old Windows Server version.
    Remove-DHCPExclusionRange 
    Add-DHCPExclusionRange 
    Refer to:
    PowerShell Module for DHCP
    If there is anything else regarding this issue, please feel free to post back.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Maybe you are looking for