Aperture script menu plugin won't save

So I've created an Aperture workflow that extracts metadata, writes it to a text file and opens in excel for me. This workflow works as expected from within Aperture. The way it functions is to run the operation on Selected files from within Aperture so I want it to show up in the script menu but when I save it as a plug-in it doesn't show up in the menu.
A grep of the entire disk shows no sign of the filename anywhere. What gives?

No one has a single clue about this?

Similar Messages

  • Any way to write code to cache the contents of the scripts menu? (or force ScriptsMenu plugin start)

    In the scripting forum I created the thread Adding custom scripts to actions revisited - Partial workaround
    Basically, you can create actions with keyboard shortcuts to execute custom javascript/vbscript, etc. and successfully reload them after restarting Illustrator but only if the user manually navigates to File->Scripts before manually loading an actions (.aia) file
    Any script menu items added to actions will be stripped from the custom actions when Illustrator is restarted because, I believe, the script menu items are not cached and are therefore invalid when the actions are automatically reloaded.
    Obviously, I'd prefer not requiring the user to navigate to the scripts menu and replace the actions every time Illustrator is started.
    Does anyone have any ideas on a way to write code so that Illustrator caches the contents of the scripts menu? Preferably this would be before the actions are loaded so they don't get invalidated and need to be reloaded in the first place. A keyboard macro would likely execute to late to be of much help.
    If anyone knows anything about the actual mechanism of caching the scripts menu or knows of anything else relevent to this please respond.
    Thanks!
    Edit: The menu is created in the Scripts Menu plugin (ScriptsMenu.aip). Perhaps there is no "cache" of the menu and the plugin just doesn't perform the startup until you browse to the File->Scripts menu?
    AIMenuGroups.h has the global definition of the group:
    #define kScriptsMenuGroup         "ScriptsMenuGroup"

    Have you looked at stored outlines ? They are for plan stability.
    Also you may want to look little deep on where your statistics are going wrong.
    I would recommend using below hint and checking where is difference in estimated(E-Rows) and actual number(A-rows) of rows. This may point out some incorrect stats.
    e.g.
    select /*+ gather_plan_statistics */ * from dual;
    D
    X
    select * from table(dbms_xplan.display_cursor(null,null,'ALLSTATS LAST'));
    Plan hash value: 272002086
    | Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers |
    | 1 | TABLE ACCESS FULL| DUAL | 1 | 1 | 1 |00:00:00.01 | 3 |
    ------------------------------------------------------------------------------------

  • "Show Script menu in menu bar" setting won't stick

    Hi all,
    I'm starting some Applescript development, and I'd like to make some scripts available in the Scripts menu. I checked the box to "Show Script menu in menu bar" from within the prefs for AppleScript Editor, but it doesn't work. When I close AppleScript Editor, relaunch it, and look at the prefs again, the box is unchecked. I deleted the relevant preference files from my Library and recreated them by launching AppleScript Editor, but the setting just won't stick.
    Any ideas?
    -Tim

    Taylor,
    The preference that I'm looking at is within AppleScript Editor, the program I use to write new AppleScripts. Script Editor was the previous name of the same application. When I check the "Show Script menu in menu bar" in the AppleScript Editor prefs and close with window. The box is unchecked the next time I open the AppleScript Editor application, and the Script menu never appears in my menu bar. Everything works fine on my iMac at home. The problem seems to be isolated to my MBP. Weird.
    -Tim

  • My downloads won't save, always "file not found." Doesn't seem to be profile or plugin problem

    One day out of the blue, I started noticing that my usual downloads won't save to my designated folders, images, pdfs, and etc. Sure, the progress bar will indicate that it is being downloaded, but once it finishes it just disappears like it never existed. If I hover over the thing, it just shows "file not found." I can even see the file disappear right from the folder it was being downloaded to. I thought it was just a temporary bug since using plugin download manager like FlashGet works fine. Then I noticed even simple image with right click Save As to designated folder won't save as well. I tried looking for solutions: deleting download.rdf (not found); resetting download settings under about:config ( browser.download.dir
    and browser.download.downloadDir not even found); clearing download history; delete downloads.sqlite and mimeTypes.rdf; and even running in safe mode. Nothing helped. I'm about at my wits end. I haven't changed my internet or security settings at all recently.

    It is possible that your anti-virus software is corrupting the downloaded files or otherwise interfering with downloading files by Firefox.
    You can try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
    See http://kb.mozillazine.org/Unable_to_save_or_download_files (Disable virus scanning in Firefox preferences - Windows)

  • Help with selecting files from script menu or drag and drop

    I found this scale images applescript online. It works great when a bunch of files is dragged on top of the script but I would like it to also work when a folder or group of files is selected in the Finder and I activate it from the scripts menu.
    I can't get my on run statement to work. I'm not really an Applescript guy so I'm really just asking if someone can help finish what I started in this on run.
    -- save in Script Editor as Application
    -- drag files to its icon in Finder
    property target_width : 120
    property save_folder : ""
    on run
    tell application "Finder"
    activate
    set folder_path to quoted form of (POSIX path of (the selection as alias))
    set theItems to every file of folder_path
    end tell
    end run
    on open some_items
    -- do some set up
    tell application "Finder"
    -- get the target width, the default answer is the property target_width
    set new_width to text returned of ¬
    (display dialog "Target width:" default answer target_width ¬
    buttons {"OK"} default button "OK")
    if new_width as integer > 0 then
    set target_width to new_width
    end if
    -- if the save_folder property has not been set,
    -- set it to the folder containing the original image
    if save_folder is "" then
    set save_folder to ¬
    (container of file (item 1 of some_items) as string)
    end if
    -- get the folder to save the scaled images in,
    -- default folder is the property save_folder
    set temp_folder to ¬
    choose folder with prompt ¬
    "Save scaled images in:" default location alias save_folder
    set save_folder to temp_folder as string
    end tell
    -- loop through the images, scale them and save them
    repeat with this_item in some_items
    try
    rescaleand_save(thisitem)
    end try
    end repeat
    tell application "Image Events" to quit
    end open
    on rescaleand_save(thisitem)
    tell application "Finder"
    set new_item to save_folder & "scaled." & (name of this_item)
    end tell
    tell application "Image Events"
    launch
    -- open the image file
    set this_image to open this_item
    set typ to this_image's file type
    copy dimensions of this_image to {current_width, current_height}
    scale this_image by factor (target_width / current_width)
    save this_image in new_item as typ
    end tell
    end rescaleandsave

    When items are dragged to your script's icon they are passed in to the on open handler, so this triggers:
    on open some_items
    and the dragged items are passed in as some_items
    In contrast, when you double-click on the script, or invoke it via the Script menu, this runs the on run handler:
    on run
      tell application "Finder"
        activate
        folder_path to quoted form of (POSIX path of (the selection as alias))
        set theItems to every file of folder_path
      end tell
    end run
    However, there's nothing in this block that actually does anything with the selection - you (dangerously) assume that the selection is a folder (you really should check first), and just set theItems to every file in that folder then you exit.
    So to do what you want you'll need to edit your run handler to filter the selection and pass files over to the code that does the hard work.
    You already have the basis for this - your rescaleandsave() handler, so it's just a matter of identifying the files in the selection and passing those over to that handler:
    on run
      tell application "Finder"
        set cur_selection to (get selection) -- get the selection
        repeat with each_item in cur_selection -- iterate through
          if class of each_item is folder then -- do we have a folder?
            set theFiles to every file of each_item -- if so, get its contents
            repeat with each_file in theFiles -- iterate through them
              my rescaleand_save(eachfile) -- and process them
            end repeat
          else if class of each_item is document file then -- do we have a file selected?
            my rescaleand_save(eachitem) -- if so, process it
          end if
        end repeat
      end tell
    end run
    So the idea here is that the run handler gets the selection and works through the (potentially-numerous) items. For each selected item it checks whether its a folder or a file, if its a folder it gets all the files within and passes them to the rescaleandsave handler.
    Note that this is not recursive - it won't catch files within folders within folders - since it only looks at the top level of selected folders, but it wouldn't be hard to rework the script to handle that if that's what you need.

  • Script or Plugin for exporting a PNG in different sizes

    Hi,
    I'm trying to create a template for our branding procedures. I am using Photoshop CS6 and I would like to have a PSD or even Ai file where I can place the logo I want to export and have it export to three sizes automatically.
    Does anybody know a script of plugin that can help me do this?
    I would need the same logo in 3 PNG sizes (72 resolution, RGB and with transparency):
    1500px, 500px and 150px wide.
    I know actions won't work because they save the file under the same directory and name so it gets replaced.
    I would appreciate some guidance.
    Thank you!

    Does this help?
    // 2014, use it at your own risk;
    #target photoshop;
    if (app.documents.length > 0) {
    // define sizes;
    var theWidths = [1500, 500, 150];
    // set to pixels;
    var originalRulerUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.PIXELS
    // the doc;
    var myDocument = app.activeDocument;
    // getting the name and location;
    var docName = myDocument.name;
    var basename = docName.match(/(.*)\.[^\.]+$/)[1];
    //getting the location;
    var docPath = myDocument.path;
    var theDup = myDocument.duplicate("copy", true);
    var theWidth = theDup.width;
    // work through array;
    for (var m = 0; m < theWidths.length; m++) {
    // resize;
    theDup.resizeImage(theWidths[m], undefined, 72, ResampleMethod.BICUBIC);
    // save png;
    savePNG (theDup, docPath, basename, "_"+String(theWidths[m]));
    theDup.activeHistoryState = theDup.historyStates[0]
    theDup.close(SaveOptions.DONOTSAVECHANGES);
    // reset;
    app.preferences.rulerUnits = originalRulerUnits;
    ////// function to png //////
    function savePNG (myDocument, docPath, basename, theSuffix) {
    // weboptions;
    var webOptions = new ExportOptionsSaveForWeb();
    webOptions.format = SaveDocumentType.PNG;
    webOptions.PNG8 = false;
    webOptions.transparency = true;
    webOptions.interlaced = 0;
    webOptions.includeProfile = false;
    webOptions.optimized = true;
    myDocument.exportDocument(new File(docPath+"/"+basename+theSuffix+".png"), ExportType.SAVEFORWEB, webOptions);

  • AppleScript freezes in editor but works in script menu.

    Hi guys.
    I've run into a weird problem while writing a simple AppleScript for Aperture. It works fine if I save it and run it from the script menu, but if I run it from Script Editor, all I get is a spinning beach-ball. How is this possible? This is the part of the script that makes it hang:
    tell app "Aperture"
    set sel_ to (get every image version of library 1)
    set list_ to {}
    repeat with i from 1 to (count sel_)
    tell (item i of sel_)
    if (get value of exif tag "CaptureYear") is 2010 then
    set end of list_ to (item i of sel_)
    end if
    end tell
    end repeat
    end tell
    Does anybody have an idea why this works in the script menu but not in the editor?
    Thanks,
    Morten

    Sorry, I should have posted this in the AppleScript forum.
    Morten

  • Jquery menu plugin  integrated in Tab's (using a custom theme )

    Hi,
    I'm trying to use the jquery menu plugin and use it combined with tab's. I would like to get the effect which is also in the APEX IDE ( TAB's with submenu's expanding below the TAB ).
    So far I have my tab's and also my menu's which are show as a button on the page which expand when you click on them. But I would like to have the menu attached to the tab.
    I found somewhere (http://www.theapexfreelancer.com/apex/f?p=APEXFREELANCER:JQUERY_MENU_PLUGIN:0) that I should name the TAB and the LIST's on which the menu's are build exactly the same to achieve this, but so far no luck.
    Does anyone know of a cookbook describing how to achieve this or has any ideas what to check ?
    Regards,
    Bas
    b.t.w. Have a great 2012!

    The steps can be detailed as follows (I will make it specific to my theme -Application Builder- and you can replace what you want)
    0) a) My Page template name is WithNicolettePlugin.
    b) Put the Nicolette (Thanks alot for him) plugin on #REGION_POSITION_08# in Page Zero (Global page)
    c) the settings of the plugin as follows:
    - Template : WithNicolettePlugin
    - Before HTML : <ul class="dhtmlMenuLG2"> - After HTML : </ul> - jQuery selector submenu : .dhtmlSubMenu2
    - Tab set : main
    - Include single subtab : yes
    - Class first parent : ui-corner-left
    - Class last parent : ui-corner-right
    - File Prefix : #IMAGE_PREFIX#
    the others are empty     
    1) link the following CSS's into the Header section of the Page Template of (Bluejay-22)
    <link rel="stylesheet" href="/i/css/apex_builder.min.css?v=4.2.0.00.27" type="text/css" />
    <link rel="stylesheet" href="/i/css/apex_ui.min.css?v=4.2.0.00.27" type="text/css" />
    <link rel="stylesheet" href="/i/css/apex_ui_builder_home.css" type="text/css" />2) link the following Scripts into the Header section of the Page Template
    <script type="text/javascript">
    var apex_img_dir = "/i/", htmldb_Img_Dir = apex_img_dir;
    </script>
    <script src="/i/libraries/apex/minified/desktop_all.min.js?v=4.2.0.00.27" type="text/javascript"></script>
    <script src="/i/libraries/apex/minified/legacy.min.js?v=4.2.0.00.27" type="text/javascript"></script>
    <style> html {visibility:hidden;} </style>
    <script type="text/javascript">
    apex.security.framebreaker("D");
    </script>
    <script src="/i/libraries/apex/minified/widget.textarea.min.js?v=4.2.0.00.27" type="text/javascript"></script>
    <script src="/i/libraries/apex/minified/builder.min.js?v=4.2.0.00.27" type="text/javascript"></script>3) Re-write the Body section to be as the following
    <div id="page-header">
      .... LOGO AND WELCOME HERE ...... 
       <div class="apex-top-bar-end">
           <div class="apex-top-bar">
                <div id="tabs" class="dhtmlMenuLG">
                  #REGION_POSITION_08#   <!-- Put the plugin at your page zero in REGION 8 -->
                </div>
           </div>
       </div>  
    </div>
    <div id="topbar">#REGION_POSITION_01##REGION_POSITION_04#</div>
    <div id="messages">#SUCCESS_MESSAGE##NOTIFICATION_MESSAGE##GLOBAL_NOTIFICATION#</div>
    <div id="body">
        <table class="tbl-body" cellspacing="0" cellpadding="0" border="0" summary="">
        <tbody>
          <tr>
            <td class="tbl-main" width="100%">#REGION_POSITION_02##BOX_BODY#</td>
            <td class="tbl-sidebar">#REGION_POSITION_03#</td>    
          </tr>
        </tbody>
        </table>
    </div>4- Update the section of Standard Tab Attributes to have Current Tab as the following *(PLEASE, REMOVE THE MINUS BEFORE onmouseover)*
    <li class="dhtmlSubMenuN" -onmouseover = "dhtml_CloseAllSubMenusL(this)" >
      <a href="#TAB_LINK#" class="dhtmlSubMenuN"
         title="#TAB_LABEL#">
         "#TAB_LABEL#
      </a>
    </li>
    {code}
    and Non Current Standard Tab as the following
    {code}
    <li class="dhtmlSubMenuN" -onmouseover = "dhtml_CloseAllSubMenusL(this)" >
      <a href="#TAB_LINK#" class="dhtmlSubMenuN"
          title="#TAB_LABEL#">
          "#TAB_LABEL#
      </a>
    </li>5- Update the section of Parent Tab Attributes to have Current Parent Tab as the following
    <div id="#TAB_ID#" class="current">
        <a href="#TAB_LINK#" title="#TAB_LABEL#" class="link_text">#TAB_LABEL#</a>
        <a href="#" class="link_icon">
          <img src="/i/apex/builder/down_dark_12x12.gif" width="12" height="12" 
               class="dhtmlMenu" alt="#TAB_LABEL# Drill Down"/>
       </a>
       <ul id="#TAB_NAME#" htmldb:listlevel="1" class="aTabs dhtmlSubMenu pulldown-tabs" style="display:none;">
           #TABS#
           <li class="last" dir="RTL"><span></span></li>
        </ul>
    </div>and Non Current Parent Tab as the following
    <div id="#TAB_ID#" class="non-current">
        <a href="#TAB_LINK#" title="#TAB_LABEL#" class="link_text">#TAB_LABEL#</a>
        <a href="#" class="link_icon">
          <img src="/i/apex/builder/down_dark_12x12.gif" width="12" height="12" 
               class="dhtmlMenu" alt="#TAB_LABEL# Drill Down"/>
       </a>
       <ul id="#TAB_NAME#" htmldb:listlevel="1" class="aTabs dhtmlSubMenu pulldown-tabs" style="display:none;">
           #TABS#
           <li class="last" dir="RTL"><span></span></li>
        </ul>
    </div>6- You will find a sample here in
    Workspace : ralab
    User : nicolette
    Password : abc123
    Application 33791 - TestDropDownAppBuilderTabs
    If the post completes your solution mark it as correct and the question as answered, otherwise, mark it as helpful.
    Best Regards
    Mahmoud

  • Makeing the scripts a plugin & sharing is fun!

    Hello world of scripters and fellow adobe enthusiasts. I've been tossing around the idea of making all my scripts into plugins for illustrator, and since they are all done in JS how hard would it be to do this?  Would it only be a matter of downloading eclipse and the SDK with a little copy and pasting and be done or would it mean an entire overhaul of my scripts?
    As for the sharing part I know that some of the scripts I've written I've done so with the help of previously written scripts.  I've gotten a lot of help from on here and I've even helped out a bit when I can.  I think it would be a big help to everyone if we shared some of our favorite scripts so that we can all see little tips and tricks that people have learned over the years.  Some of the things I've learned on here I've learned from looking at other peoples scripts and just going, "Wow I didn't know I could do that".
    I'll go first, this script is the one I created with the help of some of my fellow scripters on here but it is still a big thing for me. When the script is ran it grabs all the files that exist inside the folder that it is pointed to and creates a large list of radio buttons for the user to choose from.  Then if there is a guide box it will center the artwork inside the guide box and resize if needed.  It doesn't sound like much but it has been a big help to all of my fellow artists.
    //Created by Daryl R. Smith
    //This is the tab for Totes
    #target illustrator
    if (app.activeDocument.selection.length > 0)
        var thisDoc = app.activeDocument;
    var w = new Window ("dialog", "Choose Totes Template", undefined, {closeButton: false});
    w.alignChildren = "right";
                  w.onShow = function()
                        for(var i=0; i<totes1.children.length; i++)
                    var thisPanel2 = totes1.children[i]; 
                    thisPanel2.originalLocation = [thisPanel2.location[0], thisPanel2.location[1]]; 
                }//end for
            }//end on show function
    var tpanel = w.add ("tabbedpanel");
    tpanel.size = [400, 520];
    //******************************************************Section to setup the Totes Tab******************************************************************
    //creates the Totes Tab
    var totesTab = tpanel.add ("tab", undefined, "Available Totes");
    totesTab.orientation = "column";
    //Creates first Row Group for Totes, contains panels 1,2 and 3
    var TotesGroup = totesTab.add("group",undefined);
            TotesGroup.orientation = "row";
            TotesGroup.alignChildren = "left";
    //first Totes Panel
    var totes1 = TotesGroup.add ("panel", undefined, "");
    totes1.alignChildren = "left";
    totes1.size = [300,480];
    var docSelection = app.activeDocument.selection;
    var newGroup = app.activeDocument.groupItems.add();
    for ( i = 0; i < docSelection.length; i++ ) {
       var newItem = docSelection[i];
    newItem.moveToEnd( newGroup );
    newItem.name = "Art Item" + ([i]+1);
    newGroup.name = "ArtGroup1";
        //hide this alert, it is for testing the selection length
      // alert (thisDoc.selection.length)
    function GetToteTempNames()
        //Replace this address for the "toteTempPath" to the folder that has all the templates it in it, then the for loop will place them all
        //into a radio button array for the user to choose which one they want.  This updates everytime that this script is ran so if
        //one if removed or added it will show up reducing the amount of required time needed to update the script.
        //when replaced make sure to change the \ marks to / marks or it will not work.
      var toteTempPath = Folder ("S:/Art/ArtDept/  Vitronic Master Templates/STE2 Templates/TOTES & BAGS");  
      var toteTempFiles = toteTempPath.getFiles(); 
      var TotenamesArr = []; 
      for(var i=0; i<toteTempFiles.length; i++){ 
      var thisToteFile = toteTempFiles[i]; 
      TotenamesArr.push(thisToteFile.displayName);
      return TotenamesArr; 
    var totesarr1 = GetToteTempNames();
            for(var i=0; i<totesarr1.length; i++){ 
                var lbl = totes1.add("radiobutton", undefined, totesarr1[i]); 
            var scrl = TotesGroup.add('scrollbar'); scrl.size = [20, 480]; 
            scrl.onChange = scrl.onChanging = function()
            {  //start function
                for(var i=0; i<totes1.children.length; i++)
                {  //start for
                    var thisPanel2 = totes1.children[i]; 
                    var xLoc = thisPanel2.originalLocation[0]; 
                    var yLoc = thisPanel2.originalLocation[1]; 
                    thisPanel2.location=[xLoc, yLoc-((this.value/100) * ((totes1.children.length*27.5) - (scrl.size[1]+5)))]; 
                    // These numbers are my arbitrary way of setting the y location 
                    }//end for loop
                }//end function
           totes1.children[0].value = true;
            var bottombuttons = w.add ("group");
            bottombuttons.orientation = "row"
            var rsize = bottombuttons.add ("panel", undefined, "Resize Artwork?");
    rsize.alignChildren = "left"
    rsize.orientation = "column"
    rsizeyes = rsize.add ("radiobutton", undefined, "Yes");
    rsizeno  = rsize.add ("radiobutton", undefined, "No");
    rsize.children[1].value = true;
    var kbottombuttons = bottombuttons.add ("group", undefined, "")
    kbottombuttons.orientation = "column"
    kbottombuttons.add ("button", undefined, "Ok");
    //********************This section is for the functions to output your choice then run the function depending on the choice you made****************
    if (w.show () == 1)
    var templateselected = selected_rbutton
    var requestedtemplate = selected_rbutton (totalgroups)
    var confirmed = confirm ("You picked [ " + selected_rbutton (totalgroups) +" ]"+ "\nYou picked [ " + questionResize (rsizechoice) + " ] to resize" + "\n" +"\nContinue?");
            confirm.noAsDflt == false;
            if (confirmed == true)
                openTemp ();
                copyandmove ();
                centerArt ();
                resizeart ();
                alert ("You can now save the file");
             } /*end if */ else
             alert ("You chose not to continue, script stopped")
             }//end else
    }//end if OK
    }//end if selection check
    else
        alert("Please select the artwork.");
      } // end else selection check
    //*********This section is for the function to check which option for resize gets pressed and returns the text to a variable for output******************
    var rsizechoice = [rsize]
    function questionResize (rsizechoice)
    {//start function
    //when choice is pressed return choice text for variable output   
    for (var i = 0; i < rsize.children.length; i++)
    if (rsize.children[i].value == true)
    return rsize.children[i].text;
    }//end for
    }//end function QuestionResize
    //***************************************************************This is the section that will center the artwork ******************************************
         var thisDoc = app.activeDocument;
        thisDoc.rulerOrigin = [0,0];  //  Sets the coordinates of the artboard to the lower left hand corner of the document.
        thisDoc.pageOrigin = [0,0];  //  This makes sure a valid reference point is used for different sized documents.
        function centerArt()
           var thisdoc = app.activeDocument; 
            var selecteditem = app.activeDocument.groupItems[0];
            selecteditem.selected = true;
            var hasDocCoords = app.coordinateSystem == CoordinateSystem.ARTBOARDCOORDINATESYSTEM;
            var p = thisdoc.pageItems; 
            for (var i = 0, l = p.length; i < l; i++) { 
                var pID = p[i]; 
                if (pID.guides == true) { 
                    var guideBox = pID 
            var wNum = guideBox.width; 
            var hNum = guideBox.height;
            var swNum = selecteditem.width;
            var shNum = selecteditem.height;
            var sxOffset = (swNum/2);
            var syOffset = (shNum/2);
            var xOffset = (wNum/2);
            var yOffset = (hNum/2);
            var xNum = guideBox.position[0]+xOffset; 
            var yNum = guideBox.position[1]-yOffset;
            var guideXCenter = xNum-sxOffset;
            var guideYCenter = yNum+syOffset;
            var sxNum = selecteditem.position[0]+sxOffset;
            var syNum = selecteditem.position[1]-syOffset;
            //to test your script for position un annotate the two alerts below
                  // alert("GuideBox Data:\nWidth: "+wNum+"\nHeight: "+hNum+"\nX Position: "+xNum+"\nY Position: "+yNum);
                  // alert ("Selected object Data:\nWidth: "+swNum+"\nHeight: "+shNum+"\nX Position: "+sxNum+"\nY Position: "+syNum);
            //changes the position of the selected artwork to the center of the guide box.
            selecteditem.position = [guideXCenter, guideYCenter]   
        }//end centerart
       function resizeart()
      var selecteditem = app.activeDocument.groupItems[0]; 
       if (questionResize (rsizechoice) == "Yes")
            for (var i = 0; i < app.activeDocument.pageItems.length; i++)
                if (app.activeDocument.pageItems[i].guides == true) { 
                    var guideBoxSize = app.activeDocument.pageItems[i]; 
                }  //end if
            }   //end for
            var guideW = guideBoxSize.width; 
            var guideH = guideBoxSize.height;
            var itemW = selecteditem.width;
            var itemH = selecteditem.height;
             //to test your script for resize un annotate the two alerts below
          //  alert ("guide is this tall " + guideH + "\nguide is this wide " + guideW);
          // alert ("item is this tall " + itemH + "\nitem is this wide " + itemW);
            var artWidth = itemW;
            var artHeight =itemH;          
        if (artWidth > artHeight)
               var a = (guideW/artWidth)*100;
               selecteditem.resize(a,a);
        if (artHeight > artWidth)    
               var b = (guideH/artHeight)*100;
               selecteditem.resize(b,b);
    var artWidth2 = selecteditem.width;
    var artHeight2 =selecteditem.height;   
    if (artHeight2 > guideH)
           var c = (guideH/artHeight2)*100;
          selecteditem.resize(c,c);
       if (artWidth2 > guideW)
           var c = (guideW/artWidth2)*100;
          selecteditem.resize(c,c);
         }//end if doresize
    }//end function resizeart
    function savefile ()
        //change this folder location for the "savescript" variable to the one where the location of the save script is located on the server,
        //This save script is for the pallet that will pop up and list the different save options, not the individual save scripts themselves.
            var savescript =  new File("S:/Art/ArtDept/Illustrator JS Palette/Scripts/Art Share Server/Save/Save Option Pallet.jsx");
                savescript.open("r");     
           var bt = new BridgeTalk;
                bt.target = "illustrator";         
           var script = savescript.read();
                savescript.close();              
           bt.body = script;
           bt.send(); 
           return true;
    function copyandmove ()
    var thisDoc = app.activeDocument;  
    var template = app.documents[1];
    var vartwork = app.documents[0];
    var itemToDuplicate = template.pageItems['ArtGroup1']; 
    itemToDuplicate.duplicate( thisDoc, ElementPlacement.PLACEATBEGINNING );
    }//end function copyandmove
    //********************This section is for the functions to check which button gets pressed and returns the text to a variable for output ****************
    //all radiobutton groups must be present in this array
    var totalgroups = [totes1]
    //this function checks each group for the 1 radio button is clicked then returns its text
    function selected_rbutton (totalgroups)
    {//start function to check buttons
    /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Totes tab buttons
    //when totes1 is pressed return text for output
    for (var i = 0; i < totes1.children.length; i++)
    if (totes1.children[i].value == true)
    return totes1.children[i].text;
    }//end if
    }//end if
    }//end for
    //////////////////////////////////////////////////////////////////////////open template
    function openTemp()
         //change the folder location of the templates here but leave the last section that is black, this will allow the script to open which
         //ever template they chose from the radiobuttons.  This location should be the same as the toteTempPath above but reduces the
         //chance for something to break by pulling the address here again instead of from the variable near the begining of the script.
    var gettotetemp = File("Z:/  Vitronic Master Templates/STE2 Templates/TOTES & BAGS/" + selected_rbutton (totalgroups));
    var template = open(gettotetemp);
    var fileName = app.activeDocument.name
    var saveName = new File ("S:/Art/ArtDept/Extras/Temp Holding Folder" + "/" + fileName);
        saveOpts = new IllustratorSaveOptions();
        saveOpts.compatibility = Compatibility.ILLUSTRATOR15;
        saveOpts.generateThumbnails = true;
        saveOpts.preserveEditability = true;
      return template;
    }//end open temp function

    If you don't want to use IE, which I didn't, you can follow this link and revert back to an older version of FF until a fix or work around is found for the flash issue.
    http://www.mozilla.com/en-US/firefox/all-older.html
    It work for me. Fireforx 3.6.16

  • IDVD won't 'Save as...'

    I've just upgraded to iDVD 7.0.1 and my main project now won't 'Save as...' or 'Archive...'. If I select either of those items from the menu, the program instantly crashes, without even a Crash Report Form to reply to Apple.
    Oddly, I can 'Save', so there's an obvious workaround: duplicate the project file in the Finder, then use that to work with.
    I've restarted the machine, obviously, and checked everything I can think of. Is anyone else finding this bug?
    Martin

    Jim2006 wrote:
    What do you see in the console log when this happens?
    It says:
    2007-09-27 23:59:37.969 iDVD[411] NSExceptionHandler has recorded the following exception:
    NSInvalidArgumentException -- * -[NSCFSet addObject:]: attempt to insert nil
    Stack trace: 0x96098f10 0x92bfde68 0x92be65b0 0x001d45e4 0x000d5564 0x000d57c8 0x000cc1ec 0x00020fb8 0x00020d20 0x000cba94 0x93821c4c 0x9387c4b8 0x9387c23c 0x93783500 0x93780e64 0x937807a8 0x9377ccec 0x9386d87c 0x00004d78 0x00003adc 0x000037e0
    ##**## Not encoding -> exit(5)
    Martin

  • Firefox won't save images or web pages, even after upgrading, reinstalling and resetting... How do I fix this?

    A couple upgrades ago, I noticed that Firefox wouldn't boot properly. According to "Task Mgr.", it would load partially with a "*32" after it's name in the listing, but not enough to display a window on screen. After ending the process, and restarting the program again it would usually boot fully. (not always, but usually) The "*32" confuses me as I run a 64bit Windows 7 system and during installation I was sure that I saw mention of a 64bit program being installed. Apparently, after the last upgrade, that issue was resolved; but Task Mgr. still lists the program with a "*32" after it.
    The issue now at hand is that Firefox won't save images online or save web pages. I'll right-click and select "save image as" or "save page as" and... nothing. No box appears prompting me to name a file or designate a location to save that file to. Nor does anything happen when I use the "File" menu for the same function either. This is, to say the least, is very frustrating. There may be other things not functioning that I'm not currently aware of, but I haven't been able to or had time to do a complete check of the functionality of the program. I've never had issues of any significance with Firefox in the past. It's always been very reliable for me, so I'm hoping there's a relatively quick fix that I simply haven't been made aware of yet...
    Thank you for your suggestions and time looking into this matter...
    Curtis Laipple

    It probably will take a little time to work through this troubleshooting article, but hopefully you will get a complete solution: [[What to do if you can't download or save files]].
    Regarding the *32, I see the same thing on Win 7 Pro x64. No worries. Firefox for Windows is compiled only as a 32-bit application.

  • PSE 12 won't save the tiff file over the original, but brings up save as window

    I've solved (or had help) solving this problem before:
    http://forums.adobe.com/message/5893872#5893872
    I am using PSE 12 as a photo editor for Aperture 3.5.1 and the photo is duplicated (as a tiff) in Aperture and PSE editor opens with the image.  When I close the file and say to save the file it brings up the save as window.
    The fix from the earlier discussion worked fine at first, but now, even though I tell PSE 12 to "on first save -- save over current file" it now brings up the "save as" window and won't save over the file (changes the file type from .tiff to .tif)
    Has something changed?
    Dave

    Go to the editore preferences>general, click this button and restart the editor, then try again (You will need to reset the saving files pref first):

  • Java script menu

    Can anyone here help me with a Java Script Menu? It is a Vertical Drop Down
    Many thanks

    Try this:
    http://jsfiddle.net/NancyO/zN7fU/
    Reponsive Menu for Touch Screen Devices:
    http://www.meanthemes.com/plugins/meanmenu/
    Nancy O.

  • Script Needed to work with "Save for Web" Tool

    I am looking to compress the JPG image files using the Save for Web tool within Photoshop CS2. As you know, this tool yields better results in image quality and file size than the standard Photoshop Save As command.
    To this end, I would like to batch process multiple images within multiple sub-folders. Unfortunately, I havent found a process that will allow the use of the Save for Web JPG compression, batch process the JPG files within a sub-folder structure and re-write the images to the same folder.
    What I have managed to accomplish up to this point, is create a Photoshop Action incorporating the Save for Web tool. However, the Save for Web menu always prompts to save a file to a specified folder. This seems to be the Catch-22 to the batch processing capabilities. When using Photoshops batch processing feature with this Action, and also enabling include all sub-folders, all the resulting files created are always saved to one specified folder.
    I need a script (perhaps Java or Visual Basic) which will run in Photoshop, and allow the use the Save for Web tool (JPG High, Quality 60, Optimized), batch process a series of images contained within a sub-folder structure and then re-write the image files to the same location. Can anyone help with this?

    The files must be very large.
    On my machine
    AMD Athlon 64 3200+ 2.01GHz 1GB Ram
    It failed with an uncompressed file 347.6MB (40.9MB on Hard Disc) with not enough memory.
    It managed to do a 277.4MB uncompressed file (34.3MB) with no problem although it was slow.
    With such large files it might be betted to just do a folder at a time so there are two new vars that you can alter.
    MAXJPGSIZE this is the size of the file on the Hard Drive.
    SUBFOLDERS setting this to true will include subfolders and false will only process the selected folder.
    Paul.
    //GLOBAL vars, amend values to suit.
    //Maximum size of file in Megabytes  to process (This is the file size on the Hard Drive)
    MAXJPGSIZE = 34;
    // "true" = include subfolders - "false" do not include subfolders
    SUBFOLDERS = true;
    var imageFolder = Folder.selectDialog("Select the folder with JPGs to process");
    if (imageFolder != null)  processFolder(imageFolder);
    function processFolder(folder) {
        var fileList = folder.getFiles()
         for (var i = 0; i < fileList.length; i++) {
            var file = fileList[i];
      if (file instanceof File && file.name.match(/\.jpg$/i)) {
         if((file.length/1024/1024).toFixed(0) < MAXJPGSIZE +1){
                  open(file);
    var doc = app.activeDocument;
    var strtRulerUnits = app.preferences.rulerUnits;
    var strtTypeUnits = app.preferences.typeUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    app.preferences.typeUnits = TypeUnits.PIXELS;
    var saveFile = new File(decodeURI(activeDocument.fullName.fsName));
    saveFile.remove();
    SaveForWeb(saveFile,60);
    app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    app.purge(PurgeTarget.ALLCACHES);
    $.gc();
    app.preferences.rulerUnits = strtRulerUnits;
    app.preferences.typeUnits = strtTypeUnits;    
      } else
    if (file instanceof Folder && SUBFOLDERS) {
           processFolder(file);
    function SaveForWeb(saveFile,jpegQuality) {
    var sfwOptions = new ExportOptionsSaveForWeb();
       sfwOptions.format = SaveDocumentType.JPEG;
       sfwOptions.includeProfile = false;
       sfwOptions.interlaced = 0;
       sfwOptions.optimized = true;
       sfwOptions.quality = jpegQuality;
    app.activeDocument.exportDocument(saveFile, ExportType.SAVEFORWEB, sfwOptions);

  • 520 won't save MS password

    After update my 520 won't save password to my Microsoft account
    Moderator's note: We amended the subject as a new thread was created for this post. This is for other forum users to easily identify and answer the query.

    @nucklehead in Nokia Lumia 520 » Menu » Settings » Extras » Software Release: What does it say? Form a computer, are you able to log-in into your Microsoft Account via the web?
    Moderator's note: We amended the subject as a new thread was created for this post. This is for other forum users to easily identify and answer the query.

Maybe you are looking for

  • Can delete mail only ONE at a TIME

    Ever since the macmail app, changed it's appearence etc., I have been unable to delete unwanted messages I spot in my inbox. In order to delete them I have to open them one at a time, hit delete and w a i t. Going through 150 emails a day one at a ti

  • InDesign CS6 Mac 10.7.5 crashing

    I have a new MacBook Pro, purchased by my employer in July-shipped with OS 10.7.5. I can't launch ID CS6 - it hangs as has been reported with 10.7.4. I've tried both the fixes provided by Adobe. And, have reinstalled the software a few times just to

  • Express Needs to be restart every day

    Our Express needs to be reset at least once a day. The green light is on and we can see the SSID but when we use our mac (or any other device) to connect to it, we get connection failed errors. Any idea what can be done to fix this?

  • Transferring pdf file into AutoCad drawing?

    I use to scan a calc or detail into a jpeg file & then import with the "raster image reference" command into AutoCad 2009. The quality of the scanned import is not clear enough. Is there another way with Adobe Acrobat Pro? I tried using the AutoCad "

  • MDPH: Add variant family, make required or not, set values relevant or not

    I have this requirement to allow user to create Planning profiles like in tcode MDPH but based on input from excel file. So, there should be the possibility to mark newly added characteristics as 'Required' or 'not Required' and values as 'Relevant f