Adding scripts to Actions

I am involved in a lot of works of handling thousands of photos (digital/scanned, B/W as well as color, of different ages: I have to treat images from '30s) and in my workflow (Bridge-Camera Raw-PSHP) I have a lot of repetitive actions to take.
One very delicate action is saving, in different moments of the workflow, images with different filenames extensions (having the same root of the initial image filename) in different directories; most of the times, this occurs at the end of an Action that I have recorded for specific job.
I would like to have a "script" that automates the renaming of the image file and writes it in the right directory, instead of typing the right extension and selecting the right directory by hand: beyond the waste of time, the real problem is that an error will have devastating effects.
I have tried to accomplish this with the standard PSHP Action facilities, but I haven't been able to.
I have an acceptable knowledge of Visual Basic, while I don't know anything about Scripting, and therefore the best thing would be writing imyself in VBA a function that handles the different situations for saving images with the right filename extensions in the right directory, producing a .exe that I would activate (it should be possible, but how ?) at the end of diffrent Actions: where do I get the filename of the image and the directory where it comes from ?
BTW, I have the Design Premium Creative Suite 3 in an XP SP3 always updated.
Great thanks to the ones that can help me: I need it.
Mauro (Italy)

As a start could you please try this script.
Open  "Adobe ExtendScript Toolkit 2" (This is installed with Photoshop) and should be available in Start Programs.
Copy and paste this code into an ExtendScript window.
Then File- Save to C:/Program Files/Adobe/Adobe Photoshop CS3/Presets/Scripts folder
Close Photoshop if open then re-open Photoshop
Load a test picture for Definitive then run the script and see if it does what you require.
To run the script File - Scripts and select the script.
If it does you can add the script to the end of your action by selecting  "Inset Ment Item" in the action palette and File - Scripts and select the script.
#target photoshop
function main(){
if(!documents.length){
alert("You do not have a document open!");
return;
var newPath = Folder(decodeURI(activeDocument.path) +"/" +"Definitive"); //This is the target folder
if(!newPath.exists){
var result = Window.confirm (decodeURI(newPath) +"\nDoes Not Exist\nWould you like me to create it?", true, "Folder does Not Exist");
if(!result) return;
newPath.create();
var newName = decodeURI(activeDocument.name).match(/(.*)\.[^\.]+$/)[1];
newName = newName +"-DEF.tif"; //The suffix with tiff format
var saveFile = File(decodeURI(newPath)+"/"+newName);
if(saveFile.exists){
var result = Window.confirm("This File Exits!\nWould You Like It Overwritten?", true, "File Exists");
if(!result) return;
saveFile.remove();
SaveTIFF(saveFile);
main();
function SaveTIFF(saveFile){
tiffSaveOptions = new TiffSaveOptions();
tiffSaveOptions.embedColorProfile = true;
tiffSaveOptions.alphaChannels = true;
tiffSaveOptions.imageCompression = TIFFEncoding.TIFFLZW;
activeDocument.saveAs(saveFile, tiffSaveOptions, true, Extension.LOWERCASE);

Similar Messages

  • Scripting Illustrator actions, incorporating calls to Excel

    Hello all, I need some help...
    I am building a series of logos — based on word strings —  using Illustrator CS4 with a combination of Actions, but also retrieving the word string from an Excel file.
    Normally for one or two iterations of the process, I would not hassle with a script, but this is a mind-numbing repetitive task, and I have to make 6,000 logos!! Seems the ideal use for a script.
    We have tried to work with ExtendScript Toolkit (ESTK) but we can't get our heads around how to make it do certain things, and I can't find anyone who really knows how to use ESTK correctly.
    I have a MAC, so the script has to be written in Java Script or Apple Script.
    Here's what I need to do:
    Execute Action: Open a Master Illustrator doc. This doc is already configured with art board, pre-defined type box (Area Type Optioned), Charater Styles, Drop Shadow parameters set. <pause Action>
    Run Script: Retrieve the word string from a cell in Excel worksheet (or CSV??). Some are single words, first letter capped. Some are two to four words Camel Cased. Example: "DinnerPartiestm". There are two additional charaters "tm" at the end of the word string that will be acted upon (remember these two characters for item 7 below)
    Run Script: Place this WordString into the predefined type box in the Illustrator Master doc. That is, in Illustrator, "select" the type box so the cursor is at first position and place the word string — copy from Excel & paste into Illustrator? <pause Script>
    Execute Action: Apply character style 1— font with point size, letter spacing, stroke and colour (It just happens to be red). Example: DinnerPartiestm  <pause Action>
    Run Script: Select all caps in word string. Example: DinnerPartiestm <pause Script>
    Execute Action: Apply character style 2 — Caps Only (selected) — New point size, baseline offset. Example: DinnerPartiestm <pause Action>
    Run Script: Select last two letters of word string. Example: DinnerPartiestm <pause Script>
    Execute Action: Apply character style 3 — last two letters only (selected) — New point size, change colour, baseline offset. Example: DinnerPartiestm <pause Action>
    Run Script: Select text box. <pause Script>
    Execute Action: Apply Stylize > Drop Shadow — On contents of text box, preset DS parameters in either Appearence panel or Effect menu.
    Execute Action: File > Save As .ai document. <at Save As dialog, pause action>
    Run Script: Retrieve file name from Excel and place in Save As dialog (copy & paste?). In next column in Excel doc, same row, is a SEO-friendly file name. Example: word string is "DinnerParties"; file name (next column) is "logo-dinner-parties"
    Run Script: Select folder to save the .ai doc into. Example: Folder is "Logos AI". <pause Script>
    Execute Action: Complete Save As. Example: in Folder "Logos AI" now we have the file "logo-dinner-parties.ai"
    Execute Action [assumes that the Saved As document — logo-dinner-parties.ai — is now the active one in Illustrator]: Save for Web & Devices. Preset to PNG24/Transparent. Correct file name will NOT be in Save field. <at Save dialog, pause action>
    Run Script: Repeat retrieval process to get same file name from Excel.
    Run Script: Select new folder to save the .png doc into. Example: Folder  is "Logos PNG". <pause Script>
    Execute Action: Complete Save for Web. Example: in Folder "Logos PNG" now  we have the file "logo-dinner-parties.png"
    Execute Action: Close
    Repeat steps 1 though 19 until all word strings processed: Script has to know to go to next word string (next row) in Excel doc.
    This is a tricky one, but there's got to be a way to automate the process... otherwise I'll go crazy doing this manually!!
    IS THERE ANYBODY OUT THERE WHO CAN HELP?
    Thanking you in advance for any assistance.
    All the best.

    IS THERE ANYBODY OUT THERE WHO CAN HELP?
    Depends on what you mean by "help." Are you asking someone to do the whole thing for you (would require more detail), or do you intend to do it yourself, but are stuck on something? (You say you "tried to work with ESTK" and "can't find anyone who really knows how to use ESTK correctly"; but you don't say specifically what you're struggling with in ESTK.)
    ...doc is already configured with art board, pre-defined type box (Area Type Optioned), Charater Styles, Drop Shadow parameters set.
    Much of what can be done with any approach depends largely upon what Appearances and/or Effects are involved, and where. You imply that you want all of the "logo" to be contained in a single textFrame object. But Drop Shadow Effect cannot be applied at the character level, so it can't be included in a Character Style.
    So if you don't want all the text to have the same drop shadow, you will be involving multiple textFrame objects. That will lead to the complication of having to position the two textFrames relative to each other, depending on their dimensions after the varying text is inserted.
    Retrieve the word string from a cell in Excel worksheet (or CSV??)
    With scripting, it would be inefficient and unnecssary to go back-and-forth to the spreadsheet to extract values one at a time. Typically, you would create an array containing the full set of values, and then iterate through the elements of the array.
    Some are single words, first letter capped. Some are two to four words Camel Cased. Example: "DinnerPartiestm".
    So you're going to need a sub-routine of some kind (in Javascript, a function) to find capital letters.
    There are two additional charaters "tm" at the end of the word string that will be acted upon...
    If this is the same in each instance, and if you are going to script this, there is no need to include it in the data.  Insert the "tm" programmatically.
    That is, in Illustrator, "select" the type box so the cursor is at first position and place the word string — copy from Excel & paste into Illustrator?
    Using script, you don't have to select the textFrame, copy, or paste in order to insert content. You would declare a variable, assign its value (from the above-mentioned array), add the variable's value as text to textFrame's content.
    Apply character style 1— font with point size, letter spacing, stroke and colour (It just happens to be red). Example: DinnerPartiestm
    Here you will run into a difficulty inherent in Illustrator's poor implementation of stroked text. You can apply a Stroke at the Character level and include that Appearance in a Character Style. But Illustrator always positions such strokes in front of the fill--something you almost never want, because it "chokes" the fills, wrecking the shape of the characters. The workaround is to Add New Stroke and position that below the Characters listing in the Appearance Palette. But script provides no access to added strokes or fills and Added Strokes cannot be applied at the character level.
    Select all caps in word string. Example: DinnerPartiestm
    Illustrator cannot select discontiguous text strings. Again, script does not have to select objects in order to change their properties.
    Apply character style 2 — Caps Only (selected) — New point size, baseline offset. Example: DinnerPartiestm
    Apply character style 3 — last two letters only (selected) — New point size, change colour, baseline offset. Example: DinnerPartiestm
    The applyTo method of the CharacterStyle object. Or, just set the size and baselineShift properties of the characterAttributes property of the textRange directly.
    Apply Stylize > Drop Shadow — On contents of text box
    Drop Shadow Effect cannot be applied to the contents (character level) of a textFrame--only to the textFrame object itself.
    My very limited understanding of ESTK is that it is a scripting tool for  use in Illustrator.
    It's a script text editor included with the Creative Suite. You can use it to build scripts for any of the CS products (or entirely other purposes, for that matter). Or, you can choose to not use it at all. A Javascript is just a text file. Tools like ESTK add conveniences, references, etc., geared toward scripting.
    So, I'm only acting on the word string....
    But I am also not a coder...
    Which is why I would look into simpler already-built methods before jumping into a tedious solution scripted for Illustrator. For example: Many, if not most, AI users are familiar with InDesign. InDesign provides a proper dataMerge feature that can handle ordinary tab-delimited text. It's handling of strokes on text is correct, unlike Illustrator. If you set it up accordingly, it can create all the separate pages for you.
    You would:
    1. Draw the fixed graphic in Illustrator.
    2. Place the Illustrator graphic on InD's master page.
    3. Set and style the text objects. Insert DataMerge tags.
    4. Import the data and run the Merge function.
    InD builds individual pages for each row of the data. You're done. Export to PDF. InD and Acrobat also have their own scripting models. Either one can handle the specific naming convention, if really needed.
    Again, it depends on what exactly is "special" about the text object(s) you are manipulating with variable content. For example, if you're using an AI-specific Warp effect, you'd be back to Illustrator.
    Anyway, you want a paying gig?
    I do some freelance work as time permits and interest strikes, but I'm not cheap, and that's not why I frequent these forums.
    Scripting your solution entirely in AI may very well be possible, but whoever does it will need to see the specific objects, styles, etc., involved to avoid unnecessary guessing and time-consuming round-tripping. Why don't you post an image and/or an AI file?
    JET

  • The longstanding scripts-in-actions bug

    In case it is true that with the announcement of the new version the beta testers are relieved of the non-disclosure-agreement (as I think I read somewhere):
    Can anybody tell yet if Scripts in Actions will finally be maintained after restarting the appplication in Illustrator CS6?

    I can’t remember for sure if I filed a report, but I have added my support and started a thread in the Feature Request section.
    http://forums.adobe.com/thread/729118?tstart=30
    http://forums.adobe.com/message/3872075#3872075
    The Adobe team should have been aware of this for a looong time now in any case, because the issue has persisted at least since CS, if I remember correctly.

  • [svn] 638: opensource: added scripts to setup per-branch build environments : setup.sh; renamed setup.txt to README.txt.

    Revision: 638
    Author: [email protected]
    Date: 2008-02-23 14:46:04 -0800 (Sat, 23 Feb 2008)
    Log Message:
    opensource: added scripts to setup per-branch build environments: setup.sh; renamed setup.txt to README.txt.
    Added Paths:
    flex/sdk/branches/3.0.x/README.txt
    flex/sdk/branches/3.0.x/setup.sh
    flex/sdk/trunk/README.txt
    flex/sdk/trunk/setup.sh
    Removed Paths:
    flex/sdk/branches/3.0.x/setup.txt
    flex/sdk/trunk/setup.txt

    Revision: 638
    Author: [email protected]
    Date: 2008-02-23 14:46:04 -0800 (Sat, 23 Feb 2008)
    Log Message:
    opensource: added scripts to setup per-branch build environments: setup.sh; renamed setup.txt to README.txt.
    Added Paths:
    flex/sdk/branches/3.0.x/README.txt
    flex/sdk/branches/3.0.x/setup.sh
    flex/sdk/trunk/README.txt
    flex/sdk/trunk/setup.sh
    Removed Paths:
    flex/sdk/branches/3.0.x/setup.txt
    flex/sdk/trunk/setup.txt

  • CS6 scripting bug / Problème scripts d'action CS6

    Bonjour, suite à mon passage de la CS4 à la CS6, mes scripts d'action ne marchent plus.
    Ce script par exemple :
    Hi folks, going from CS4 to CS6 made my action scripts bug, especially those using pathfinder :
    divide / ungroup / default /  trim / ungroup / copy / paste in front
    Ces actions effectuées une à une donnent un résultat normal mais conduisent donnent une série de messages d'erreur une fois enregistrées dans un script :
    These actions do work normally when i perform them separetly but fail as soon as i record it in a script. Does anyone has an idea?
    C'est la même chose avec ou sans fond, avec ou sans contour. Ce même script fonctionne très bien sur CS4. Les raccourcis clavier sont les mêmes.
    HELLLLPPPPP!!!!!

    Bonjour, n'ayant jamais été confronté au problème, je suis allé regarder si la question avait été traitée en anglais.
    Mylenium a proposé une explication sur l'accès à certains ports du système.
    En fait pour lire une vidéo, Photoshop a besoin de créer un accès à ce fichier, en interne, si ces ports sont inaccessibles (bloqués par une appli tierce, antivirus, firewall (ou pare-feu) ou occupés par d'autres applications), cela peut échouer.

  • EventOpen action play results in error when adding scripting parameters

    Hi all,
    I have a setup that involves two plugins:
    A file format plugin which I've made scripting-aware and takes one parameter and,
    An automation plugin that opens a number of files of this format and which passes the parameter to the first plugin.
    For achieving this, I am playing eventOpen via the Action Control Suite, and using the code the Listener plugin from the SDK generates:
    SPErr PlayeventOpen(/*your parameters go here*/void)
         PIActionDescriptor result = NULL;
         DescriptorTypeID runtimeKeyID;
         DescriptorTypeID runtimeTypeID;
         DescriptorTypeID runtimeObjID;
         DescriptorTypeID runtimeEnumID;
         DescriptorTypeID runtimeClassID;
         DescriptorTypeID runtimePropID;
         DescriptorTypeID runtimeUnitID;
         SPErr error = kSPNoError;
         // Move this to the top of the routine!
         PIActionDescriptor desc0000000000000570 = NULL;
         error = sPSActionDescriptor->Make(&desc0000000000000570);
         if (error) goto returnError;
         // Move this to the top of the routine!
         Handle aliasValue = NULL;
         FullPathToAlias("C:\dev\data\test.dat", aliasValue);
         error = sPSActionDescriptor->PutAlias(desc0000000000000570, keyNull, aliasValue);
         if (error) goto returnError;
              // Move this to the top of the routine!
              PIActionDescriptor desc0000000000000578 = NULL;
              error = sPSActionDescriptor->Make(&desc0000000000000578);
              if (error) goto returnError;
              error = sPSActionDescriptor->PutFloat(desc0000000000000578, keyGamma, 2.2);
              if (error) goto returnError;
         error = sPSActionDescriptor->PutObject(desc0000000000000570, keyAs, 'tdfP', desc0000000000000578);
         if (error) goto returnError;
         error = sPSActionControl->Play(&result, eventOpen, desc0000000000000570, plugInDialogSilent);
         if (error) goto returnError;
    returnError:
         if (result != NULL) sPSActionDescriptor->Free(result);
         if (desc0000000000000570 != NULL) sPSActionDescriptor->Free(desc0000000000000570);
         if (aliasValue != NULL) sPSHandle->Dispose(aliasValue);
         if (desc0000000000000578 != NULL) sPSActionDescriptor->Free(desc0000000000000578);
         return error;
    By using this code, the call in line 47 returns an error code -25923 and the error string contains "The parameters for command “Open” are not currently valid.".
    These are some of the things I've tried already:
    Escaping the file path backslashes does not seem to help although it seems necessary.
    Playing the event with no parameter (remove lines 27:36) does work.
    Playing the event thought the Actions tab results in a dialog for browsing a file being open and no parameters are passed to my plugin.
    Changing plugInDialogSilent to plugInDialogDontDisplay in line 43 causes the same effect as the previous point.
    The plugin writes correctly the parameter into the scripting plugin (when provided via its UI) but it seems that somehow it is not able to retrieve it correctly when passed via the host application.
    In case it helps, this is the relevant part of my PiPL resources file:
    resource 'aete' (ResourceID, plugInName " dictionary", purgeable)
      1, 0, english, roman, /* aete version and language specifiers */
           vendorName, /* vendor suite name */
           "", /* optional description */
           plugInSuiteID, /* suite ID */
           1, /* suite code, must be 1 */
           1, /* suite level, must be 1 */
           {}, /* structure for filters */
           {      /* non-filter plug-in class here */
                plugInName,     /* unique class name */
                plugInClassID, /* class ID, must be unique or Suite ID */
                plugInAETEComment, /* optional description */
                {      /* define inheritance */
                     "<Inheritance>", /* must be exactly this */
                     keyInherits, /* must be keyInherits */
                     classFormat, /* parent: Format, Import, Export */
                     "parent class format", /* optional description */
                     flagsSingleProperty, /* if properties, list below */
                    "gamma",
                     keyGamma,
                     typeFloat,
                     "Source data gamma",
                     flagsSingleProperty
                     /* no properties */
                {}, /* elements (not supported) */
                /* class descriptions */
           {}, /* comparison ops (not supported) */
           {} /* any enumerations */
    I'll appreciate any help
    Thanks.

    Hi,
    If anyone come across this issue in the future, I've manged to get it working with what it seems to be a workaround by using the plugin runtime descriptor, replacing line 39 with the following code:
    error = sPSActionDescriptor->StringIDToTypeID("Test Data Plug-In", &runtimeObjOD));
    if (error) goto returnError;
    error = sPSActionDescriptor->PutObject(desc0000000000000570, keyAs, runtimeObjID, desc0000000000000578); 
    I'm not sure if anyone from the dev team can help clarify what's going on here, but seems to be either a bug in the Action Control Suite or the Listener plugin from the SDK not generating the correct output.
    Thanks.

  • Adding script to Available Scripts in Configuration Task

    I'm following the instructions for creating a Configuration Task here:
    http://docs.sun.com/app/docs/doc/817-7961/6mn8bt797?a=view
    My question: How do I get a new script added into the Available Scripts in the Edit File Set window? All that shows up there is email.sh, and I would like to add a script that we want to deploy to all of our SunMC clients, but can't find info anywhere on how to get it added into SunMC so that it can be selected.

    Hi SquibbyDog,
    My question: How do I get a new script added into the
    Available Scripts in the Edit File Set window? All
    that shows up there is email.sh, and I would like to
    add a script that we want to deploy to all of our
    SunMC clients, but can't find info anywhere on how to
    get it added into SunMC so that it can be selected.The scripts that are available are the same scripts that can be run as "actions" on that particular system. i.e. owned and executable as root, and in /var/opt/SUNWsymon/bin
    http://docs.sun.com/app/docs/doc/819-5417/6n7gj8272?l=en&a=view#actions-tab
    Remember also that you need special permissions to be able to pick up and move those scripts (regular SunMC admin priviledges are enough to move just the modules and thresholds). Use the "es-config -m" command to augment your SunMC account:
    http://docs.sun.com/app/docs/doc/819-5417/6n7gj8298?l=en&a=view
    Regards,
    [email protected]
    http://www.HalcyonInc.com

  • Script or Action - Make image square

    Need to add this to an action, rather than making all images square manually before batching them all.
    - All 500+ images are various sizes both portait, landscape and possibly square already.
    - They are all cropped tightly around the product with a white background.
    So currently: I just use canvas size, anchor to the centre and change the smallest pixel dimension to make it square, so none of the product is cropped.
    Any ideas?
    I couldn't get JJMack's aspect ratio script to help me.
    Automate -> Fit Image will take it to 1000 pixels but still won't be square.
    EDIT: Oh my. I just found this, looks like it'll do the job. Will test some more in the morning.
    var savedRuler= app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    var w = app.activeDocument.width;
    var h = app.activeDocument.height;
    if(w>h) app.activeDocument.resizeCanvas (w, w, AnchorPosition.MIDDLECENTER);
    if(w<h) app.activeDocument.resizeCanvas (h, h, AnchorPosition.MIDDLECENTER);
    //if w==h already square
    app.preferences.rulerUnits = savedRuler;

    I have a need for this script as well...is this the entire script?  If not, can you post the complete script?
    I just need to increase either the canvas width (as white area for the added width/height) or the canvas height to match the longest side of an image so they they are perfectly square.  No cropping or reduction in image sizes.  These are product images on white background.
    Is this the full script?
    var startColor = app.backgroundColor; 
    if(startColor.rgb.hexValue != 'FFFFFF'){ 
    var white = new SolidColor(); 
    white.rgb.hexValue = 'FFFFFF'; 
    app.backgroundColor = white; 
    var savedRuler= app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    var w = app.activeDocument.width;
    var h = app.activeDocument.height;
    if(w>h) app.activeDocument.resizeCanvas (w, w, AnchorPosition.MIDDLECENTER);
    if(w<h) app.activeDocument.resizeCanvas (h, h, AnchorPosition.MIDDLECENTER);
    //if w==h already square
    app.preferences.rulerUnits = savedRuler;
    if(white != undefined) app.backgroundColor = startColor; 

  • Scripting site actions within Safari

    I'm trying to establish a script to repeat a procedure which involves selecting numerous items in a select box on a website. I've found a plug-in for Firefox called iMacros which records user actions within websites but can't find anything similar for Safari.
    As I prefer Safari, I would like to be able to emulate iMacros on Safari.
    Any ideas?
    Thanks,
    Jesse.

    r_tist wrote:
    > Hi,
    >
    > Finally got a Mac and when I went to view a couple sites
    I had designed, I was
    > disappointed with a couple items that appear fine in IE,
    etc, but have found
    > they will need further tweaking to accomodate Mac's
    Safari browser.
    >
    > #1) my site has a gap of space by both the header and
    footer (you can tell
    > there's a gap because you'll see the faded background
    stripes within the
    > confines of my main interface design...within the
    borders). I'll bet this is a
    > simple fix as well. Please preview the site in
    Safari...I would really
    > appreciate your advice...I want to elimnate the gap:
    > www.c2cstudios.com
    get rid of the p tags around your header images:
    <p><img src="topbar.jpg" alt="C2C Studios"
    width="760" height="75" border="0" usemap="#Map"></p>
    should just be:
    <img src="topbar.jpg" alt="C2C Studios" width="760"
    height="75" border="0" usemap="#Map">
    >
    > #2) another basic example that goes a bit whacky in
    Safari browser:
    >
    http://fasttag.com/cohesive/index.html
    > As you'll see the text header of each boxed in container
    and the gradient bar
    > have shifted down, when they are supposed to be flushed
    to the top of the box
    > container. Can you please advise as to how I can clean
    up the code to correct
    > this for any potential Safari users?
    try adding
    height:14px;
    to the .tagtableblue class
    >
    > Many thanks!!
    >
    >
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    Downloads: Slide Show, Directory Browser, Mailing List

  • Links not working after adding script

    I added a drop down menu to my website and now none of my hyper links work.  Not external or even links to the other pages.  Here is the script.
      <script type="text/javascript">
        $(document).ready(function(){
          $('a').on('click', function(e){
           e.preventDefault();
           $('#ddmenu li').hover(function () {
            clearTimeout($.data(this,'timer'));
            $('ul',this).stop(true,true).slideDown(200);
          }, function () {
           $.data(this,'timer', setTimeout($.proxy(function() {
             $('ul',this).stop(true,true).slideUp(200);
           }, this), 100));
      </script> 
    I found that if I change the ('a') to ('b') all the links work except when I try to get back to the home page.

    Ken that is exactly what I am looking for.  I have the Script type code exactly like you posted it in the head plus the portion that I posted above is in the head.  Here is the whole code I will try to upload it this morning.
    <!doctype hyml>
    <html><head>
         <script src="Java Script/JQuery.js" type="text/javascript"></script>
         <title>BADKRacing</title>
           <link href="CSS/styles.css" rel="stylesheet" type="text/css" media="screen">
        <link rel="stylesheet" type="text/css" media="all" href="CSS/dropdown.css">
       <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
              <script type="text/javascript">
        $(document).ready(function(){
          $('a').on('click', function(e){
           e.preventDefault();
           $('#ddmenu li').hover(function () {
            clearTimeout($.data(this,'timer'));
            $('ul',this).stop(true,true).slideDown(200);
          }, function () {
           $.data(this,'timer', setTimeout($.proxy(function() {
             $('ul',this).stop(true,true).slideUp(200);
           }, this), 100));
      </script>  
            <link rel="stylesheet" href="CSS/nivo-slider.css" type="text/css" />
                <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js" type="text/javascript"></script>
                <script src="Java Script/jquery.nivo.slider.pack.js" type="text/javascript"></script>
            <link rel="stylesheet" href="CSS/default/default.css" type="text/css" />
                <script type="text/javascript">
        $(window).load(function() {
           $('#slider').nivoSlider({effect:"fade"});
       </script>            
        </head>
    <body>
    <div id="wrapper">
            <div id="top">
                <div id="logo">
                 <img src="Images/BAD K Logo.JPG">
                </div>
                <div id="social-media">
                 <ul>
                     <li><a target="_blank" href="https://www.facebook.com/pages/BAD-K-Racing/115436301814031?v=wall"><img src="Images/Social Media Icon/facebook.png"></a></li>
                     <li><a target="_blank" href="http://www.youtube.com/profile?user=BADKRacing&view=videos"><img src="Images/Social Media Icon/youtube.png"></a></li>
                    </ul>
                </div>
            </div>
            <div id="content-wraper">
             <div id="content">
              <h1>Welcome to BAD K Racing</h1>
             </div>
            </div>  
    <nav>
         <div id="menu">
        <ul id="ddmenu">
                 <li><a href="#">Home</a></li>
                    <li><a href="#">Race Day Info</a>
                     <ul>
                         <li><a href="schedule.html">Schedule</a></li>
                            <li><a target="_blank" href="Updateshttps://www.facebook.com/pages/BAD-K-Racing/115436301814031?ref=hl">Updates</a></li>
                     </ul>
                    </li>
                 <li><a href="#">Drivers</a>
                       <ul>
                         <li><a href="Andrue.html">Andrue</a></li>
                            <li><a href="Dave.html">Dave</a></li>
                     </ul>
                    </li>
                 <li><a href="#">Racecars</a>
                        <ul>
                         <li><a href="prochallenge.html">Pro Challenge</a></li>
                            <li><a href="Superstock.html">Super Stock</a></li>
                     </ul>
                    </li>
                 <li><a href="#">Gallery</a>
                        <ul>
                         <li><a href="photo.html">Photos</a></li>
                            <li><a target="_blank" href="Videoshttp://www.youtube.com/user/BADKRacing/videos">Videos</a></li>
                     </ul>
                    </li>
                    <li><a href="contact.html">Contact</a></li>           
                </ul>
           </ul>
    </div>
    </nav>
            <div id="banner">
             <div class="ribbon"></div>
             <div class="slider-wrapper theme-default">
              <div id="slider" class="nivoSlider">
         <img src="Images/Karting 07 (184).jpg" alt="" />
         <img src="Images/4-20-13 (3).JPG" alt="" />
           <img src="Images/Karting 07 (185).jpg" alt=""/>
           <img src="Images/4-20-13 (1).JPG" alt="" />
        </div>
                </div>
      </div>
            <div id="footer">
            </div>
        </div>   
    </body>
    </html>

  • Adding a Lightroom action to Export Actions folder

    Despite endless monitor calibration with Spyder, my prints from Mpix come out much darker than they appear on my Intel iMac monitor (running OSX 10.5.5). I have tried using Shades to darken my monitor, but I don't like my screen looking that dark all the time, and I am afraid if it is not on all the time I will forget to use it when photo-editing. I am considering leaving Shades off and adding an action to my export preset for printing that would increase the brightness in Lightroom 2.1 by a certain amount. I know I could use a Photoshop droplet to do the same thing, but Lightroom will already be open, so I'd prefer to do it in Lightroom. How would I go about creating this action? I think I know where it goes once I've created it, but I don't see any menu item or subject in the Help files for how to create one. I'd appreciate any available help. Thanks

    You should try using their icc profiles.
    Apparently, they will send their profiles if you ask for it as others have been having the same issues with Mpix. I you have LR 2, you can export directly to these icc profiles. Also, make sure that you calibrate to a reasonable brightness of around 100-120 cd/m2, which is usually around 2/3 of the brightness scale on most monitors. These intel iMacs have very bright screens and might need even lower settings.

  • Script or Action to convert the .Indd File into PDF???

    Hello All,
    I am in need of a Action or Script to convert the InDesign CS4 Files to PDF Format.
    I already experiment some action in Illustrator which helps me a lot to reduce my process time.
    so i need a same kind of action or script to convert the Batch of InDesign files to PDF...
    Can anyone help me in this...

    Hi Gowdhaman
    You may want to download these example scripts:
    http://wwwimages.adobe.com/www.adobe.com/products/indesign/scripting/downloads/indesign_cs 4_scripting_guide_scripts.zip
    There, you'll find e.g. the ExportPDFWithOptions.jsx script.
    Best regards,
    - Peder

  • Running photoshop script or action from Bridge

    My general question is: is there a way to select a number of files in Bridge, then run a script on all of them? I'm interested in this regardless of whether it really answers my more specific question.
    My more specific need is: I want to be able to convert raw files to jpeg, using automatic camera raw settings, by selecting the files in Bridge and running a single script.
    Thanks,
    Mike

    I have a slight change to this question.
    I make changes to photos in Camera RAW (exposure, white bal, etc.)and save the changes.
    I have an action that I run from Bridge by selecting individual photos, running an action from Bridge using Batch. The action opens each .CR2 selected photo, resizes it, and saves as a jpg in another folder.
    For some reason, the saved photos are not reflecting the changes I made in Camera Raw.
    I constructed the action by recording the opening from Bridge into Camera Raw, and then clicking Open Image.
    The action applies all the custom settings I used in the initial image when recording the action to each photo.
    Any suggestions on how to solve the problem.
    Thanks for any help.
    Steve

  • Photoshop scripts within Actions

    Ok so I am currently trying to run a photoshop script within an action specifically Image processor.
    I can include the script by importing menu item although evyerthing i run the action i have to set up the script aka choose folder locations etc.
    My question.. is there a way to set the defaults so that the action automatically runs the script?
    Please help its driving me mad!

    Not sure what you mean exactly, but that the dialog is raised when you trigger Image Processor seems as expected.
    Why an Action anyway and not a proper Script for the whole operation?

  • Adding gradients to actions??

    Hi
    Does anyone have any advice/tips for adding Gradients into an action in Illustrator please (CS5)? I've been searching but not really found an answer.
    I've got the Gradient to work within the Action process, but it's not abiding by the attributes. The colours are fine, but the angle isn't being set – even though is does show the correct angle in the Action step in the panel. I need the Gradient to be at 90º to default, but it won't do it.
    I've tried adding as a Graphic Style, but that didn't work either.
    Any suggestions would be appreciated!
    Thanks!
    Ben

    Sorry, as said, I've tried that. Didn't work!

Maybe you are looking for

  • Problem slow motion Adobe Premiere Elements 7

    Hello, i`ve got a problem. If i import the media (from DVD) into Premiere Element 7 i can see the film material BUT i can only see it in slow motion! What should i do? Best regards!

  • I can't get downloads to load in iTunes. .

    when i hit open it does nothing or beachballs. i reinstalled itunes and it does the samething. anyone know how to fix this?

  • Home internet slow/ unusable since downloading OS X maverick

    I uploaded OS X maverick last night to my MacBook Air 2011. Since then when the Mac is connected the internet slows down for everyone in the house- down to 0-2 kbps- then speeds up as soon as I turn it on again- up to 12-14 kbps. Turning Bluetooth on

  • Office Jet 4500 G510

    Am having continual problems with this printer. Cartridge has been replaced. Now using reman. Have cleaned cartridge and aligned heads. Have error message reading 'print cartridge problem,[Black] refer to device documentation to troubleshoot.  Test p

  • Can you usb computer home share?

    I have my new laptop that I just received today and I wanted to transfer my itunes library from my desktop onto my laptop. I know that you can wifi home share which is what I am doing at the moment but it is going to take a long time. I was wondering