Photoshop Script Record

Is there a tool which can record the actions that are perfomred in Photoshop.
Had Script Editor and Script Debugger, but they are not able to record the actions that Photoshop application is performing. Is there anything that I need to enable in Photoshop so that the tools can record actions that photoshop is performing
Using Photoshop CS3(10.0.1)
System :MacBook(version 10.5.7)

You need to get yourself over to http://www.ps-scripts.com/ find the latest version of 'xTools' install it. Part of this is a script clean up the code and make a function of it. This will help you make much more out of the plug-in's output. The code can then be called from inside your AppleScript tell doc block.
OK I had a quick try during lunch and made a sample script:
tell application "Adobe Photoshop CS2"
activate
set Doc_Ref to the current document
tell Doc_Ref
do javascript "LayerOuterBevel(255,255,255,50,0,0,0,75,120,30,80,12,3);
function LayerOuterBevel(hR,hG,hB,hOpacity,sR,sG,sB,sOpacity,angle,altitude,depth,size,soften) {
  function cTID(s) { return app.charIDToTypeID(s); };
  function sTID(s) { return app.stringIDToTypeID(s); };
    var desc1 = new ActionDescriptor();
        var ref1 = new ActionReference();
        ref1.putProperty( cTID('Prpr'), cTID('Lefx') );
        ref1.putEnumerated( cTID('Lyr '), cTID('Ordn'), cTID('Trgt') );
    desc1.putReference( cTID('null'), ref1 );
        var desc2 = new ActionDescriptor();
        desc2.putUnitDouble( cTID('Scl '), cTID('#Prc'), 416.666667 );
            var desc3 = new ActionDescriptor();
            desc3.putBoolean( cTID('enab'), true );
            desc3.putEnumerated( cTID('hglM'), cTID('BlnM'), cTID('Scrn') );
                var desc4 = new ActionDescriptor();
                desc4.putDouble( cTID('Rd  '), hR );
                desc4.putDouble( cTID('Grn '), hG );
                desc4.putDouble( cTID('Bl  '), hB );
            desc3.putObject( cTID('hglC'), cTID('RGBC'), desc4 );
            desc3.putUnitDouble( cTID('hglO'), cTID('#Prc'), hOpacity );
            desc3.putEnumerated( cTID('sdwM'), cTID('BlnM'), cTID('Mltp') );
                var desc5 = new ActionDescriptor();
                desc5.putDouble( cTID('Rd  '), sR );
                desc5.putDouble( cTID('Grn '), sG );
                desc5.putDouble( cTID('Bl  '), sB );
            desc3.putObject( cTID('sdwC'), cTID('RGBC'), desc5 );
            desc3.putUnitDouble( cTID('sdwO'), cTID('#Prc'), sOpacity );
            desc3.putEnumerated( cTID('bvlT'), cTID('bvlT'), cTID('SfBL') );
            desc3.putEnumerated( cTID('bvlS'), cTID('BESl'), cTID('OtrB') );
            desc3.putBoolean( cTID('uglg'), true );
            desc3.putUnitDouble( cTID('lagl'), cTID('#Ang'), angle );
            desc3.putUnitDouble( cTID('Lald'), cTID('#Ang'), altitude );
            desc3.putUnitDouble( cTID('srgR'), cTID('#Prc'), depth );
            desc3.putUnitDouble( cTID('blur'), cTID('#Pxl'), size );
            desc3.putEnumerated( cTID('bvlD'), cTID('BESs'), cTID('In  ') );
                var desc6 = new ActionDescriptor();
                desc6.putString( cTID('Nm  '), 'Linear' );
            desc3.putObject( cTID('TrnS'), cTID('ShpC'), desc6 );
            desc3.putBoolean( sTID('antialiasGloss'), true );
            desc3.putUnitDouble( cTID('Sftn'), cTID('#Pxl'), soften );
            desc3.putBoolean( sTID('useShape'), false );
            desc3.putBoolean( sTID('useTexture'), false );
        desc2.putObject( cTID('ebbl'), cTID('ebbl'), desc3 );
    desc1.putObject( cTID('T   '), cTID('Lefx'), desc2 );
    executeAction( cTID('setd'), desc1, DialogModes.NO );
};" show debugger on runtime error
end tell
end tell

Similar Messages

  • 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

  • How to handle multiple sessions in Script recorder

    Hi,
    I have a requirement to update certain records from a program. For that I have to put a breakpoint the program (which I did manually).
    Now when I use the scripting tool to record the events, only events related to the original session gets recorded. Any events on the newly opened debugger mode is not recorded !
    However, I can record the events in the debugger separately.
    So I have 2 scripts which are session dependent. In Session 1 my program runs and in session 2 (which opens the debugger in runtime) my edits need to be done.
    How to create a VB script which can handle this session issue?
    Went through this blog by Scriptman and since i am new couldnt get it working !!
    Please help me with a framework to handle this issue.
    Activate a session via Gui scripting
    Thanks,
    Jaywant

    Hi Thomas,
    Yes I have to handle both the session simultaneously.  Let me illustrate further.
    I have to update some (10k- 15k) products from a z table in CRM. We have a custom program for this.
    So, i use se38 and insert a breakpoint in the program (to make the updates to a field) and then execute it. Now I start my script recorder. Provide inputs to the program and hit execute.
    At this point my script recorder is running on the se38 window and not on the debugger window !
    I change the values and press F8. These manual updates do not get captured by script recorder.
    But, if I start my recorder once the debugger window was opened already, I can capture all these changes.
    So we have things like this...
    Script1.vbs --> Events captured in se38
    Script2.vbs --> Events captured in the debugger
    If I merge them and run, the recorder is not handling the new debugger session and the execution halts to get the "excel is waiting for another ole action"
    Thanks,
    Jaywant

  • 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

  • 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

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

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

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

  • Error applying Adobe Reader 11.0.07 patch - "Error 2762. Cannot write script record. Transaction not started"

    I have a problem applying the "adobe reader 11.0.07" patch. I have downloaded "AdbeRdrUpd11007_MUI.msp" from Adobe site and tried applying the patch using the command.
    The following error is prompted
    "Error 2762. Cannot write script record. Transaction not started" at the end of installation, But the version is updated to "11.0.07" in ARP.
    This error is mainly related to custom action sequence in "Execute sequence".
    I have created logfile and checked. it points to the custom action - "CreateAcroPDFRegForIE11".
    Could someone help me resolve this issue?
    Thanks in Advance..

    Hello Kashif,
    Find the answers below:
    1) How did you install reader MUI for example by running setup.exe or through an AIP or may be via SCCM or GPO? Any customizations during first install?
         package is for SCCM  and the Installation is carried through msi . AIP
    2) Which version of Reader MUI do you have installed curently?
         Adobe Reader 11.0.05
    3) Which command did you use to run the patch?
         msiexec /p AdbeRdrUpd11007_MUI.msp
    4) Did you run the patch from an elevated command prompt?
         Yes
    5) Which OS version are you at?
         Windows 7 64 bit
    Am unable to share the log file, am just copying the lines where the installation stops and prompts error:
    MSI (s) (24:20) [11:26:44:071]: Doing action: CreateAcroPDFRegForIE11
    Action start 11:26:44: CreateAcroPDFRegForIE11.
    MSI (s) (24:20) [11:26:44:071]: Transforming table CustomAction.
    MSI (s) (24:20) [11:26:44:071]: Transforming table CustomAction.
    MSI (s) (24:20) [11:26:44:071]: Note: 1: 2262 2: CustomAction 3: -2147287038
    MSI (s) (24:20) [11:26:44:071]: Transforming table CustomAction.
    MSI (s) (24:20) [11:26:44:071]: Transforming table Binary.
    MSI (s) (24:20) [11:26:44:071]: Transforming table Binary.
    MSI (s) (24:20) [11:26:44:071]: Note: 1: 2262 2: Binary 3: -2147287038
    MSI (s) (24:20) [11:26:44:071]: Transforming table Binary.
    MSI (s) (24:20) [11:26:44:071]: Note: 1: 2762
    MSI (c) (80:E8) [11:26:44:243]: Font created.  Charset: Req=0, Ret=0, Font: Req=MS Shell Dlg, Ret=MS Shell Dlg
    Error 2762.Cannot write script record. Transaction not started.
    MSI (s) (24:20) [11:33:58:305]: Product: Adobe Reader XI (11.0.07)  MUI -- Error 2762.Cannot write script record. Transaction not started.
    Action ended 11:33:58: CreateAcroPDFRegForIE11. Return value 3.
    Thanks In Advance..

  • Photoshop scripting calls from Adobe Configurator panels

    Can javascritpt functions executing from an HTML element inside a panel affect the photoshop scene?  I know it can using the scripting toolkit, but I'm trying to do this in the Adobe Configurator.  In Configurator I created a new panel with an HTML panel and a button inside it that executes a javascript function on click "createDocument".  When I bring this into photoshop, I can load the panel and click on the button, but I never get a new document created.  If I uncomment the "alert" line, reexport the plugin, and click on the button, I get the alert, but still don't get a new document. 
    var createDocument = function() {
        app.documents.add(2,4);
        //alert("creating new doc!");
    I've tried other functions like creating layers, but still don't see anything happening in photoshop affecting the UI.  It's even more frustrating that I don't see any kind of error message that is happening.  My conclusions seem to imply this panel can't call the photoshop files for some reason (running in a different VM, wrong namespace, etc.).  Has anyone been able to make photoshop scripting calls from inside a configurator panel? 

    You might have better luck asking the in the Configurator forum. http://forums.adobe.com/community/labs/configurator/

  • Call photoshop script in illustrator

    HI
    i want to call photoshop script via illustrator cs5 to open eps file and save it as Tiff
    i tried with following script i couldn't achive
    sourceFolder = Folder.selectDialog( 'Select the folder');
    var epsOpts =' new EPSOpenOptions();';  
         epsOpts+='epsOpts.antiAlias=true;';
         epsOpts+='epsOpts.mode=OpenDocumentMode.RGB;';
         epsOpts+='epsOpts.resolution=300;';  
         epsOpts+='epsOpts.constrainProportions=true;';
    if ( sourceFolder != null )
        files = sourceFolder.getFiles("*.eps");
        var outputFolder = new Folder (decodeURI (sourceFolder) + "/Output");
        if (outputFolder.exists == false)
        outputFolder.create();
    else
    alert ('their are no eps files in selected folder');
    if ( files.length > 0 )
       for ( s = 0; s < files.length; s++ )
            doc = app.open(files[s]);
              function check(doc);//i here call the illustrator function to check font color etc...
         var document = 'open(doc,epsOpts);';
         var psScript = 'app.displayDialogs = DialogModes.NO;';    
         psScript += 'app.open(' + document.toSource(),epsOpts + ');';    
         psScript += 'app.activeDocument.close( SaveOptions.SAVECHANGES );';     
         psScript += 'app.displayDialogs = DialogModes.ALL;';
         tiffSaveOptions = 'new TiffSaveOptions();';
        tiffSaveOptions+='tiffSaveOptions.imageCompression = TIFFEncoding.TIFFLZW;';
        psScript +='var docn='documentName.slice (0, -4);';
        psScript +='var newFile = new File (decodeURI (outputFolder) + "/" +docn+ ".tif");';
        psScript +='document.saveAs(newFile,tiffSaveOptions,true,Extension.LOWERCASE);';
        psScript +='document.close(SaveOptions.DONOTSAVECHANGES);';
    btMessaging( 'photoshop',psScript,epsOpts,tiffSaveOptions );\\here calling photoshop script to open the checked figure
    function btMessaging( targetApp, script,,epsOpts,tiffSaveOptions )
                       var bt = new BridgeTalk();
                       bt.target = targetApp;
                       bt.body = script;
                       bt.onResult = function( inBT )
                                alert( 'Done…' )
                       bt.onError = function( inBT )
                                     alert( 'NOT Done…' )
    help to open eps file through bridgetalk and save it as Tiff
    Thanks
    Appu

    Can you NOT just move the compoundPathItem's pathItems to another location before/after? Kind of like this…
    #target illustrator
    var docRef = app.activeDocument;
    with(docRef) {
         with(compoundPathItems[0]) {
              var x = pathItems.length;
              for (var i = x-1; i >= 0; i--) {
                   pathItems[i].move(compoundPathItems[0], ElementPlacement.PLACEBEFORE);

Maybe you are looking for

  • Unable to capture IdcService on certain webdav actions like copy-paste

    We wrote a simple checkin filter long back for the Dynamix Prefix functionality. We have written an If Clause to restrict running this for any services other than CHECKIN related ones, by checking the value of IDCService parameter There is a scenario

  • IPod / iTunes problems

    My iPod is no longer showing up in my Mac's finder, nor is it launching iTunes. I've tried the re-sets, tried the iPod updater and now I've trashed iTunes, as per the recommended help. I'm now trying to re-install iTunes but I'm unable to as the inst

  • Showing Group Results

    I have a group above report that is 3 levels deep (a)Group --(b)Rep ----(c)Orders Group a and group b will always have data returned. Group c however may or may not have data returned based on the query. I would like to supress group b if group c doe

  • User self-registration in the portal

    I am developing an Intranet site for a very large organization using OPortal 3.0. Since is impossible to manage personally every request to add users to the portal (over 3000 potential users) I need to provide a self-registration procedure so users c

  • First kernel panic! I'M PANICKING never mind the laptop!

    Hi all, Well (I think) my faithful Macbook 13" just had it's first kernel panic. I've copied the panic log below: I was just wondering whether anyone would be able to tell me what caused it? I'm just worrying that my mac is dying now even though it s