Automating Photoshop Actions

Hi:-)
I need a script which takes a folder of images and gets them ready for a website by
1) opening each image and saving it for the web
2) checking if any of its dimensions are above 500 - if not moving on to the next image and, if so,
3) proportionally reducing that dimension to 500.
Is this something I can do with Photoshop Actions alone? If not, can I use Applescript to accomplish this?
Thanks a lot !

Hi Mark thanks a lot.
I tried option 2 today. Initially it was returning the filename without the extension (baseName) as a string with a space between each character (as in "f i l e n a m e")so I was getting the error message
"Adobe Photoshop CS got an error: Folder some object wasn't found."
I then slightly rejigged the on getBaseName(fName) handler to the following:
on getBaseName(fName) -- File name without extension
set x to "."
set y to offset of x in fName
set z to y - 1
set baseName to ""
repeat with i from 1 to z
set baseName to baseName & character i of fName as string
end repeat
return baseName
end getBaseName
Now I get correct filename without the extension bu now I am getting the following error message which I don't understand:
"Adobe Photoshop CS got an error: General Photoshop error occurred. The parameters for command “Save” are not currently valid."
I ran the Event log while running the script and pasted below is what it recorded:
tell current application
choose folder with prompt "Please choose the folder containing Images" without invisibles
alias "Macintosh HD:Users:bisd:Desktop:photos2.fpbf:"
end tell
tell application "Finder"
get every file of alias "Macintosh HD:Users:bisd:Desktop:photos2.fpbf:"
{document file "pismall.gif" of folder "photos2.fpbf" of folder "Desktop" of folder "bisd" of folder "Users" of startup disk, document file "ppf_large.gif" of folder "photos2.fpbf" of folder "Desktop" of folder "bisd" of folder "Users" of startup disk, document file "ppf_small.gif" of folder "photos2.fpbf" of folder "Desktop" of folder "bisd" of folder "Users" of startup disk, document file "ppfa copy.gif" of folder "photos2.fpbf" of folder "Desktop" of folder "bisd" of folder "Users" of startup disk, document file "ppfa.gif" of folder "photos2.fpbf" of folder "Desktop" of folder "bisd" of folder "Users" of startup disk, document file "ppfa_large.gif" of folder "photos2.fpbf" of folder "Desktop" of folder "bisd" of folder "Users" of startup disk}
end tell
tell application "Adobe Photoshop CS"
get properties of settings
{color picker:Adobe color picker, interpolation method:missing value, export clipboard:true, show tool tips:true, keyboard zoom resizes windows:true, auto update open documents:false, show Asian text options:false, beep when done:false, dynamic color sliders:true, save palette locations:true, show English font names:true, use Shift key for tool switch:true, number of history states:20, create first snapshot:true, nonlinear history:false, smart quotes:true, image previews:yes, icon preview:true, full size preview:false, Mac OS thumbnail:true, Windows thumbnail:true, append extension:yes, use lowercase extension:true, ask before saving layered TIFF:true, maximize compatibility:ask, recent file list length:10, display color channels in color:false, use diffusion dither:false, pixel doubling:false, painting cursors:brush size, other cursors:standard, grid size:medium, use video alpha:false, gamut warning opacity:100.0, ruler units:pixel units, type units:mm units, column width:180.0, column gutter:11.990478515625, point size:postscript size, guide style:solid line, grid style:solid line, grid subdivisions:4, show slice numbers:true, use additional plugin folder:false, additional plugin folder:missing value, cache levels:4, use cache for histograms:false, maximum RAM use:50, use history log:false, save log items:metadata, edit log items:sessiononly, save log items file:missing value, best type:reference, default type:reference, class:settings-object}
set ruler units of settings to pixel units
end tell
tell application "Finder"
get document file "pismall.gif" of folder "photos2.fpbf" of folder "Desktop" of folder "bisd" of folder "Users" of startup disk
alias "Macintosh HD:Users:bisd:Desktop:photos2.fpbf:pismall.gif"
end tell
tell application "Adobe Photoshop CS"
activate
set display dialogs to never
open alias "Macintosh HD:Users:bisd:Desktop:photos2.fpbf:pismall.gif"
current application
get current document
document "pismall.gif"
get height of document "pismall.gif"
49.0
get width of document "pismall.gif"
116.0
get name of document "pismall.gif"
"pismall.gif"
end tell
tell current application
offset of "." in "pismall.gif"
8
end tell
tell application "Adobe Photoshop CS"
save document "pismall.gif" in file "Macintosh HD:Users:bisd:Desktop:photos3:resized:pismall" of document "pismall.gif" as JPEG with options {quality:10} appending lowercase extension with copying
"Adobe Photoshop CS got an error: General Photoshop error occurred.
- The parameters for command “Save” are not currently valid."

Similar Messages

  • Automating using Photoshop Actions & Excel document??

    Hi - I'm new to automator and I wanted to know if it was possible to have automator run photoshop actions and also pull info from an excel document. Here is ideally what I’d like to do:
    I receive hundreds of images (book covers & interiors) that I’d like to resize and rename automatically when they are Dropped into a folder.
    There are 3 different resizes that I’d like to be done. I have the resizing actions in photoshop already. I run the automate>batch command in photoshop, but I’d still like to make it simpler.
    Original files – These are how I receive the files and I clean them up to look like this.
    - COVERS – i.e. 140394877213_ccvr.tif
    - SPREADS – i.e. 140394877213_csp1.tif, 140394877213_csp2.tif, etc.
    Here are the different folders
    Folder 1(sized for catalog use) – action set up in photoshop cs2 that will size covers, another action to size spreads at a different size.
    - covers – bookname.tif
    - spreads – 140394877213_csp1.tif
    Folder 2 (smallest sized cover) – action in photoshop to resize cover
    - covers – 140394877213.tif
    Folder 3(sized for powerpoint presentation) – action in photoshop that will resize covers to a certain size, and a separate action that will size spreads to another size.
    - covers – bookname.tif
    - spreads – bookname_csp1.tif, etc.
    5 photoshop actions in total
    When the original files are dropped into the specified folders (folder 1, folder 2, folder 3), a photoshop action is run that resizes all the files in the folder and also renames the files.
    Can I do this? I have all the books and isbns in an excel document that I’d like automator or applescript to pull the information from the excel doc to rename the files accordingly.
    Also, is there a way to record the names of the files I receive in an excel document?
    Or even better, after the images are placed in the folder, can a script check the excel document (that has the listing of the booknames and isbns) and mark off which files where received and placed in the folder. I hope that was clear.
    Any help or advice would be much appreciated!
    MacBook   Mac OS X (10.4.8)  

    ngb111,
    I know this is possible through AppleScript as I just finished off a script that renames files based on an Excel list.
    http://discussions.apple.com/thread.jspa?threadID=871047&tstart=0
    It might be also be possible using Automator through some third-party Automator actions.
    http://www.hanaan.com/Automatorbookonline/Automator%20Actions%20Download.html

  • Lion Automator - Photoshop not showing up in applications list

    I am brand new to the Mac world and trying desperately to figure out everything.
    I have searched high and low for some sort of help/tutorial/google search on Automator and am coming up empty.
    I am running Lion on a brand new MacBook Pro along with Photoshop CS5 v. 12.1.  I have installed Photoshop Automator 5.0 as well.
    When I open Automator, in the libraries under application view mode, Photoshop is not showing in the list.  The Photoshop Automator actions do show in the main library list in Automator, however, the association icon is a gray X.
    How do I get Photoshop to show as an application?  I can't even get Automator to open Photoshop.
    I am praying that you will be able to help me.  Please let me know what additional information you need in order to help.
    Thanks in advance!
    Lisas

    OPPS....IT does say stuff....here is a list of all the stuff it says as it starts:
    8/9/11 6:45:29.651 PM Automator: The action “Add Movie to iDVD Menu” could not be loaded because the application “iDVD” was not found.
    8/9/11 6:45:29.655 PM Automator: The action “Apple Versioning Tool” could not be loaded because the file “/usr/bin/agvtool” was not found.
    8/9/11 6:45:29.656 PM Automator: The action “Apply SQL” could not be loaded because the application “Xcode” was not found.
    8/9/11 6:45:29.658 PM Automator: The action “Build Xcode Project” could not be loaded because the application “Xcode” was not found.
    8/9/11 6:45:29.659 PM Automator: The action “Convert CSV to SQL” could not be loaded because the application “Xcode” was not found.
    8/9/11 6:45:29.660 PM Automator: The action “Create Package” could not be loaded because the application “PackageMaker” was not found.
    8/9/11 6:45:29.660 PM Automator: The action “CVS Add” could not be loaded because the file “/usr/bin/cvs” was not found.
    8/9/11 6:45:29.661 PM Automator: The action “CVS Checkout” could not be loaded because the file “/usr/bin/cvs” was not found.
    8/9/11 6:45:29.661 PM Automator: The action “CVS Commit” could not be loaded because the file “/usr/bin/cvs” was not found.
    8/9/11 6:45:29.661 PM Automator: The action “CVS Update” could not be loaded because the file “/usr/bin/cvs” was not found.
    8/9/11 6:45:29.663 PM Automator: The action “Execute SQL” could not be loaded because the application “Xcode” was not found.
    8/9/11 6:45:29.665 PM Automator: The action “Get iDVD Slideshow Images” could not be loaded because the application “iDVD” was not found.
    8/9/11 6:45:29.667 PM Automator: The action “Initiate Remote Broadcast” could not be loaded because the application “QuickTime Broadcaster” was not found.
    8/9/11 6:45:29.668 PM Automator: The action “New iDVD Menu” could not be loaded because the application “iDVD” was not found.
    8/9/11 6:45:29.669 PM Automator: The action “New iDVD Movie Sequence” could not be loaded because the application “iDVD” was not found.
    8/9/11 6:45:29.669 PM Automator: The action “New iDVD Slideshow” could not be loaded because the application “iDVD” was not found.
    8/9/11 6:45:29.670 PM Automator: The action “New QuickTime Slideshow” could not be loaded because the application “QuickTime Player” was not found.
    8/9/11 6:45:29.671 PM Automator: The action “Open Keynote Presentations” could not be loaded because the application “Keynote” was not found.
    8/9/11 6:45:29.673 PM Automator: The action “Print Keynote Presentation” could not be loaded because the application “Keynote” was not found.
    8/9/11 6:45:29.675 PM Automator: The action “Set iDVD Background Image” could not be loaded because the application “iDVD” was not found.
    8/9/11 6:45:29.675 PM Automator: The action “Set iDVD Button Face” could not be loaded because the application “iDVD” was not found.
    8/9/11 6:45:29.676 PM Automator: The action “Set Movie Annotations” could not be loaded because the application “QuickTime Player” was not found.
    8/9/11 6:45:29.676 PM Automator: The action “Set Movie Playback Properties” could not be loaded because the application “QuickTime Player” was not found.
    8/9/11 6:45:29.677 PM Automator: The action “Set Movie URL” could not be loaded because the application “QuickTime Player” was not found.
    8/9/11 6:45:29.677 PM Automator: The action “Show Main iDVD Menu” could not be loaded because the application “iDVD” was not found.
    8/9/11 6:45:29.678 PM Automator: The action “Show Next Keynote Slide” could not be loaded because the application “Keynote” was not found.
    8/9/11 6:45:29.678 PM Automator: The action “Show Previous Keynote Slide” could not be loaded because the application “Keynote” was not found.
    8/9/11 6:45:29.679 PM Automator: The action “Show Specified Keynote Slide” could not be loaded because the application “Keynote” was not found.
    8/9/11 6:45:29.679 PM Automator: The action “Start Keynote Slideshow” could not be loaded because the application “Keynote” was not found.
    8/9/11 6:45:29.680 PM Automator: The action “Stop Keynote Slideshow” could not be loaded because the application “Keynote” was not found.
    Buy I see NOTHING about Photoshop????
    Kirk

  • Batch Photoshop actions?

    Is it possible, somehow, to run a batch of images from Aperture with a PhotoShop action? I use this feature a lot in Bridge and hoping something similar is available in Aperture.

    If you have the images outside Aperture's Library then would be pretty easy.
    You can select the images in Aperture, right click on one and then "show in finder". You can make a Photoshop action as a droplet on the desktop where you can drop the images now selected in the finder.
    To finish it you could have the action to save every image to a hot folder that will automaticaly re-import the retouched images back to Aperture.
    To find how to make a hot folder to import to Aperture, have a look at this:
    http://www.automator.us/aperture/example-04.html

  • How to Attach Script to Photoshop Action or Folder?

    I'm not familiar with Applescript at all! However, I downloaded a script for use with Photoshop which crops an image to a specific format. It works great if I've got an image open in Photoshop.
    What I can't figure out how to do is to either apply that script to an entire folder to process all images in that folder, or better yet, record a Photoshop Action that uses that script.
    How can I use that script to do a batch process from either Photoshop or the Finder?
    Thanks for any help for this total newbie.

    The Mac I am currently using does not have 'Adobe Photoshop CS3' installed. However, based on [1], the code samples should work. Some editing may be needed, based on your specific requirements.
    Sample code01:
    -- Code starts here --
    on run ()
    my handle_Items(choose folder with multiple selections allowed)
    end
    on open (dItems)
    my handle_Items(dItems)
    end
    on handle_Items(tItemss)
    tell application "Adobe Photoshop CS3"
    repeat with i in tItemss
    set fList to list folder i without invisibles
    repeat with j in fList
    try
    open file ((i as string) & j)
    try
    set docRef to current document
    set (docWidth,docHeight) to (width of docRef,height of docRef)
    set minDimension to docWidth
    if docWidth > docHeight then set minDimension to docHeight
    crop docRef bounds {(docWidth - minDimension) / 2, (docHeight - minDimension) / 2, (docWidth + minDimension) / 2, (docHeight + minDimension) / 2}
    save current document
    close current document saving no
    end try
    end try
    end repeat
    end repeat
    end tell
    end handle_Items
    -- Code ends here --
    Save the code as an application (AppleScript 'applet').
    You and then either double click on the applet - and navigate to and select a desired folder (or folders), of which its / their contents will be processed; or, you can drag a folder (or folders) onto the applet, of which the folders contents will be processed.
    Code sample02:
    -- Code starts here --
    on adding folder items to tFolder after receiving tItems
    tell application "Adobe Photoshop CS3"
    repeat with i in tItems
    try
    open file (i as string)
    try
    set docRef to current document
    set (docWidth,docHeight) to (width of docRef,height of docRef)
    set minDimension to docWidth
    if docWidth > docHeight then set minDimension to docHeight
    crop docRef bounds {(docWidth - minDimension) / 2, (docHeight - minDimension) / 2, (docWidth + minDimension) / 2, (docHeight + minDimension) / 2}
    save current document
    close current document saving no
    end try
    end try
    end repeat
    end tell
    end adding folder items to
    -- Code ends here --
    See 'Folder Actions Reference' about AppleScript Folder Actions; and, 'Running an automation when a folder is changed' for attaching an AppleScript Folder Action.
    [1] - Consult 'photoshopcs3_applescriptref.pdf' for Adobe Photoshop AppleScript classes and commands.

  • Use Relative Path for Photoshop Action?

    I have a Photoshop Action that is programmed to open an existing file located in a specific directory.  The path to this directory is an absolute path, i.e.:
    C:\Program Files\Photoshop Actions\filename.jpg
    As long as the Action can find the file in the specified absolute path, everything works fine.
    My problem is that if someone tries to run this Action on a different computer (like a Mac), the path specified in the action does not exist and the Action will not work.
    The simple solution to this would be to make the action open the file located at a relative path.  This way no matter what computer the action is run on, it will always be able to find the file.
    Unfortunately, I don't think Photoshop Actions allow relative paths.  Does anyone know if using a relative path in an action is possible?
    Failing this, how would I use a Photoshop Script to somehow direct the Action to find the correct location of the file?  Or is there a better solution?

    The idea that I use in the xtools installer and else where is this:
    1) Convert the action file to XML.
    2) Package the XML file and the apps/ActionFileFromXML script with your stuff.
    3) An installer script will do a 'replace' (or whatever) on the XML file so that the paths are converted to whatever is needed.
    4) The new XML is saved and then converted to a .atn file which is then loaded.
    There is an xtools forum at ps-scripts.com that may have some info in addition to the PDF file that comes with the package.
    -X

  • ITunes 10.5 breaks automator folder action

    Just like itunes10 did
    osx 10.6.8
    itunes 10.5
    automator folder action with itunes tasks no longer works after 10.5 update.
    Is it the version check again?

    Unfortunately, it seems that this is a cross-platform problem between iTunes 10.5 and all NAS disks. Shared libraries on network drives worked fine under 10.4.1, but now there is just an endless loading cycle with no error message or time-out. There is a bit more about it in this thread.
    Martin

  • Can I use photoshop text styles and photoshop actions with creative cloud photography?

    I'm really confused by this subscription pricing. If I purchase the $9.99/month, do I get the full desktop app of Photoshop and Lightroom? But I see on this page Products they list something called Photoshop CC that costs twice as much. How is that different from the Creative Cloud Photography?
    My main question is whether I can use photoshop text styles and photoshop actions with Creative Cloud Photography, since I just purchased a bundle that includes these and I want to be able to use them. But I'd also like to understand what comes with all of the various products and how they are different.
    My other question is how is Lightroom different from Photoshop? I have a sense of what you can do in Photoshop but I don't know much about Lightroom at all.
    One more question: the free trial -- is it limited in any way besides the time length? If I do that, will I get a clear idea of all that I will be able to do once I subscribe, or are the functions limited in the trial?
    I tried to just send an email to Adobe to ask these questions but apparently they are not interested in responding to emails from people who are not yet paying customers, so I was directed here. Thanks very much for your help!

    I always like to trot this bit about Bridge once in a while or in the voice of the "Two Bobs" from Office Space,
    "Can you tell us exactly what it is you do around here?"
    What Adobe Bridge does:
    Bridge is the coordinating hub of the Creative Suite. Synchronizing color management settings for all suite programs is done from Bridge, and can only be done from Bridge, to take one important use.
    Bridge displays actual thumbnails of many more file types than Finder or Explorer. It also allows instant play of sound or video files more readily than the native OS file managers.
    Bridge allows direct access to file metadata, to embed copyright information  and keywords where appropriate (e.g., for corporate logo vector and raster files). It also displays the fonts used in an InDesign file, the swatches in an INDD or AI and the output plates (including spot color plates) they use.
    When managing the assets for a design project, Bridge allows quick and simple sorting, rating and custom labeling (with color flash indications) of assets. I can rate images according to whether they are rejects, possibles, for review by client, or approved. The filters built into Bridge allow instant isolation of only the approved images or designs in a folder, only the rejects (for deletion) or only files with certain ratings, no matter how many files it contains. It recognizes aspect ratios, so if I only need a landscape or a 16:9 image in a folder of hundreds of images, I turn off the aspect ratios I don't need.
    Once filtered, the remaining visible files can be selected and copied, moved, or deleted without affecting the rest of the contents of a folder.
    Collections are a massively useful feature. One of my clients is a performing arts center, and in a season we turn out dozens of ads, flyers, brochures, web banners, playbills, billboards and other collateral using the same assets over and over. These assets are organized by artist and/or show on disk, but I set up each season's repeating assets as a Collection in Bridge, so that I just have to open the collection and drag and drop these assets into new INDD, AI, PSD, HTML (in Dreamweaver), FLA or AE projects without having to navigate from folder to folder picking up individual files.
    Bridge's Favorites is another place I stack frequently-accessed folders, such as stock photography, backgrounds, and top-level folders for active projects.
    Assets can be divided into subfolders, but a quick toggle of "Show items from subfolders" exposes all of the assets in a single view while maintaining their organization. I will typically keep AIs, PSDs, EPSs, stock photography and client images in separate subfolders within a project. When I'm ready to start pulling assets into an InDesign layout, I toggle this on and simply drag what I need into the layout.
    Bridge comes with Adobe Camera Raw built in, which is many times faster than using Photoshop to adjust jpegs or tiffs for things like tonal range, white balance, cropping, spotting and sharpening, and is non-destructive.
    One tremendously useful Bridge function for InDesign CS5+ users is the "Show linked files" feature, which opens all the linked files in a layout into a single view, regardless of where they are physically located. I often use this when doing alternative layouts from a client-approved mockup for a campaign, to be certain the same assets are used in each piece, or when creating a motion graphic or interactive piece for the campaign in After Effects or Flash.
    The batch and image processing scripts built into Bridge automate things like creating web-ready small jpegs from multiple images, renaming large numbers of files in place or by copying to an alternative location, creating sets of PSD, png, jpeg or other file types from an assortment of image files, and so on.
    Bridge is so much a part of my daily workflow that on my main workstation I have one monitor dedicated to it almost 100%. Bridge just sits open 24/7, ready for use. I would run at half speed without it, no question.

  • Adobe Camera Raw and Photoshop Actions

    Hi guys,
      I'm having troubles with Adobe Camera Raw settings and Photoshop actions. Basically, here is what I want to do :
      apply settings for the general colours, exposure, tint, etc., but keep an automatic undistortion of the images thanks to the metadata of the CR2 file.
      The preset I've done is working fine, and when I'm in ACR, I can apply the same preset to different photos with different lenses. Then when I'm opening them in photoshop, they look allright.
      The problem seems to appear when I'm creating the action in photoshop. No matter if the lens profile is set to 'auto' in the preset, it looks like it's applying the one from the original preset. Then let's say the preset was created with a 50mm, then when I launch the action on a 85mm, the undistortion is wrong ...
      If anybody has an idea how to fix the problem, that would be really helpful !
      Thanks a lot,
      Julien

    This particular forum (sharing and storage) was created to help those transitioning from Photoshop.com to Adobe Revel. I am moving your post to the correct forum so that it can get proper attention. I understand that it is difficult to determine which forum to post in since there are so many.
    I'll put I this posting in the photoshop community so the experts there can help you.
    We also have many other forums relating to other Adobe products
    http://forums.adobe.com/community/
    http://forums.adobe.com
    Out of curiosity, can you tell me how you found our forum page?

  • How to launch photoshop action?

    I'm writing a Bridge CS3 script to generate a web gallery. The user selects some files and starts the script through a context menu item. The script iterates through the selection list a couple of times, writes files, etc.
    As the final step, I need to start Photoshop CS3 and run an action on the set of selected files--as if I had picked Tools/Photoshop/Batch... from the Bridge menus but with the action specified so the user does not have to go through the action dialog in Photoshop. After starting the action, the Bridge script is complete and can quit while Photoshop does its batch processing.
    The Photoshop action contains mostly "fit image..." and sharpening steps. It also contains some simple scripts, mostly simple "save as" types of operations.
    I'm uncertain how to do this. Is this where BridgeTalk must be used? Can anyone direct me to a sample script that does something simple like this?
    Is there any problem with having scripts within the action? Some messages I've seen suggest there is, but I'm not certain I'm interpreting them correctly, or whether they apply to CS3.
    Thanks.
    Guy

    [email protected] wrote:
    > I'm uncertain how to do this. Is this where BridgeTalk must be used?
    Yes. You would have some Bridge JS call some PS JS which would, in turn, call
    your Batch/Action.
    > Can anyone direct me to a sample script that does something simple like this?
    You might want to take a look at the Bridge SDK, if you haven't already. There
    are several examples using BridgeTalk. And also look at the code in Common
    Files/Adobe/Startup Scripts CS3 to see how Adobe implemented the Bridge
    Tools->Photoshop functionality. It's a bit difficult to follow in places but
    what you really want to look at is the photoshop10.runActionCommand function in
    photoshop-10.jsx. It's one way of calling PS actions from Bridge and it's also
    what I use in my code.
    >
    > Is there any problem with having scripts within the action?
    CS3 has apparently addressed this issue but I can't say from personal experience
    that it works. However, this was not possible at all in CS2 unless you went to
    really extreme measures.
    -X
    for photoshop scripting solutions of all sorts
    contact: [email protected]

  • Using Automator Folder Actions

    I have an automator folder action that runs to take any pdf file dumped in to the folder, send to the printer and then delete it.
    How do I make this run on a server that I'm not logged in to (effectively as a service), so that if a pdf file is generated somewhere on the network (maybe even a PHP script on a web site hosted on this server) and copied to this folder it still auto prints to the network printer?

    I'm using a hot folder to import to Aperture as well, and also had the same problems when I try to configure it.
    I solve it by creating an action in Automator that will copy all the images from the memory card to a temp folder when a card is inserted in the card reader. At the end of the action all the files inside the temp folder are moved to the actual hot folder, as you said this is almost instant so works perfectly.
    So basicly the workaround is the following:
    Card inserted - Image capture starts and copy all the images to a temp folder - Images then move to Aperture's hot folder - Aperture gets all the images.

  • Convert photoshop action to applescript?

    Hi all. I hope you might be able to help me out. I'm looking for a way to convert photoshop actions i've created to applescript. I can't seem to find any sources to do this. I did find a script to convert actions to javascript, but as i don't have a good working knowledge of JS it's not as helpful as Applescript would be.
    Thanks in advance for any help pointing me in the right direction
    -andrew

    [email protected] wrote:
    > I'm looking for a way to convert photoshop actions i've created to applescript. I can't seem to find any sources to do this. I did find a script to convert actions to javascript, but as i don't have a good working knowledge of JS it's not as helpful as Applescript would be.
    At the core of an Action is series of executeAction invocations that correspond
    to the steps of the Action. This is what the ScriptingListener output
    essentially is, as described in the Action Manager section of the PSCS3
    Scripting Guide.
    There is no Action Manager API for AS. Your only option in AS is to call JS
    code, as is described in the Scripting Guide. You can either use the code
    generated by the ScriptingListener plugin, or you can use my Action->JavaScript
    translation script (which you've already found). To the best of my knowledge,
    there are no other solutions if you program in AS.
    -X
    for photoshop scripting solutions of all sorts
    contact: [email protected]

  • Photoshop action replacing previous photo not saving new file

    I have multiple photos that I am running an action on but each photo is replacing the one before using the same file name. instead of using the original file name. So I end up with 1 edited photo!!! from the action!
    This is happening using cs5 I have not encounted this before.
    Any ideas?
    Rob

    Thanks R-Kelly
    I sorted as images imported via drop box were file named !!
    2012-10-15 00.13.26.jpg ,
    2012-10-15 00.14.15.jpg etc
    I think photoshop action could not work with the odd file naming???
    So re-imported using image browser with file names image_01.jpg, image_02.jpg etc and worked
    On cs5.1 on mac os x
    Thanks Rob

  • A photoshop action to access external doc and create this???

    Photoshop action
    If i have a graphic created, say for example, a square, I would like to create a script that
    would read an external document that contains information like the following:
    "123 Vernon Street"
    "345 Exile Court
    "3456 Yogurt Lane"
    "44344 Respite Ave"
    "21267 Gugenhiem Road"
    and then takes that information and puts in onto the graphic in a formatted way (positioned
    onto the graphic centered, for example).
    The external document may have between 25 - 100 different addresses. The graphic will only
    be able to hold a certain amount of addresses (x), so after the graphic is filled with that
    number(x), another graphic would need to be created for the remaining addresses, and so on.
    How does one accomplish this?

    Well, that’s certainly beyond Actions’ scope but can be done with JavaScript – do You have any experience with JavaScript?
    Apart from that it may, if the text is not to be edited in a Photoshop-specific way and pdf-output is OK, be easier to make a multipage document in Indesign for something like this.

  • Bridge and Photoshop Actions

    I have a number of Photoshop actions that run scripts. These scripts have been brought forward from CS and work fine when run inside Photoshop CS2. They are of varying complexity, but I've tested the following with a simple script: alert ("Hello World");
    When I run the actions from Bridge, via the Batch command, the file opens correctly in Photoshop and I then get an error "the command scripts is not currently available".
    Why is this? Do I need to alter my scripts to run in Photoshop CS2?
    Note that when I save the action as a droplet, I can drag files onto the droplet and the script is triggered correctly.
    John

    [email protected] wrote:
    > Shay, that's exactly how the error arises - as a Photoshop batch there's no problem. Do try saving the action as a droplet and dropping files onto it from Bridge - it's not a perfect solution but can be a helpful workaround.
    I just answered this on the PS forum and thought I'd pass this along. If I'm
    wrong, I'm sure Bob will correct my analysis...
    When you make a call via BridgeTalk from one application to another it uses the
    scripting engine to do the communication. So when you make a call from Bridge to
    PS to execute an action in PS, the script engine in PS gets fired up and
    app.doAction is called to run the Action. One "feature" of PS actions and
    scripting is that you can't have a script call an action which then calls a
    script, which is is exactly what you are attempting to do here. You're only
    workarounds at the moment are to:
    1) have everything done in the action (may not be possible)
    2) have everything done in a script (may be tedious)
    3) have a toplevel script in PS called by Bridge which does what it can and then
    invokes actions to do what most of the work, with the restriction that the
    action can't turnaround and call a script.
    This is not a simple bug for adobe to fix as it gets to the heart of the
    Action/Scripting framework.
    ciao,
    -X

Maybe you are looking for