Photoshop scripting question

HI
I am new to this whole scripting for photoshop and hope someone could help me along.
What i am looking for is to either create an Adobe Photoshop script, or with flash builder build an photoshop extension that does the following.
On a server i have a folder that gets a folder for each day of the month (eg. ../december 2012/01 december). in this folder each day there are .PSD files created. I would love to have a scipt that opens the .PSD files that are in the todays folder then resizes the image from 1024*576 to 720*576 and save it on a diferend server in the todays folder as a .JPG. and then have a popup message showing which images where succesfully saved to the new location.
Right now i am using a simple .exe file with the following script to kopie teh files from location A to B but i have to manualy make the jpegs or run the image procesor for this job which doesn't work with sharing an action with multiple users.
The copie script is Use:
@ECHO OFF
CLS
SET sourceDir=\\172.16.200.9\vormgeving\TV\!BrabNieuws 2007\dve
SET destDir=\\172.16.200.155\dve\BRABANT NIEUWS
SET jaar=%date:~-4,4%
SET mnd=%date:~-7,2%
SET dag=%date:~-10,2%
SET pse==%1
IF %mnd%==01 SET maand=Januari
IF %mnd%==02 SET maand=Februari
IF %mnd%==03 SET maand=Maart
IF %mnd%==04 SET maand=April
IF %mnd%==05 SET maand=Mei
IF %mnd%==06 SET maand=Juni
IF %mnd%==07 SET maand=Juli
IF %mnd%==08 SET maand=Augustus
IF %mnd%==09 SET maand=September
IF %mnd%==10 SET maand=Oktober
IF %mnd%==11 SET maand=November
IF %mnd%==12 SET maand=December
ECHO De DVE's van vandaag worden naar de dagmap (%jaar%-%mnd%-%dag%) gekopieerd!
ECHO .
COPY "%sourceDir%\%maand% %jaar%\%dag% %maand%\*.psd" "%destDir%\%jaar%-%mnd%-%dag%"
ECHO Y | DEL "%destDir%\%jaar%-%mnd%-%dag%\dve standaard.psd" > NUL
if "%1"=="" PAUSE
I hope there is someone out there that can help me on my way.
Thanks
Salvador
Ps. I already tried working with actions and a simple script that envoked the action file but thats just not stable enough.

JJMack wrote:
I still do not understand you showed part of a dos bat file that copies a single psd file from one remote ip  resource to a different remote ip remote resource before the copy some non english message is displayed. the copy is done which should put out a message one file copied then the original file is deleted off the first remots resource hidding the delet message.  I see nothing to do with Photoshop nothing that dose any resize and don't understand why you would slow down the copy by transporting the data across the network twice once woul be faster. I would set up a remote process where remote resource 1 would do the copy to remote resource 2.  At first I tought you were describing a server batch update process the would run on some schedule. Now it looks like distrinuted remote users are moving a file from one machine to an other.  Where does the resize come in where does Photoshop Scripting come in?
SET sourceDir=\\172.16.200.9\...
SET destDir=\\172.16.200.155\...
ECHO De DVE's van vandaag worden naar de dagmap (%jaar%-%mnd%-%dag%) gekopieerd!
ECHO .
COPY "%sourceDir%\%maand% %jaar%\%dag% %maand%\*.psd" "%destDir%\%jaar%-%mnd%-%dag%"
ECHO Y | DEL "%destDir%\%jaar%-%mnd%-%dag%\dve standaard.psd" > NUL
Hi JJMack,
Right now the resizing is done maunually. This is the work procces; there are a bunch of .psd files created these get saved in ..\\ntsrob22s\vormgeving\TV\!BrabNieuws 2007\dve\february 2012\07 february\.
After these files get aproved they get maunualy distorted from 1024*576 to 720*576 and saved as a JPEG in ..\\ntsrob22s\vormgeving\TV\!BrabNieuws 2007\dve\february 2012\07 february\JPEG\. After the person is done they execute this file
@ECHO OFF
CLS
SET sourceDir=\\ntsrob22s\vormgeving\TV\!BrabNieuws 2007\dve
SET destDir=\\media-storsvr\dve\BRABANT NIEUWS
SET jaar=%date:~-4,4%
SET mnd=%date:~-7,2%
SET dag=%date:~-10,2%
SET pse==%1
IF %mnd%==01 SET maand=Januari
IF %mnd%==02 SET maand=Februari
IF %mnd%==03 SET maand=Maart
IF %mnd%==04 SET maand=April
IF %mnd%==05 SET maand=Mei
IF %mnd%==06 SET maand=Juni
IF %mnd%==07 SET maand=Juli
IF %mnd%==08 SET maand=Augustus
IF %mnd%==09 SET maand=September
IF %mnd%==10 SET maand=Oktober
IF %mnd%==11 SET maand=November
IF %mnd%==12 SET maand=December
ECHO The PICs are copied to the BRABANTNIEUWS day folder and are ready to be used by pixelpower (%jaar%-%mnd%-%dag%) gekopieerd!
ECHO .
COPY "%sourceDir%\%maand% %jaar%\%dag% %maand%\JPEG\*.jpg" "%destDir%\%jaar%-%mnd%-%dag%"
ECHO Y | DEL "%destDir%\%jaar%-%mnd%-%dag%\dve standaard.JPG" > NUL
if "%1"=="" PAUSE
This looks in the folder ..\\ntsrob22s\vormgeving\TV\!BrabNieuws 2007\dve for the folder of 'today' and copies all the JPEGs to ..\\media-storsvr\dve\BRABANT NIEUWS\ into todays folder.
What i would like to create is that after they have created all the PSD files and they are aproved, all they have to to is run a Photoshop script or extension that opens all the PSD's that are in the 'today' folder -> then resizes those to 720*576 and save them in the \\media-storsvr\dve\BRABANT NIEUWS\"todays month"\"todays date" and overwrites if there is one with a simular name already.
Thx,
Salvador

Similar Messages

  • Photoshop Script Question

    Is there a Photoshop script to remove the white background from TIF images that already have good clipping paths, and then save file as PNG?

    This should do some of what you are after.
    The Script just flattens the file and applies a Layer Mask, then saves a png but leaves the original file like that.
    // 2014, use it at your own risk;
    #target photoshop;
    if (app.documents.length > 0) {
    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;
    // check paths;
    for (var m = 0; m < myDocument.pathItems.length; m++) {
    var thePath = myDocument.pathItems[m];
    if (thePath.kind == PathKind.CLIPPINGPATH) {
    thePath.makeSelection(0, true, SelectionType.REPLACE);
    myDocument.flatten();
    myDocument.layers[0].isBackgroundLayer = false;
    addLayerMask ();
    // save png;
    savePNG (myDocument, docPath, basename, "_a");
    ////// 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);
    ////// add layer mask //////
    function addLayerMask () {
    var idMk = charIDToTypeID( "Mk  " );
    var desc168 = new ActionDescriptor();
    var idNw = charIDToTypeID( "Nw  " );
    var idChnl = charIDToTypeID( "Chnl" );
    desc168.putClass( idNw, idChnl );
    var idAt = charIDToTypeID( "At  " );
    var ref99 = new ActionReference();
    var idChnl = charIDToTypeID( "Chnl" );
    var idChnl = charIDToTypeID( "Chnl" );
    var idMsk = charIDToTypeID( "Msk " );
    ref99.putEnumerated( idChnl, idChnl, idMsk );
    desc168.putReference( idAt, ref99 );
    var idUsng = charIDToTypeID( "Usng" );
    var idUsrM = charIDToTypeID( "UsrM" );
    var idRvlS = charIDToTypeID( "RvlS" );
    desc168.putEnumerated( idUsng, idUsrM, idRvlS );
    executeAction( idMk, desc168, DialogModes.NO );
    /*// unlink;
    // =======================================================
    var idsetd = charIDToTypeID( "setd" );
        var desc10 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref3 = new ActionReference();
            var idLyr = charIDToTypeID( "Lyr " );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref3.putEnumerated( idLyr, idOrdn, idTrgt );
        desc10.putReference( idnull, ref3 );
        var idT = charIDToTypeID( "T   " );
            var desc11 = new ActionDescriptor();
            var idUsrs = charIDToTypeID( "Usrs" );
            desc11.putBoolean( idUsrs, false );
        var idLyr = charIDToTypeID( "Lyr " );
        desc10.putObject( idT, idLyr, desc11 );
    executeAction( idsetd, desc10, DialogModes.NO );*/

  • Lightroom and Photoshop scripts

    Is there an easy way from lightroom to export a file to a photoshop script (e.g. xxx.jsx) such that the desired action in photshop can be scripted ?  I know I can export to photoshop and edit, then run the script -- just wondering if this can be done in one step

    I don't recall it being discussed before. However, given that Lightroom uses Bridge Talk to communicate with Photoshop it might be worth asking the question over on the Bridge Scripting forum http://forums.adobe.com/community/bridge/bridge_scripting or Lightroom SDK forum http://forums.adobe.com/community/lightroom/lightroom_sdk

  • Using Photoshop script – open image in it's own profile?

    I Have a question about scripting;
    How do I open an image in Photoshop script in it's own color profile, when the working colorspace is different?
    It seems like it automatically opens in the current working colorpace.
    (I want to open images and make the conversion myself efterwards).
    /Calle

    What are the Color Settings on that machine?
    I have never noticed that opening files via Script would convert them to the Working Space, but my Color Settings are to »Preserve Embedded Profile« for all modes.

  • 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?

  • Photoshop script help

    Please help.
    I need a script that will do the following:
    I have a bunch of sequential storyboard panels and a single storyboard template.  I would like a script that will open up the storyboard template, then open up, in order, two storyboard panels, then paste them (in a specific place) into the storyboard template, then save them with an automated naming convention, then continue doing this for all the sequential storyboard panels.
    i don't think this can be done with actions, It will need to be done with a script.
    If anyone can help, I would really really appreciate it.
    Thank you.
    Ben

    You've got the wrong forum, this forum is about the Community Help application, please ask your question in the Photoshop Scripting forum:
    http://forums.adobe.com/community/photoshop/photoshop_scripting

  • How to make a selection of a layer delete content and paste another content with Photoshop scripting..?

    how to make a selection of a layer delete content and paste another content with Photoshop scripting..?

    There is a more specific Forum …
    Photoshop Scripting

  • Call Photoshop script from Indesign script CS4 JS

    Hi, I open Photoshop linked file from InDesign in Photoshop and I need same InDesign script to run Photoshop script on the file. How I can call the Photoshop script from InDesign script.
    Thank you very much for your help.
    Yulia

    Thank you, Kasyan.
    800 lines of script is little be intimidating.
    What we are trying to achieve is to open jpgs in Photoshop and resave them as tiffs and replace same jpg with corresponding tiff in Indesign as it was placed before.
    Is there a way to call Photoshop from Indesign through appleScript.
    I have most of the script done for Indesign and I have Photoshop shript ready that saves jpgs as tiffs done. I am only missing the part where I can call this existing Ph. script from Indisign.
    We prefer not to use BridgeTalk if possible, because we have a lot of programs open and running in the same time, and would like to avoid to open one more program (BridgeTalk).
    Thank you very much for your great help.
    Yulia

  • I want to create xml file using photoshop script and also i can easily add, modify, delete based on file name

    Hi,
    Please help me for this.
    I need to create XML file for mentioned below. when i run the photoshop script i need deatails for active document name, date, time and status.
    <?xml version="1.0" encoding="UTF-8"?>
    <sample>
    <filename>Cradboard_Boxes_Small.tif</filename>
    <date>today date</date>
    <starttime>now</starttime>
    <status>delivered</status>
    </sample>
    <sample>
    <filename>Cardboard_Boxes_Student_Vaue_Pack.jpg</filename>
    <date>today date</date>
    <starttime>now</starttime>
    <status>delivered</status>
    </sample>
    I need read that xml after creating and modify based on file name. i need to modify status after file finished.
    if the file name is already exist i want to modify or delete or add whatever i need.
    Kindly help me simple way

    You may want to look into getting Xtools ps-scripts - Browse Files at SourceForge.net then.  Most of the support is for ActionManager script code where XML code is use as an intermediate step.  There are quite a few Photoshop script in XTools .   Ross Huitt is an expert javascript programmer though is is fed up with Adobe's lack of support for Photoshop scripting particularly the bugs in ScriptUI he is still maintaining tool he  has created for us free of charge. Tools like Image Processor Pro. None of his scripts are save as binary so you can read all of his code there is a wealth of knowledge in there....
    Also there is a scripting forum Photoshop Scripting

  • How to begin with Photoshop scripting

    After years of working with Photoshop I have started to device my own Photoshop scripts to automate my workflow.
    My search for formal Photoshop script training produced no concrete results. In the past the Photoshop World Conference has offered Photoshop Scripting workshops.
    Acquiring Photoshop scripting skills requires detective work and perseverance. The results are gratifying when a custom Photoshop script adds additional functionality and efficiency to your workflow.
    Below is a list of resources I have compiled learn Photoshop scripting.
    FORUMS AND BLOGS
    TUTORIALS AND TRAINING
    TEXT BOOKS AND GUIDES
    SCRIPTING TOOLS
    FORUMS AND BLOGS
    Adobe Photoshop Scripting Community
    https://forums.adobe.com/community/photoshop/photoshop_scripting
    Independent Photoshop Scripting Community
    http://ps-scripts.com/
    PHOTOSHOP FOR GEEKS 2008
    http://www.tranberry.com/photoshop/photoshop_scripting/PS4GeeksOrlando/IntroScripts/presen tations_materials/ps_geeks_slides.pdf
    PHOTOSHOP FOR GEEKS 2007
    http://www.tranberry.com/photoshop/photoshop_scripting/tips/photoshopforgeeks2.html
    Jeff Tranberry’s blog
    http://blogs.adobe.com/crawlspace/category/photoshop-scripting
    http://tranberry.com/photoshop/photoshop_scripting/index.html
    TUTORIALS AND TRAINING
    Lynda.com
    http://www.lynda.com/Photoshop-tutorials/Photoshops-scripting-backbone/289/22351-4.html
    Trevor Morris Scripting Photoshop Part 1 and Part 2
    http://morris-photographics.com/photoshop/tutorials/index.html
    Code School (Javascript)
    https://www.codeschool.com/paths/javascript
    Tuts+ (Javascript)
    http://courses.tutsplus.com/courses/javascript-fundamentals
    w3schools
    http://www.w3schools.com/js/default.asp
    TEXT BOOKS AND GUIDES
    Adobe Photoshop Scripting
    http://www.adobe.com/devnet/photoshop/scripting.html
    Power, Speed & Automation
    http://www.amazon.com/Power-Speed-Automation-Adobe-Photoshop/dp/0240820835
    Adobe Press: Learn How to Script Adobe Photoshop
    http://www.adobepress.com/articles/article.asp?p=433750&seqNum=4
    AdobeScripting: Your visual blueprint for scripting in Photoshop and Illustrator
    http://www.amazon.com/Adobe-Scripting-blueprint-scripting-Illustrator/dp/0764524550/ref=la _B001KE7GZM_1_2?s=books&ie=UTF8&qid=1394514490&sr=1-2
    Photoshop Speed Clinic
    http://www.amazon.com/The-Photoshop-CS2-Speed-Clinic/dp/0321441656
    SCRIPTING TOOLS
    Photo Script Builder
    http://madebyvadim.tumblr.com/post/71403984777/script-builder-free
    This tool was available online for free until recently but has since become unavailable.
    The idea behind this tool is excellent. Perhaps it will resurface as a commercial product in the future.
    Script UI Builder (User Interface Dialogs)
    https://sites.google.com/site/scriptuibuilder/ 
    Adobe ESTK (Extended Script Tool Kit CC)
    https://creative.adobe.com/products/estk
    xtools
    http://sourceforge.net/projects/ps-scripts/files/xtools/v2.1/
    http://ps-scripts.sourceforge.net/xtools.html

    https://github.com/search?q=photoshop&ref=cmdform
    github is a great place to find jsx scripts

  • Photoshop Script  Black and White Raster to Vector

    I do not have AI Adobe for I do not want to spend the money and have to learn an other complex Adobe application. I'm no artist either.  However at rimes I wanted  to have AI live trace feature to change black and white line drawing into vector graphics. AI creates EPS files with embedded vectors. And can export the vector to Photoshop.  Though Photoshop opens EPS as raster layers I find that EPS file created from tracing black and white lines and artwork with programs like potrace that use curves to create black vector shapes. That when these are opened in Photoshop as Black layer with transparency. When these layers transparency are loaded as a selection and the selections converted to path. I find the path are extremely good.
    Potrace is a cross platform open source program packages available for many operating systems. Windows (32 bit) and (64 bit), Mac OS X (Intel), Mac OS X (universal),Linux (32 bit) and (64 bit), Linux (Alpha), Linux (Sparc64), Sun Solaris (Sparc), Sun Solaris (i386), Sun Solaris (x86_64), FreeBSD (i386), NetBSD (i386), OpenBSD (i386), AIX and AROS (i386). Potrace is a command line command. So it can be use started with options and passed a file from bat files and scripts. Potrace requires No instillation. All the needed potrace requited files just need to be place into a folder and potrace run from that folder as the current directory.
    So a created a Photoshop script that more or less uses potrace like a Photoshop Plug. The script define a custom shape for the current active document using potrace and add a new shape layer using the new defined custom shape as the top layer. The script also toggle off the other visible layers so you just see the shape layer.  You can use alt click on the shape layer visibility icon to toggle the other layer visibility so you can see how well it matches the document.
    I'm a windows user so the Photoshop script I wrote though in javascript will most likely only run on a windows platform because of my use of windows features its command line start command and file system conventions. I'm quite sure a Mac variant could created. Here is screen capture showing how well the defile shape  matches up and a link to the script. You would need to download potrace to use it and fix the vars in the script that point to potrace. http://www.mouseprints.net/old/dpr/potrace.jsx

    Good day!
    Please check out the chapter "Automation" in the Reference.
    If the task can be recorded as a plain Action it can be applied to multiple Files for example via File > Automate > Batch or File > Scripts > Image Processor.
    Regards,
    Pfaffenbichler

  • Quick SAP Script question New Page Print

    Quick SAP Script question
    I have added a new page to an existing SAP Script BUT only want it to print if a condition is true.
    I need to do this from within the form as the print program is SAP Std.
    Any idea how I can prevent the new page from printing?
    i.e. I need the form NOT to call the new page if the condition is false. Is there a way of forcing an exit or stop from with in the form?

    Hi,
    To trigger a new page, there is script ediotr command NEW-PAGE.
    so find where is that command is triggered and use the below code for trigger it on any specific condition....
    if &condition& = 'True'
    /*  NEW-PAGE
    elseif
    /: NEW-PAGE   
    endif
    so it means if condition is satisfied your new page will not work.. else it will...
    Hope you got it...
    Try this..
    Best luck..
    Regs,
    Lokesh.

  • Photoshop Scripting

    Kennt jemand eine Möglichkeit mit VB Text auf ein Bild zu schreiben, welcher unterschiedliche Formatierung (normal und Kursiv) im Text hat. Z.B. "Dieser Text wird ab hier kursiv geschrieben"

    Das Problem ist, dass das DOM von Photoshop den Zugriff auf Teile des
    TextItem nicht zuläßt, soweit mir bekannt ist (Photoshop 7, was mit CS ist
    kann ich gerade nicht sagen).
    Generell ist die englischsprachige Newsgroup "adobe.photoshop.scripting"
    bzw. das entsprechende Forum (werden miteinander abgeglichen) da die beste
    Adresse für Fragen, aber eine schnelle Suche dort hat mir auch keine Lösung
    eingebracht. Bleibt also nur noch die Möglichkeit, mit verschiedenen
    Textlayern zu arbeiten, und diese dann per Script aneinander auszurichten.
    Aber auch nicht wirklich schön... Das DOM von InDesign ist da zum Glück
    besser dokumentiert unfd vor allem umfangreicher.
    Jens

  • Interactive selection using photoshop script

    How to make a script pause till the user makes a selection and continue again using photoshop script?

    You can use two Scripts or one Script that, depending on some predetermined factor, performs two different tasks.
    So you could for example write something into the metadata, a channel, a txt file, … when a Script is run and that information is absent, and if it isn’t have the Script perform something else and remove that again.
    Edit: You probably could also set up the Script Events Manager to check for something on any Selection change and have it run a Script depending on that but I doubt that’s a good idea.

  • Can i invoke Photoshop Scripting in web page?

    Can i invoke Photoshop Scripting in web page?

    hmmm...
    On the page in admin,we should have a button to export the  item to Photoshop.  A PSD of the entire should be assembled from the elements of the XML. This means that the text leading and tracking will need to be translated from server settings to Photoshop settings. Font sizes should also match.

Maybe you are looking for