Batch or script cropping, renaming and resizing pdf's

HELP!
I'm desperatley looking for a way to do the folowwing in one batch or script with a complete folder of pdf's with printer marks and bleeds:
Crop
Create a file of 600*800 pixel on 72dpi with the addition of the word 'groot_' in front of the file name.
Create a file of 300*400 pixel on 72dpi with the addition of the word 'klein_' in front of the file name.
I work with CS4 on the mac.
I have looking for a solution for a couple of days and found a work around:
Cropping the files in a batch with acrobat.
Create a 600*800 file with a photoshop script.
The same thing for the 300*400 file.
Add the words in front of the files with apple automator.
This are 5 actions with 3 programs. I'm happy I found some way but I have the idea it could be done alot easier. Best would be with 1 script or batch in 1 program since I have to do this at least once a month and want to be able to instruct others as well without it being to complicated.
Does anyone have an idea?
Thanks!!!

Yes this is doable in one go with script. You don't have to crop the PDF files in Acrobat is you set which PDF box to use with Photoshop's PDF open options. The only things that get a little more tricky are dealing with multi-page PDF's…

Similar Messages

  • Cropping images and resizing

    I'm trying to take several images, find the largest one and then make sure all the rest are that size and centered in that image with a transparent border/background around them for any space left.
    For example:
    I have 3 100x100px images and the 4th is 150x120px. I want the first 3 to be the same size as number 4 but not be enlarged, just centered in an image that is the same size as the 4th.
    I have hundreds of images to do this to so one at a time isn't a great option, is there a way to make an action to do this? I've had no luck.
    So far I've tried using scripts to merge the files as layers into one document, crop the image way bigger than any image will be then trim to hit the border of the largest image. That works fine...but then how can I save those layers back out as their respective png files again?
    I'm on CS5 btw.
    Thanks.

    blanktarget2 wrote:
    I'm trying to take several images, find the largest one and then make sure all the rest are that size and centered in that image with a transparent border/background around them for any space left.
    To start with depending on your image file mix there may be a basic problem.  If there is a mixture of Landscape and portrait images none of the images you have may not have a width and height that is largest of all  the images.
    Photoshop ships with a script you can use that will help you do what you want though.  If you open Photoshop and use menu File>Scripts>Load Files into Stack... you can point its dialog to a folder that has your image collection. This script will load all images in that folder into a single document that will have a canvas size that is as wide as the image with the largest width and as high as the images with the largest height.  None of the layers may be that size and the layers contents may not be centered within this canvas size. However that can easly be done.
    The top layer I beleive will be the current target after Load Files into stack runs. Hold down the shift ken and mous click on the bottom layer in the layers palette. All layers should now be targeted.
    Then do a select all
    then  menu Layers>align layers to selection>Vertical Center
    then  menu Layers>align layers to selection>Horizontal Center
    All layers will now be centered within the documents canvas size. That would be easy to do in an action.  Now you would need to create a new document with a transparent background  the current canvas size for each  layer and mover a layer centered into it and delete the bottom layer and save a image file in a format that supports transparency.
    Once you have your image stack in the proper canvas sized document centered or not you should be able to create an script to create your output files.

  • Package batch renaming and relinking duplicates

    A plug-in/script available for InDesign to package some folders indd files into one folder with .indd, .pdf, .idml, links and fonts in folder, if images are duplicated between documents, rename with suffix "_1, _2, ....
    I need it to rename and relink files with random names to add suffix "_1, _2, _n number"  images are in .eps, .pdf, .psd, .jpg, etc. Names such as:
    design.tif      design_1.tif  
    design.eps    design_1.eps
    abcd.psd   adcd_1.psd
    abcd.psd   adcd_2.psd  
    abcd.psd   adcd_3.psd
    abcd.psd   adcd_4.psd
    design20.tif      design20_1.tif  
    design_14.eps    design_14_1.eps
    abcd.pdf   adcd_1.pdf
    abcd.jpg   adcd_2.jpg  
    Manually update links in InDesign, which is extremely time taking. I have found many scripts, but those are either keeping only one link when a package or changing one by one in each indesign documents and than package as usual.
    Any help or suggestions would be greatly appreciated.
    Thanks!

    Thank you for your great help. It is very useful  in future.
    It is doing 90% work of the package. It keeps link folder with one link, which is coming suppose in more than two documents.
    Same name images used between documents, with may be some changes,
    I need a script to rename and relink  duplicate files with random names to add suffix "_1, _2, _n number"  images are in .eps, .pdf, .psd, .jpg, etc., and package.

  • Script grop and resize?

    Say me, please where can I get a script grop and resize for cs6? Need to prepare to print catalogue whit many pages!

    Open a Test File
    Menu: Window > Actions
    Arrow pointing down (in the Actions Pane), make sure Allow Tool Recording is ticked (see Screenshot below)
    Click on New Action, Record, Name it something (e.g. Crop & Resize)
    Do Crop [C]
    Do Resize [CMD+ALT+I or CTRL+ALT+I]
    Save and Close File
    Stop Recording Action
    Now choose either menu:
      File > Automate > Batch...
    or
    File > Scripts > Image Processor...

  • I need to batch rename and relink files in indesign

    I have a whole bunch of files that I need to rename ( I need to add a prefix on to the front eg. a whole group of files called "plan.jpg" 01.jpg, 02.jpg, etc... need to now read ORD_plan.jpg, ORD_01.jpg, etc...) I can batch rename the files in adobe bridge, but I have to go in one by one and re-connect the links. Is there a script which can batch rename and relink all the files? 
    Thanks!

    This biterscripting script may possibly help. It takes two input arguments.
    directory - directory under which the .jpg files are located
    prefix - prefix which will be added to each file's name
    # Script RenameJpg.txt
    var str directory, prefix, list, filepath, name
    cd $directory
    find -n "*.jpg" > $list
    while ($list <> "")
    do
        lex "1" $list > $filepath ; stex -p "^/^l[" $filepath > $name
        set $name = $prefix+$name
        system copy ("\""+$filepath+"\"") ("\""+$name+"\"")
    done
    This is the way you would use it - copy and paste the script code into file C:/Scripts/RenameJpg.txt, then enter this command into biterscripting.
    script "C:/Scripts/RenameJpg.txt" directory("C:/test") prefix("ORD_")
    It will rename C:/test/plan.jpg to C:/test/ORD_plan.jpg, C:/test/01.jpg to C:/test/ORD_01.jpg, etc.
    Important: I am using the 'system copy' command so that files are copied instead of renamed. Once you are happy with the test, you can change that command to 'system rename'.
    Also, if the .jpg files are within subfolders of C:/test, change the 'find -n' to 'find -r -n'. -r means recursive = search in subfolders. Syntax for the find command at http://www.biterscripting.com/helppages/lf.html
    Message was edited by: Peter Spier to change 'path' to 'filepath' per post below
    Message was edited by: Peter Spier to change "perfix to "prefix"

  • Batch renaming and relinking in InDesign CS4

    Is there a plug-in available for InDesign that will batch rename and relink placed images?
    In Quark, I used Badia Link Renamer which worked perfectly but it's not available for InDesign. (Was told they hope to have it incorporated into BigPicture for CS5.)
    Is there something similar currently available for InDesign?
    Essentially I need it to rename and relink files with random names to structured names such as:
    001_Cust_000123456789_art_r1.tif
    (I love that Bridge does batch renaming but then I have to manually update links in InDesign which is extremely time-consuming. I've also manually renamed/relinked files individually with Adobe Dialogue but it doesn't seem to be part of CS4.)
    Any help or suggestions would be greatly appreciated! Been looking for something for months.
    Thanks!

    Here is my last version of the script, it deals with multiple instances of the same file.
    Kasyan
    var myDoc = app.activeDocument;
    var myAllLinks = myDoc.allGraphics;
    var myMultipleLinks = new Array();
    var myLinksCounter = 1;
    var myPrepend = prompt("Example: thebook_08765", "Job description", "Please enter job description");
    if (!myPrepend) exit();
    var response = confirm("Warning: You are about to rename all images linked to the foremost Indesign Document - proceed? Keep in mind - it is not reversible!", false, "Rename Links Script");
    if ( response == true )
         WriteToFile("\r--------------------- Script started -- " + GetDate() + " ---------------------\n\n");
         for ( k = 0; k < myAllLinks.length; k++ )
              var myLinkName = myAllLinks[k].itemLink.name;
         crearLabels();
         var myPages = myDoc.pages;
         // Pages
         for ( p = 0; p < myPages.length; p++ )
              var myPageNumber = pad000(myPages[p].name);
              var myLinks = myPages[p].allGraphics;
              var myASCII = 97;
              for ( k = myLinks.length - 1; k >= 0; k-- )
                   var myLink = myLinks[k].itemLink;
                   if (myLink.extractLabel("relinked") != "yes") {
                        var myOldLinkName = myLink.name;
                        var myLinkUsage = LinkUsage( myLink );
                        var myExtension = myOldLinkName.substr(myOldLinkName.lastIndexOf( "." ));
                        if (LinkUsage(myLink) == 1)
                             var myNewLinkName = myPrepend + myPageNumber + String.fromCharCode( myASCII ) + myExtension;
                             var myOldImageHDfile = new File( myLink.filePath );
                             var myRenameResult = myOldImageHDfile.rename( myNewLinkName );
                             if (myRenameResult)     {
                                  myLink.insertLabel("relinked", "yes");
                                  myLink.relink( myOldImageHDfile );
                                  try {
                                       myLink = myLink.update();
                                  catch(err) {}
                                  myASCII++;
                                  WriteToFile(((myLinksCounter < 10) ? (" " + myLinksCounter) : myLinksCounter) + " - " + myOldImageHDfile.name + " --> " + myNewLinkName + "\n");
                                  myLinksCounter++;
                             else {
                                  if (new File(myOldImageHDfile.parent + "/" + myNewLinkName + myExtension).exists) {
                                       WriteToFile("CAN'T RENAME LINK -- " + myOldImageHDfile.name + " to " + myNewLinkName + " because the file already exists\n");
                                  else {
                                       WriteToFile("CAN'T RENAME LINK -- " + myOldImageHDfile.name + "\n");
                        else {
                             if (!IsObjInArray(myLink, myMultipleLinks)) {
                                  myMultipleLinks.push(myLink);
         var myMasterSpreads = myDoc.masterSpreads;
         // Master spreads
         for ( m = 0; m < myMasterSpreads.length; m++ )
              var myMastSpr = myMasterSpreads[m];
              var myPageNumber = myMastSpr.name;
              var myPrefix = myMastSpr.namePrefix;
              var myLinks = myMastSpr.allGraphics;
              var myASCII = 97;
              for ( n = myLinks.length - 1; n >= 0; n-- )
                   var myLink = myLinks[n].itemLink;
                   if (myLink.extractLabel("relinked") != "yes") {
                        var myOldLinkName = myLink.name;
                        var myExtension = myOldLinkName.substr(myOldLinkName.lastIndexOf( "." ));
                        if (LinkUsage(myLink) == 1)
                             var myLinkLetter = (myLinks.length == 1) ? "" : String.fromCharCode( myASCII );
                             var myNewLinkName = myPrepend + '_master_' + myPrefix + myLinkLetter + myExtension;
                             var myOldImageHDfile = new File( myLink.filePath );
                             var myRenameResult = myOldImageHDfile.rename( myNewLinkName );
                             if (myRenameResult) {
                                  myLink.insertLabel("relinked", "yes");
                                  myLink.relink( myOldImageHDfile );
                                  try {
                                       myLink.update();
                                  catch(err) {}
                                  myASCII++;
                                  WriteToFile(((myLinksCounter < 10) ? (" " + myLinksCounter) : myLinksCounter) + " - " + myOldImageHDfile.name + " --> " + myNewLinkName + "\n");
                                  myLinksCounter++;
                             else     {
                                  if (new File(myOldImageHDfile.parent + "/" + myNewLinkName + myExtension).exists) {
                                       WriteToFile("CAN'T RENAME LINK -- " + myOldImageHDfile.name + " to " + myNewLinkName + " because the file already exists\n");
                                  else {
                                       WriteToFile("CAN'T RENAME LINK -- " + myOldImageHDfile.name + "\n");
                        else
                             if (!IsObjInArray(myLink, myMultipleLinks)) {
                                  myMultipleLinks.push(myLink);
         // Multiple images
         if (myMultipleLinks.length > 0) {
              for ( a = myMultipleLinks.length - 1; a >= 0; a-- )
                   processMultiUsedLinks(myMultipleLinks[a]);
         WriteToFile("\r--------------------- Script finished -- " + GetDate() + " ---------------------\r\r");
         if (myLinksCounter == 0) {
              alert("No links have been renamed", "Rename Links Script");
         if (myLinksCounter == 1) {
              alert("One link has been renamed", "Rename Links Script");
         else if (myLinksCounter > 1) {
              alert(myLinksCounter  + " links have been renamed", "Rename Links Script");
    //--------------------------------------------- Functions ------------------------------------------------
    // Check how many times the link was placed
    function LinkUsage(myLink) {
         var myLinksNumber = 0;
              for (var c =  0; c < myDoc.links.length; c++) {
              if (myLink.filePath == myDoc.links[c].filePath) {
                   myLinksNumber += 1;
         return myLinksNumber;
    // Relink the links placed more than once
    function processMultiUsedLinks(myLink) {
         var myExtension = myLink.name.substr(myLink.name.lastIndexOf( "." ));
         var myMultiUsedLink = new Array();
         var myAllLinks = myDoc.links;
         for (var d = 0; d < myAllLinks.length; d++)  {
              if (myAllLinks[d].filePath == myLink.filePath) {
                   myMultiUsedLink.push(myAllLinks[d]);
         try {
              myLink.show();
         catch(err) {}
         var myNewLinkName = prompt ("Enter a name for this image", GetFileNameOnly(myLink.name), "This image is placed " + myMultiUsedLink .length + " times");
         if (myNewLinkName) {
              if ( myNewLinkName + myExtension != myLink.name ) {
                   var myOldImageHDfile = new File( myLink.filePath );
                   var myRenameResult = myOldImageHDfile.rename( myNewLinkName + myExtension );
                   if (myRenameResult) {
                        myLink.insertLabel("relinked", "yes");
                        myLink.relink( myOldImageHDfile );
                        try {
                             myLink = myLink.update();
                        catch(err) {}
                        WriteToFile(((myLinksCounter < 10) ? (" " + myLinksCounter) : myLinksCounter) + " - " + myOldImageHDfile.name + " --> " + myNewLinkName + "\n");
                        myLinksCounter++;
                        for (f = myMultiUsedLink.length-1; f >= 0 ; f--)
                             var myCurrLink = myMultiUsedLink[f];
                             if ( myNewLinkName + myExtension != myCurrLink.name ) {
                                  myCurrLink.insertLabel("relinked", "yes");
                                  myCurrLink.relink( myOldImageHDfile );
                                  try {
                                       myCurrLink = myLink.update();
                                  catch(err) {}
                   else     {
                        if (new File(myOldImageHDfile.parent + "/" + myNewLinkName + myExtension).exists) {
                             WriteToFile("CAN'T RENAME LINK -- " + myOldImageHDfile.name + " to " + myNewLinkName + myExtension + " because the file already exists\n");
                        else {
                             WriteToFile("CAN'T RENAME LINK -- " + myOldImageHDfile.name + "\n");
         UpdateAllOutdatedLinks();
    // Clear labels in case this script has been already run on the current document
    function crearLabels() {
         for (var f =  0; f < myDoc.links.length; f++) {
              if (myDoc.links[f].extractLabel("relinked") != "") {
                   myDoc.links[f].insertLabel("relinked", "");
    function UpdateAllOutdatedLinks() {
         for(var myCounter = myDoc.links.length-1; myCounter >= 0; myCounter--){
              var myLink = myDoc.links[myCounter];
              if (myLink.status == LinkStatus.linkOutOfDate){
                   myLink.update();
    function pad000(myNumber) {
         if (myNumber >= 1 && myNumber <= 9) {
              x =  "0" + "0" + myNumber;
         } else if (myNumber >= 10 && myNumber <= 99) {
              x = "0" + myNumber;
         } else if (myNumber >= 100 && myNumber <= 999) {
              x = myNumber;
         return x;
    function GetFileNameOnly(myFileName) {
         var myString = "";
         var myResult = myFileName.lastIndexOf(".");
         if (myResult == -1) {
              myString = myFileName;
         else {
              myString = myFileName.substr(0, myResult);
         return myString;
    function IsObjInArray(myObj, myArray) {
         for (x in myArray) {
              if (myObj.filePath == myArray[x].filePath) {
                   return true;
         return false;
    function WriteToFile(myText) {
         myFile = new File("~/Desktop/Rename Links Script.txt");
         if ( myFile.exists ) {
              myFile.open("e");
              myFile.seek(0, 2);
         else {
              myFile.open("w");
         myFile.write(myText);
         myFile.close();
    function GetDate() {
         var myDate = new Date();
         if ((myDate.getYear() - 100) < 10) {
              var myYear = "0" + new String((myDate.getYear() - 100));
         } else {
              var myYear = new String ((myDate.getYear() - 100));
         var myDateString = (myDate.getMonth() + 1) + "/" + myDate.getDate() + "/" + myYear + " " + myDate.getHours() + ":" + myDate.getMinutes() + ":" + myDate.getSeconds();
         return myDateString;

  • Script to resize pdf-files by percentage

    Dear all,
    I have a rather simple problem: I need to resize a collection of several pdf files (around 60) by a certain percentage, because those files are included in a text (LaTex) - and I need to change the LaTex page style (in other words: the layout) - so that my old images are all a bit too large for the layout; thus I want to do a quick-and-dirty solution and resize them all by a certain percentage (defined by the difference between my old layout and the new, more slim one).
    So - the simple question is: does anyone know either if there is simple free software out there that can do this (I didn't find any - and Acrobat 9 doesn't offer the possibility to change the dimensions of pdf images) - or, b) if this would be possible to do with Applescript? Off course, I wouldn't mind a ready-made script - but, since I don't know, but want to learn Applescript, I thought that this might be a good task to start with - although I also need a solution in 3 to 4 days - hope it wouldn't be a too frustrating task to start with...
    Thanks for any hints!
    With kind regards,
    Björn
    Message was edited by: bBcuda

    Hello
    You might try something like the following script.
    It will a) resize the pdf image by using Image Events and save it as png and b) convert png to pdf by png2pdf.
    You'd need to have png2pdf installed in advance.
    (Image Events can open pdf but cannot save as pdf according to the document.)
    The script will let you choose source folder where original pdfs reside and destination folder where modified pdfs are to be stored. Also it will let you specify scaling factor. After that it will open each pdf file (*.pdf) in source folder, resize and save as new png file in destination and then convert the png to pdf (and delete png if successful). Hopefully it's like that.
    Script is NOT tested and I don't know how good (or bad) Image Events and png2pdf are, for I don't use OSX for myself. Sorry about that.
    Good luck,
    H
    --SCRIPT (NOT TESTED)
    Using Image Events and png2pdf
    Image Events
    http://www.apple.com/applescript/imageevents/
    http://www.apple.com/applescript/imageevents/04.html
    http://www.apple.com/applescript/imageevents/08.html
    png2pdf
    http://png2pdf.sourceforge.net/
    http://png2pdf.sourceforge.net/png2pdf.pdf
    main()
    on main()
    script o
    property scaling_factor : 0.8 -- default scaling factor
    property remove_png : true -- whether remove intermediate png files or not
    property nn : {} -- working list
    --(0) preparation
    -- (0.1) set input and output directories (= ind, indp, outd, outdp)
    set ind to choose folder with prompt "Choose source folder."
    set outd to choose folder with prompt "Choose destination folder."
    set indp to ind as Unicode text
    set outdp to outd as Unicode text
    -- (0.2) set scaling factor (= r)
    set r0 to scaling_factor as string -- default scaling factor as string
    repeat
    display dialog "Enter scaling factor." default answer r0 with icon 1
    try
    set r to text returned of result as real
    exit repeat
    on error --
    end try
    end repeat
    -- (1) process each pdf file in input directory
    set nn to list folder ind without invisibles -- get item names
    repeat with n in my nn
    set n to n's contents
    if n ends with ".pdf" then -- only process "*.pdf"
    -- (1.1) open pdf, resize and save it as new png file
    set infp to indp & n
    set outfp to outdp & n's text 1 thru -4 & "png" -- set output path
    tell application "Image Events"
    set p to open (infp as alias)
    scale p by factor r
    save p as PNG in file outfp
    close p
    end tell
    -- (1.2) convert png to pdf (and optionally remove png if successful)
    set infpx to quoted form of POSIX path of (outfp as alias)
    set outfpx to quoted form of ((POSIX path of outd) & n)
    if remove_png then
    do shell script ("png2pdf -p1.4 -n -a " & infpx & " " & outfpx & " && rm -f " & infpx)
    else
    do shell script ("png2pdf -p1.4 -n -a " & infpx & " " & outfpx)
    end if
    end if
    end repeat
    -- (2) decent notice
    display dialog "Done." with icon 1 giving up after 5
    end script
    tell o to run
    end main
    --END OF SCRIPT
    Message was edited by: Hiroto (fixed typo)

  • Automated cropping and resizing with user interaction

    Dear all,
    after hours of tests with batch processing and search in the internet maybe somebody of you can help me:
    I have roughly 3000 jpgs. in one folder (all different sizes and proportions), and I need all of them cropped to a specific proportion (width:height = 4:3) and then resized to a specific size (e.g. 800 x 600px). Batch processing can do a lot, but one critical step is not possible: As soon as one picture has been loaded into PS, I need a user interaction to determine the crop area freely (size and position) before the rest of the process (cropping, resizing and saving) can run automatically again.
    For example a picture of 2000 x 1000 px: The"crop window" lets me to choose an arbitrary area concering size and position (i.e.at 20px from the left, and 10 px from the top, size 1000 x 750 px = fixed aspect ratio  - and different for each picture), then the cropped area is resized to 800 x 600px, then it is saved.(Similar to the marquee tool with fixed aspect ratio)
    The crucial act is the interaction with the "proportional cropping". If the resizing is not possible in the first step, I coudl also do this with a second batch run myself.
    If somebody can help me, I would be very glad....
    Thanks a lot,
    Elmar Hartje

    This should give you the user resize then resize to 800x600.
    var doc=activeDocument;
    if(doc.width>doc.height){
    cropFourThreeRatio(true);
    doc.resizeImage(new UnitValue(800,'px'), undefined, undefined, ResampleMethod.BICUBIC);
    }else{
    cropFourThreeRatio(false);
    doc.resizeImage(undefined, new UnitValue(800,'px'), undefined, ResampleMethod.BICUBIC);
    function cropFourThreeRatio(landscape) {
    var startRulerUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.INCHES;
        var desc1 = new ActionDescriptor();
            var desc2 = new ActionDescriptor();
            desc2.putUnitDouble( charIDToTypeID('Top '), charIDToTypeID('#Rlt'), 0.000000 );
            desc2.putUnitDouble( charIDToTypeID('Left'), charIDToTypeID('#Rlt'), 0.000000 );
      if(landscape){
            desc2.putUnitDouble( charIDToTypeID('Btom'), charIDToTypeID('#Rlt'), 147.000000 );
            desc2.putUnitDouble( charIDToTypeID('Rght'), charIDToTypeID('#Rlt'), 195.750000 );
      }else{
       desc2.putUnitDouble( charIDToTypeID('Btom'), charIDToTypeID('#Rlt'), 127.500000 );
       desc2.putUnitDouble( charIDToTypeID('Rght'), charIDToTypeID('#Rlt'), 96.000000 );
        desc1.putObject( charIDToTypeID('T   '), charIDToTypeID('Rctn'), desc2 );
        desc1.putUnitDouble( charIDToTypeID('Angl'), charIDToTypeID('#Ang'), 0.000000 );
    if(landscape){
        desc1.putUnitDouble( charIDToTypeID('Wdth'), charIDToTypeID('#Rlt'), 288.000000 );
        desc1.putUnitDouble( charIDToTypeID('Hght'), charIDToTypeID('#Rlt'), 216.000000 );
    }else{
      desc1.putUnitDouble( charIDToTypeID('Wdth'), charIDToTypeID('#Rlt'), 216.000000 );
        desc1.putUnitDouble( charIDToTypeID('Hght'), charIDToTypeID('#Rlt'), 288.000000 );
        desc1.putUnitDouble( charIDToTypeID('Rslt'), charIDToTypeID('#Rsl'), 0.000000 );
    try{
        executeAction( charIDToTypeID('Crop'), desc1, DialogModes.ALL );
    }catch(e){app.preferences.rulerUnits = startRulerUnits;}
    app.preferences.rulerUnits = startRulerUnits;

  • Script to connect and rename a drive works on Windows 8.1 but not Windows 7

    I have a script to map a drive to a WebDAV share and the staff wanted it so the Drive shows up as Onedrive and not \\http......etc So I added entries to the script
    to rename the drive to that. It seems to run and work perfectly on Windows 8.1 but on Win 7 it maps the drive but the rename part doesn't work. Even running the rename section manually in a separate script on Windows 7 does nothing. Is there a different rename
    command for VB for a Win 7 OS? 
    Jason

    Sure thing, Also Ive found the problem is on the ones that aren;t working if I open an app notepad for example and do a save as that drive shows as the name I want it but it doesn't when I just go to My comuter view
    Set WshShell = WScript.CreateObject("WScript.Shell") 
    Return = WshShell.Run("https://login.microsoftonline.com/login.srf?wa=wsignin1.0&whr=adfs.cr.k12.ia.us&wreply=https://crdistrict-my.sharepoint.com&LoginOptions=1", 1) 
    WScript.Sleep 8000
    Dim objNetwork
    dim objFSO, objShell, objUNC
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objNetwork = WScript.CreateObject("WScript.Network")
    Dim strDriveLetter1, strRemotePath1, strNewName
    'end of varible declarations
    strDriveLetter1 = "W:"
    strRemotePath1 = "\\XXXXXXXX-my.sharepoint.com@SSL\DavWWWRoot\Personal\" & objNetwork.UserName & "XXXXXXXXX/documents"
    strNewName = "OneDrive"
    'end of varible setup
    objNetwork.MapNetworkDrive strDriveLetter1, strRemotePath1
    'end of map creation code
    ' Section which actually (re)names the Mapped Drive
    Set objShell = CreateObject("Shell.Application")
    objShell.NameSpace(strDriveLetter1).Self.Name = strNewName
    WScript.Quit
    'end of script
    Jason

  • Shell script for moving and renaming files

    I'm not so familiar with shell scripts. I have created some simple scripts for various tasks but now I hit something I can't handle myself.
    My server receives every night a logfile from another server. This file I need to rename and move to another location. Problem is that a simple mv with new filename isn't enough, I need to insert date in filename. Format for date should be ddmmyy. Also the name of incoming file changes every night. The output always starts with same letters, let's say "log", and the date is used to identify files.
    For example I receive a file /Input/filename.log and I need to move the file to the folder /Output with name log130308.txt.
    Any tips how to insert the date as part of of filename while renaming or moving the file? I prefer shell script as I'll use launchd for scheduling the script.

    Hi again,
    so far I've constructed this:
    cd /input
    for file in `ls *log`
    do
    echo "Copying " $file
    cp $file /output/log.$file.`date +%d%m%y`
    done
    Quite there. I'm cding to directory, i'll focus later how to set some environmental parameters.
    Problem with zipping is that I don't know exact logfiles names. Each day there's a new name. So zip -q filename.zip filename.log isn't quite enough and it's impossible to use wildcards. The switch -q and checksums were welcome suggestions.
    Thanks again,
    Juha
    Message was edited by: J.Otava

  • Adobe Media Encoder CS5 - Can we crop and resize at the same time?

    Flash 8's video encoder, use to let you crop (cut x amount of pixels out) and then resize  a video (and in that order it did it).
    CS5's Media Encoder is confusing, from what I can tell it cannot do both, you either can crop or resize but not both. ANd if you can do both, you definately cant crop before the resize. So which is it?
    Resizing made sense last, because you could put in new values for the resize nad figure out how much you need to crop out.
    Please help this is driving me insane.

    Everyone in my office has the same problem!
    We really need an alternative to AME both because of the crop/resize problem and many other seamingly random issues with preview and export.
    Adobe Media Encoder sucks...

  • Printing with Bleed and Crop marks from a PDF made with PS

    So, i have created a business card with a .125in bleed all around in photoshop. I know that you can go to File->print->output in photoshop and specify crop marks and the amound of bleed...however, i have saved my business card as a PDF from photoshop. I want to print from the PDF version as i have the plug-in quite imposing 2 for acrobat and use step and repeat to print multiples on 11x17 paper. How do i add the crop marks in the right place from Acrobat on the business card?

    Do you have Quite Imposing Plus 2 or just Quite Imposing 2?
    cheers,
    Charles

  • I I made a PDF fie to preview, but am still apprehensive to actually order the book, as I have ordered some prints of photos after I thought i had them cropped correctly and prints returned with heads, half of bodies have a book formatted and ready to buy

    I have formatted a photo book, but am apprehensive to push the "buy" button as I have ordered prints that I thought were cropped correctly, and they returned with heads cut off and half of bodies mising.  I have put the book on a PDF file as instucted, please reassure me that if everything looks right there, that is the way the book will look??

    If the PDF looks good then the printed copy should be OK.  The only problem you might run into is the color rendering.  As long as none of your photos use the sRGB profile and not the Adobe RGB color profile the color should be fine.
    On those prints that were cropped incorrectly: did you copy them to the print size ordered before uploading for printing? If not then they will be cropped by the printing equipment and you'll lose part of the top and bottom of the print (for landscape prints).
    OT

  • Video Crop and Resize

    Not sure if this is a bug but it's frustrating! I'm using the
    Mac version of Flash CS3. I set everything up correctly to crop a
    video clip (dragging the sliders in the 'Crop and Resize' tab). I
    then start the queue etc. The resulting flv has NOT cropped as I
    specified?? I get strange sizes, distortions etc. This also happens
    by direct import to the stage (embed or external).
    Also I find that I need to check the 'Resize Video' check box
    even if I don't want to resize the video to get Flash to import at
    the correct size of the original! This renders the cropping tool
    useless. Any ideas anyone?

    I've since done some tests. The issue appears to be related
    to the source video and not the Flash Video Encoder, particularly
    the compression format. I have a set of clips at the same size but
    the compression formats are different (I checked the movie
    properties in QuickTime). Sorenson versions seem to crop and resize
    OK, but the DV format doesn't.
    At least the Flash side of things are fine.

  • Script to rename layers comps batch?

    Does anyone know any script to rename batch comps layers in a sequential numbering? For example: layerComps01, layerComps02, layerComps03 ...

    // 2014, use it at your own risk;
    #target photoshop
    if (app.documents.length > 0) {
    var myDocument = app.activeDocument;
    for (var m = 0; m < myDocument.layerComps.length; m++) {
    myDocument.layerComps[m].name = "comp"+bufferNumberWithZeros(m+1, 2)
    ////// buffer number with zeros //////
    function bufferNumberWithZeros (number, places) {
      var theNumberString = String(number);
      for (var o = 0; o < (places - String(number).length); o++) {
      theNumberString = String("0" + theNumberString)
      return theNumberString

Maybe you are looking for

  • How sap bw related sap banking

    Hello experts,        I have a small doubt, for Sap banking organisation implementating is  sap banking module or simple sap FI module  is being used?How much it is related to sap bw. Thanks Vinod

  • Xcelsius 2008 Dashboard thrugh NWBC

    Dear All We have the following environment.  1. SAP production Server - R3 Environment  (No BW,  No Open Doc) 2. We hae Crystal Report 2008 SP5 3. We have Xcelsius 2008 We developed couple of Dashboards using Xcelsius by directly connecting to R3 usi

  • Htaml tags used in Flash 5

    In Flash 5, How can we center the text in dynamic text box with html property selected? I used center tag and also align attribute in font tag, but I couldn't get text in center.

  • Preventive Work Order Dates Synchronization with its automatic created  notification

    Dear all, Preventive Work Order Dates Synchronization with its automatic created  notification My question was initiated from PM module forum, please check above URL if you have time. My ultimate problem is that :      "SMOD" Enhancement  "QQMA0018"

  • Detecting if ctrl is pressed when clicking a button?

    Hi What's the best way to detect if ctrl is being held down while a button on screen is being clicked? Cheers