Photoshop CS3 Repeat Action Script.

I need an AppleScript for Photoshop CS3 that will run the selected Action on all layers within the selected Layer Group.
I have a Layer Group of Graphics that I want to apply various effects, and distortions to. I record the action once, but then I have to manually select each layer and play the action. I would like a script that will play the selected action to every layer within the selected group.
Any ideas?

This is what I have so far:
tell application "Adobe Photoshop CS3"
tell current document
set myActionSet to "" --Current Action Set
set myAction to "" --Current Action
set myLayerSet to "" --Current Layer Set
set layerCount to layers of layer set myLayerSet
repeat with i from 1 to the count of layerCount
set current layer to layer i of layer set myLayerSet
set the visible of layer i of layer set myLayerSet to true
do action myAction from myActionSet
set the visible of layer i of layer set myLayerSet to false
end repeat
end tell
end tell
I am having problems getting the first 3 variables to be what is currently selected/highlighted without manually typing them in before running the script.
I am also getting errors if a layer within the layer set is empty.
Any ideas?

Similar Messages

  • What are the most resource intensive Photoshop tutorials or Action Scripts

    I'm trying to benchmark some RAM on a machine, and was planning on using Photoshop as a portion of the real world tests. So I was wondering what some of the most resourse intensive, yet realistic and common things to do are.
    Alternatively, perhaps somebody knows of some highly complex tutorials I can follow along to and create a Action script myself. I just don't want my tests to be "Opened random image, doubled size, rotated 12-degreese, apply filter, bla bla bla".
    I've been googling around a bit but nothing really caught my eye. I'd rather hear from real people than read through a bunch of "100 best photoshop Action scripts" all day, yaknow?
    Cheers

    I'm trying to benchmark some RAM on a machine, and was planning on using Photoshop as a portion of the real world tests. So I was wondering what some of the most resourse intensive, yet realistic and common things to do are.
    Alternatively, perhaps somebody knows of some highly complex tutorials I can follow along to and create a Action script myself. I just don't want my tests to be "Opened random image, doubled size, rotated 12-degreese, apply filter, bla bla bla".
    I've been googling around a bit but nothing really caught my eye. I'd rather hear from real people than read through a bunch of "100 best photoshop Action scripts" all day, yaknow?
    Cheers

  • Photoshop CS3 Repeat Registration under XP

    I just upgraded to CS3 on Windows XP and every few days I am prompted to register. I registered twice and then spoke with Customer Service who could not see the registration so they manually registered me. Since then the registration screen appeared again and I registered a third time.
    I just spent 4 1/2 hours on the phone going back and forth between Adobe Customer Service and Photoshop support. Customer Support wants me to return CS3 and buy it again under a different customer number. Support wants me to uninstall all Adobe products, delete the registry branch under HKLM\SOFTWARE\Adobe, delete all Adobe content under "Program Files" and under "Documents and Settings", create a new user account, add that new user to the Administrators group, then reinstall all Adobe products using that new user account.
    I asked support where Photoshop CS3 records the registration information and was told that since CS3 is a new product, they do not have that level of technical information.
    Has anyone else had a registration problem with CS3 on XP?
    Does anyone know where the registration information is stored? If it is stored in the registry, I should be able to manually enter the keys and data.

    Under Vista, you need to mess with UAC. My OS is XP Pro SP2 (32-bit).
    I could not find a CS3 registration entry in the registry. Tech support states they have no documentation on how CS3 records the registration and (if this is true, it is pathetic) do not have access to engineering (software developers) to ask them.
    Multiple registration attempts did not stop the application from asking me to register every few days, so on Feb 19th I selected never register. As of this morning, PS has not again asked me to register. If that remains the case for a week, then the issue is solved. After the first two registration attempts failed, I had Customer Service manually register the product.

  • Photoshop CS3 Batch Action Delimma

    I've run into a problem recently with batching actions in CS3 to process vector files like ai or pdf.  I record the open step to set import preferences then select override action "open" commands, but the program opens the image with the name of the file used to record the action instead of taking the name of the file being processed. The result is that the new files all have the same name and just keep overwriting the last one. I'm not touching the file name when I record the action. The only way I've been able to get around this is to manually open the files, then run the rest of the action. I know in the past, recording an open step with overide action open commands has worked to batch these types of files. Is there a way to set the import preferences while keeping the source file's name when batching?

    With ai files you could record your open step as Open As>GenericEPS.
    Then try the settings in the batch as below.
    For pdf files it's more complex.
    One way is to use the Scripts>Image Processor and set your open options for pdf's
    by opening a pdf, setting the options in the dialog and click ok to open. Close that image.
    When you process your pdf's with the image processor,
    you don't need any open steps in your action because the image processor
    should use the last settings used in the open pdf dialog.
    A couple of drawbacksof the image processor:
    1. If you want to change the open settings for pdfs,
       you have to repeat opening another pdf to set the settings.
    2. If you want to save in a format other than the three in processor dialog,
       with the file naming different for each file, that could be a problem.
    A better solution for pdfs might be the PDF Processor, which you get here:
    http://ps-scripts.com/bb/viewtopic.php?f=10&t=1882&sid=cef721acdf7cedf8464854df2811d1a8
    MTSTUNER

  • Photoshop CS3 Actions Batch mode bug?

    I posted this in the Mac forum but received no responses after a couple of days, so I am trying it here.
    Photoshop CS3 Actions seem to have a bug such that when used in Automate > Batch mode it will use the name of the first file opened in the batch session for every file processed in that session. Since that name is used in Save step, this means having to deal with the "File Already Exist" dialog for every file in the batch because it is attempting to save at the designated location with the same file name. If the continue option is chosen each time, the final result is one file with the first opened file name, but with the contents of the last processed file.
    To confirm that this is a problem particular to the opening step, I have disabled all processing steps as well as the saving step by toggling them in the Actions panel. I then ran the action in batch mode on a folder containing 4 files. This resulted in 4 opened files all with the same name but different image content.
    This was with the "Override 'Open' Action Commands" checked/not checked, and the "Suppress File Open Options Dialogs"  checked/not checked. The  problem described also occurs when using a Droplet.
    By comparison, Photoshop CS exhibits the expected behavior: when an action is used in batch mode to process an entire folder of files, the name of each file is retained after opening and used after processing in the save or export step.
    The above described behavior of CS3 is a change acquired along the way to the CS3 version (I do not have the CS2 version to test). But more importantly, can someone please report if the CS4 version behaves as I described for CS3, or if it has been returned to the CS behavior?
    OS X 10.4.11
    G4 800 MHz 2 MB L3/processor 1.25 GB SDRAM
    Is this a known bug?
    Al

    Hello Miguel,
    I was going to come back to post some of my findings, one of which relates to your staement:
    "- The open command created by Photoshop 6 doesn't keep the file's name, it is a much simple open command, and so it opens the file with the own file's name."
    In my case I found that my CS version of the "same" action worked, while the  CS3 version failed, precisely because the earlier one records less detail for the open step.
    My need is to convert dozens of Quark pdf files to GIF and JPEG files for the web. What I found after several days of testing is that it is best to record the opening step in CS3 NOT using a pdf file, so that the "Open As Generic Pdf with 'Name____' " would not be coded into the opening step. Instead I recorded the whole action using a PSD file. Then I can proceed to run it in Batch mode choosing a folder of Quark pdf files as the source location with "Override 'Open' Action Commands" checked, and the "Suppress File Open Options Dialogs"  checked, and it opens all the pdf files just fine in some background process, not getting stuck in the details of the file name, and proceeds to cary out the flattening, saving, and closing steps to my chosen target location and uses the finder file name of each pdf files in the source folder to save a filename.ext in the Target folder.
    Contrary to what I stated in my original post, "Override 'Open' Action Commands" checked/not checked does indeed make a difference. If it is not checked, the files do open in batch mode, but the other steps are not performed. There is much more about this that I would like to know, and this may not be a general solution for all types of files that a user may wish to process in batch mode, but it works for my case. The main trick is to use as simple an opening step as possible when recording the action, and then letting Photoshop use whatever background process it requires to open a particular file type. I tested this by manually saving a pdf file to each of the twenty some odd formats available in the save as dialog to a Source folder, and then proceeded to batch process that folder with the action described above, and it worked for all except one.
    So while there may not be a bug involved in this problem, there certainly is a lack of documentation about how the "improvements" in the opening step in newer versions of Photoshop affect using Actions in Batch mode.
    Please comment if you can further explain any of the reported results. In particular, what is the situation in CS4?
    Thanks,
    Al

  • How can I extract cursor coordinate in Adobe Photoshop for use in Action script?

    What I want to do in Photoshop (version CC, but I think this applies to any version) is label a point using count tool under my mouse's current position, and label it multiple times (for different labels). I have an action that essentially does this:
    (1) Add to count (under one label) (2) Switch to second label (3) Add to count (under second label) (4) Switch to third label (5) Add to count (under third label)
    And the problem is that I need to be able to have a variable in the action script that uses the cursor's current position (X and Y numbers) on the canvas to set these three points when the macro is activated. Currently I am only able to record the script using constant X, Y values (the same point is labeled over and over when I play the recorded action). I am able to extract the code for the action for editing (via xbytor2's suggestion in this forum:https://forums.adobe.com/thread/696989) and I see where the variable can go, I just don't know what exactly to put in place of the constant X, Y values that will let Photoshop input the mouse's current coordinates...
    Any ideas? Much appreciated!!

    You could use the pen tool set to path and create a single dot, then run the script to get the cursor positions and use that in your script.
    var strtRulerUnits = app.preferences.rulerUnits;
    var strtTypeUnits = app.preferences.typeUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    app.preferences.typeUnits = TypeUnits.PIXELS;
    var doc = activeDocument;
    var workPath = doc.pathItems.getByName("Work Path");
    var pos = workPath.subPathItems[0].pathPoints[0].leftDirection;
    $.writeln("x = " + pos[0] + " y = " + pos[1]);
    doc.pathItems.getByName("Work Path").remove();
    app.preferences.rulerUnits = strtRulerUnits;
    app.preferences.typeUnits = strtTypeUnits;

  • Can you run Action Scripts with Adobe Photoshop Elements 8?

    I have Photoshop Elements 5 and i cant find the 'Action' tab. Im considering buying Elements 8 but ONLY if i know for sure if i can use action scripts with it.
    Message was edited by: Jochem van Dieten

    Elements does not include Photoshop's Actions Palette function.  You can get an add on for elements that will is able to Play some Photoshop Actions in Elements. Not all Photoshop Actions actions can be played for some action use Photoshop features that are not in Elements like Photoshop Scripting. http://help.adobe.com/en_US/PhotoshopElements/8.0/Win/Using/WS961FF412-5006-4364-B315-1576 62B1F7E9.html
    http://hiddenelements.com/
    http://www.photokaboom.com/photography/learn/Photoshop_Elements/actions/1_actions.htm

  • Photoshop action script

    Hello,
    Can someone give me an action script which could position my layer on specific Y location depending on height of text. I have a hundreds of PSD files with text. Each text has a different height. I need a script which would put the text of every PSD file so that Y position is always 8.5 cm but that Y position should be across the middle of text. My canvas is always the same size.
    Thank You very much!!

    It would be quite easy to write such a Photoshop script if one had the specifics which you did not provide. Action Script is a Flash  feature.  However a Photoshop can most likely be written to what you want here a link for you
    Adobe Photoshop Scripting | Adobe Developer Connection
    You should also be able to record an action to do what you want if all the text layer are in the same relative place in the layers stack. By aligning the text layer to a selection the action makes. Actions do not require programming you just need to know Photoshop and how to record actions.

  • Why do i repeatedly get Adobe action script error? How do i solved it, Why do i repeatedly get Adobe action script error? How do i solved it

    Why do i repeatedly get Adobe action script error ? How do i solved it ?

    We don't know what that is, you'll have to talk to Adobe on their forums.

  • Photoshop 6 Action Script

    Hello,
    I have an action script that produces an ebook cover. I used this action script a few months ago several times to create some covers, but recently when I use it on the same computer  it is not working anymore. The computer has adobe photoshop 6.0 software installed.  I get many different errors such as "The object previous document is not available", the command move is not available, the object layer front is not available etc...
    Is there some type of general setting that might have changed in my software that is preventing the action script from working now?  It was just working 3 months ago with no errors.
    Thank you.

    Thank you for your answer.  I realize it is difficult to diagnose without seeing exacts.  The script runs in two steps.  Step 1 it open the flat cover.  Then you edit the text.  Step 2 it then product the ebook cover. 
    This worked perfect just a few months ago.  Now the exact script I run from a few months ago no longer works.  Step 1 is fine, but step 2 gets a bunch of errors I mentioned.
    The mode is set to 8 bit channel. 
    Is there any other setting I could change to possible make this script work?  It just doesn't make sense why it worked a few months ago and now it is not working on the same computer. 
    I am wondering if I changes a setting in photoshop without know or something.
    Thank you.

  • CS3 action script 2.0: compiled clip components do not appear in the component panel

    Hi,
    I have a FLA file containing 3 compiled clip components.
    I use a MXP file to copy this file to the components panel,
    this works fine when using Macromedia Flash 8 or Macromedia MX
    2004, but when using CS# the components do not appear in the
    components panel, only if a use regular component or SWC component
    it appears in the panel, any reason why?any ideas?
    Thanks
    Maya

    I can use this code from html. I'm able to say where the swf
    and xml file are. I just don't know how to do this using action
    script.
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
    width="768" height="576" id="tech" align="middle">
    <param name="movie"
    value="slideshow.swf?xml_path=musicbox_slideshow/slideshow.xml"
    />
    <param name="quality" value="high" />
    <embed
    src="slideshow.swf?xml_path=musicbox_slideshow/slideshow.xml"
    quality="high" width="768" height="576" name="tech" align="middle"
    allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    />
    </object>.

  • Post script error printing from Photoshop CS3

    Getting PS error when trying to print to new Lexmark c543dn from Photoshop (CS3).  Prints endless pages with multiple symbols/characters.  Otherwise prints fine from any other programs.  Worked fine with 9 year old Epson inkjet.  Any solutions? Lexmark doesn't have any updated drivers that address this. 

    Amy, your question would get a better response from the Photoshop general Forum. Post there if you have NOT already done so…
    oppps beaten to it…

  • Problem with action script from Schewe and Frasier book.

    I am working on a Photoshop CS3 action script to
    open raw files, do a couple of modifications
    in Camera Raw, exit camera raw and save
    the file as a jpeg.
    I think this should work, because I am working
    on an example out of "Camera raw with Adobe
    Photoshop CS3" by Schewe and Frasier which
    shows the step recorded.
    See page 344 of Schewe and Frasier.
    In figure 9-11 you see, after the open
    statement, 10 lines of details like
    "As camera raw"
    "Model:Canon 350d" etc.
    I get the file path and name line, but
    none of the other details reflecting
    actions in Camera Raw.
    The problem is that in setting up the action, none
    of the steps done in camera raw after I do the
    open get recorded.
    And it works in my old CS version !
    Out of frustration I repeated the action
    script creation in my old CS version and
    it worked fine.
    Any idea where I am screwing up ?

    Crappy format justification:
    I sometimes have a day of family
    type pictures that are in raw format
    that I want to put up on the internet
    quickly. I would like to be able to
    apply the "Auto" feature, as in general
    it seems to be pretty good for something
    quick.
    OK, it sorta works in CS, go here
    http://www.angelplace.net/photos/sample.jpg
    It sets up all of the details and gets the
    "As camera raw" but opens the .dng file
    rather than the Camera raw window.
    The point is, these important settings
    seem to be saved, which does not happen
    in CS3.

  • How to open animated .GIF files in Photoshop CS3 and newer

    Q: Since ImageReady is long gone from Photoshop, how can I open animated GIF files in Photoshop CS3 and newer?
    A: File -> import-> video to layers.
    In the dialogue box type "*.*" to show all file types.
    Select your GIF file and which frames to import.
    They will now be available in your animation palette.

    Zeno
    curt y, sorry for the late reply, I tried that but I doesn't work. I have to choose at least two files in the Load Layers window in order for the OK button to be available and then some action script uses the different files to make layers and merges them but not from the frames of the gif file. I can undo through the script to see what it did but it never accessed the frames of the gif file, just the first frame. Choosing "make frames from layers" in the animation palette only puts the original files into layers - that is only the first frame of the gif file.
    I guess I'm out of luck with the 64  bit version of Photoshop as Zeno suggested :-(
    What program would you people suggest for opening each frame from gif files?

  • Photoshop CS3 Batch fails to rename - saves as original name for every file?

    I have created the following action:
    Open (File from folder on desktop - original is JPG)
    Image Size (resize image to 1024xXXX)
    Save (Save as PNG)
    Close
    I run the action via Batch:
    Default Actions
    PNG 1024xXXX (action created above)
    Source folder on desktop
    Destination: Folder under root C:
    File Naming: yymmdd (date + Document Name + extension
    Starting serial#: 1
    Errors: Stop for Errors
    When I run the batch, I get one file in the output folder named after the original file used to create the Action. All subsequent files that are opened to be processed do not get saved as reduced PNG files in the output folder.
    The following is a screenshot of the batch as it is running:
    http://www.mpecsinc.ca/images/08-02-20PhotoshopBatch.jpg
    The image in the top left corner is the original image that was used to create the action. It was closed after it was processed and the output file was created.
    The file at the bottom right is the second file that was opened to be processed.
    But, for some reason, the original file keeps showing up after each subsequent file is opened for processing! It is the only file that is saved to the output folder.
    I hope I am explaining myself well enough. This is very frustrating as I have tried all manner of action combinations along with batch combinations and keep coming up with the same or similar results.
    Thanks for any help.
    Philip

    Boy, do I feel like an idiot . . . I was trying to run this script from Bridge (batch action-select images from Bridge) . . . If I just run the batch action in Photoshop CS3 only. . . everything works great . . .
    Many Thanks for all the help!!!

Maybe you are looking for