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]

Similar Messages

  • Is there any way to convert recorded actions into JSX Javascript file?

    For photoshop, there's http://ps-scripts.sourceforge.net/xtools.html (scroll down to "ActionFileToJavascript") which can convert recorded photoshop actions into jsx. Is there any such resource for Illustrator?

    AppleScript is able to script many things in the GUI.
    The problem is it becomes version specific when they move stuff about.
    CS6 can evoke some menus but is limited to those with keyboard shortcuts.
    CS6 also got action calls added... ( to JS )
    No nothing like action manager code exists in AI. ( a big shame )
    PS has a plug-in to record your steps...
    Giving you access to a whole range of app features beyond the regular DOM.
    Only today X has posted that that he's hanging up his boots here...

  • 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

  • Cs5 , Is there a way to record a script or convert an action to a script?

    Hi
    i understand nothing about script
    but is there a way to record a script?
    i mean like an action
    for example click and select a tool , the hand tool , and let photoshop write the script (that have the command to select the hand tool)
    or is there a tool to convert an action to a script?
    thanks
    cheers

    xbytor provides ActionToJavascript in xtools.
    http://ps-scripts.sourceforge.net/xtools.html
    thanks
    hope it's easy to use
    But why do you not post on the Photoshop Scripting Forum?
    because i know nothing about photoshop scripting
    i mean i really know nothing, i guess to post in the photoshop scripting forum needs some skills and i haven't
    thanks
    cheers

  • $300 For 2 Photoshop/Illustrator scripts- Applescript Preffered

    I have been meaning to write these myself for months, but have been too busy, so we're trying to hire someone.
    We would prefer these to be mostly Applescript, because I know Applescript and will be able to modify/maintain them, but we might consider all Javascript if there are no bites on Applescript.
    There are probably bits in here that are not accessible to Applescript, that would need to be in Javascript. I think color overlays are not in the scripting dictionary and need to be figured out with scripting listener. That's fine, as necessary, to call Javascript from an Applescript. We just want it to be in Aplescript as much as possible.
    If you're interested, please contact me:
    [personal info removed by moderator]
    I assume that if you're interested, you'd want more information. We can provide example files in the "before" and finished states, talk or email about any questions you have, and I also have examples of some steps of the scripts functioning for reference.
    Here is the outline of the two scripts:
    Script 1: Assign Color Overlay
    Overview:
    This script would need to do the following in Adobe Photoshop. The script will be run from a command key.
    Script Steps:
    1. Ideally, read the current swatches on the swatch pallet in Photoshop. If this is a pain/impossible, then we’re open to getting this info from somewhere else. We can save out the info needed as a .csv or .txt and the script can just load it from there.
    2. When the script is run, it presents a dialog with a list of the colors from the swatch pallet. The user chooses a color from the list.
    3. It applies the color selected as a "Color Overlay" Layer Effect to the currently selected layer. If the layer already has a color overlay effect, it updates it to the selected color. The color overlay effect is applied with the “Screen” blending mode.
    4. It changes the layer name to the name of the color that was selected
    Script 2: Save Files and Convert Photoshop File to Spot Color Raster EPS
    Overview:
    The script will save out the active Photoshop file in multiple copies in different ways, place data on the clipboard, and then use Illustrator to convert one of the Photoshop files to a different format.
    The open file when the script is run will always be a Photoshop file with layers, with the topmost layers named by colors as specified by the above “Script 1.” The files can have an arbitrary number of layers, but will all be in this format:
    first layer [Some Color Name]
    arbitrary number of additional layers, each with color names
    Shirt [ <- this is a solid color layer]
    Art [<- this is a single group containing arbitrary layers]
    Script Steps:
    1. The active file is saved out exactly as it is. When the script’s run, it presents a save dialog. The operator chooses the save folder location and file name. I will refer to this as “The Save Folder” The script will then check to see if there’s an “Art” folder in The Save Folder. If there is, it saves the file there. If not, it creates the “Art” folder and saves it there. If the file already exists, it automatically overwrites and does not provide a dialog about it.
    2. Another copy is saved using “Save For Web. The original file was at 300 dpi and this copy is saved out bicubic down sampled to 72 dpi with the same inch dimensions. The save settings are {JPEG – High, Progressive – off, Optimized – on, Embed Color profile – off, Quality – 72, Blur – 0, Matte – none, Convert To sRGB – yes}   This one has the same file name as the first copy (except for the file extension) and is saved in The Save Folder.
    3. A flat copy of the art at the same dimensions but downsampled to 18 dpi is placed on the clipboard.
    4. An intermediate file for Illustrator conversion is saved. This should probably be saved in a new folder in The Save Folder called “Intermediate Files.” This folder needs to be checked for and created only if necessary. The file should have a naming scheme such as “Intermediate File” & [existing file name]. This file is identical to file 1, except:
    - the shirt layer and art folder are removed. This should probably be scripted as deleting the layer named “shirt” and everything below it in the file.
    - all the color overlays are removed (or turned off)
    5. Close the file.
    6. Open the intermediate file in Illustrator with the “Convert Layers to Objects” option.
    7. Select All
    8. Edit -> Edit Colors -> Convert to Greyscale
    9. Cycle through each layer one at a time and change the fill color to the swatch from an open Illustrator swatchbook called “Current Inks” with the same name as the layer name.
    To clarify this previous step, our artists will be working off the same .ASE color swatchbook in both Photoshop and Illustrator. In Photoshop, the colors from this .ASE will be used as color overlays on layers. The file needs to be imported to Illustrator and have the same colors applied as fill colors of the raster objects that were the Photoshop layers. The color information is being conveyed from Photoshop to Illustrator through the layer names in Photoshop.
    10. Save this file to The Save Folder as a .AI with the same name and “CONV”
    11. Delete the intermediate file.

    @Jongware -- thanks for your thoughts! I hated to think that I was going to be on the plank all by myself here... :-)
    @TomT-shirts -- no worries. Given your articulate RFP, I suspected that something was amiss here, not the least of which was the fact that the numbers seemed to have been misinterpreted, I knew what was happening and probably why it was happening before I posted, so I was just trying to diplomatically (or not?!?) trying to alert both parties of a problem. You are (in my opinion and I think others' as well) perfectly fine in posting the listing here. How else would anyone know about your need and a possible opportunity for folks here that are able to help? SO that's all good. Where I (at least) felt the problem was/is is the continuing of the "transaction" "on-forum", which you clearly explained how that happened. Empathetic to your potential public disclosure of additional private information (as noted by @Jongware) is why I thought that it might be a good idea to step up and implicitly suggest taking it off-forum, not even knowing "how" it happened on your end. Also good points by @Jongware about the closure of such threads, something that I never really thought about.
    So, at least from my perspective, keep 'em coming (at least the projects and questions :-)) and please do let everyone know that you were well taken care of by the folks here on this forum by a comment afterwards to "close" the thread as suggested by @Jongware. A pretty smart group they are (myself humbly excluded).
    And -- best of luck on your project!!!! :-)

  • Turning a Photoshop action into a pixel bender script

    We have a photoshop action that takes images and 'plasticifies' them. Specifically the action performs several filters that we're looking to convert into pixel bender scripts so that the action can be performed in Flash. I'm trying to discover if there are existing examples to perform these actions, and if not if it would be possible to create them. The filters that are being used are:
    surface blur
    diffuse
    layer copy
    high pass filter
    layer overlay
    hue / saturation
    shadow / highlight
    unsharp mask
    I've attached the script to the post for reference and provided an example below. If this isn't something that we could combine several pre-existing filters together, would someone be up for working with me to create this or provide some guidance on how to move forward?
    Original Image
    Plasticify Effect
    File: autoPlastic_test.atn (created in Photoshop CS4).
    URL: http://drop.io/t7gez0g
    Thanks,
    Roy

    AIF Kevin wrote:
    The Bilateral Blur in After Effects is implemented in Pixel Bender. It  was tricky to get the best possible performance for it. Pixel Bender  works pretty well for Anistropic filtering as well, we are doing that  now for some new stuff.
    Royi A wrote:
     I think in the GPU each basic variable (Pixel) is a vector of 4. Applying something on 4 of items in the vector or only 1 would "cost" the same.Someone of the AIF could confirm it?
    This is sort of true. We do take advantage of the vector types to generate SSE code, but we do it not only within a pixel, but also across multiple pixels so a pixel1 value within your kernel may be computed with pixel1 values from neighboring pixels to improve performance. In general, it is best to write your code naturally and then only look to optimizing at this level if performance is unacceptable and the more obvious problems (minimizing conditional branching, for example) do not solve your problem.
        Kevin
    Kevin, how do you iterate in the Anisotropic Filter?
    One the things I miss is to loop a graph or something like that to iterate over the image.
    Regarding the Bilateral Filter, My first PB kernel was a Gaussian Blur, just to get the feeling.
    At first I didn't use its separability property.
    It was slow, very slow!
    For the Bilateral Filter you have to do even more operations. Unless you implemented its "Separable Bilateral" approximation, Or any other known optimization (Grids, Linear Approximation, etc...).
    What about the GPU case regarding what I wrote?
    Let's set I convert the image into LAB space and perform Gaussian Blur and each time only operate one CurrentPixel.r (The first item in the "Pixel" vector), will that make any performance difference?
    Or even make it completely different. Creating a node which take as input image4 and output of image1 (L Channel). Then Gaussian Blur (2 Nodes) on image1, would that be faster (Again, GPU wise)?
    Thanks.

  • 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

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

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

  • Photoshop Action Question How to Avoid Replace Files Dialogue Box

    I have Photoshop CS3 running on a Macintosh. This Photoshop action on this Mac opens PDFs and saves them as a JPEG to a folder on a server.
    Sometimes the originating file will be modfied, so a new PDF will be created and have to go through the action again. The intent is for the action to overwrite the preexisting JPEG file(s) on the server, because they are out of date and must be replaced.
    The photoshop action on the Mac converts the new PDF to a JPEG, but then stops and shows a "Replace Files" dialgue box, which displays a listing of the name(s) of the JPEG(s) that will be overwritten. The dialogue box reads "Some of the specified files already exist in the target location. The files marked will be replaced." Below that message are two buttons to choose from, "Cancel" and "Replace". I always click "Replace"
    Is there a way to get the the action, (which specifically reads, "With Save Image Files" on the part of the action where it saves the jpg),  to just go ahead and overwrite the existing JPEG file(s) on the server without presenting the dialogue box?

    I can’t test on CS3, but I think the affected features should not have changes since CS3.
    Anyway, I think an Action cannot perform what you want, a Script should be able to, though.
    You could adapt the following code by changing the variable docPath to the correct path of the Folder you want to save the jpgs into.
    If you want to give it a try, paste the following text into a new file in ExtendScript Toolkit (part of Photoshop’s installation, Applications/Utilities/Adobe Utilities/ExtendScript Toolkit CS3, I guess) and save it as a jsx-file into Photoshop’s Presets/Scripts-folder.
    After restarting Photoshop the Script should be available under File > Scripts and can be assigned a Keyboard Shortcut directly, recorded into an Action or started from ExtendScript Toolkit directly.
    // saves jpg into same folder;
    // be advised: this  overwrites existing jpgs of the same name without prompting.
    // 2010, use it at your own risk;
    #target photoshop;
    if (app.documents.length > 0) {
    var thedoc = app.activeDocument;
    // getting the name and location;
    var docName = thedoc.name;
    if (docName.indexOf(".") != -1) {var basename = docName.match(/(.*)\.[^\.]+$/)[1]}
    else {var basename = docName};
    // getting the location, if unsaved save to desktop;
    try {var docPath = thedoc.path}
    catch (e) {var docPath = "~/Desktop"};
    // jpg options;
    var jpegOptions = new JPEGSaveOptions();
    jpegOptions.quality = 9;
    jpegOptions.embedColorProfile = true;
    jpegOptions.matte = MatteType.NONE;
    //save jpg as a copy:
    thedoc.saveAs((new File(docPath+"/"+basename+".jpg")),jpegOptions,true);
    //that’s it; thanks to xbytor;

  • The action "Run AppleScript" encountered an error.

    Hey,
    I'm using EOS utility to tether my camera to my computer and take photos.  I'm then using the "linked software" option in eos utility preferences to send it my Automator action.  Eos utility is pretending that my automator script is an application.
    The goal is that automator sends it to photoshop to run a specific action on it and then save it to a folder where I display the photos on a monitor. 
    However everytime I take a photo I get this error message:
    "The action “Run AppleScript” encountered an error.  Check the actionʼs properties and try running the workflow again."
    Once I click "ok" then the script will continue running and everything works fine. 
    This is my run applescript that I'm using in Automator:
    "on run {input, parameters}
              set input to input as text
              tell application "Adobe Photoshop CS5"
      open file input
                        do action "GDaction" from "GDset"
              end tell
    end run"
    I assume there is an issue in the run applescript.  Can anyone help me revise it to avoid getting this error message everytime?

    Sorry, I guess I wasn't clear. I don't think you need to cast the file reference to a text string.
    Try this:
    on run {input, parameters}
              tell application "Adobe Photoshop CS5"
                     open file input
                     do action "GDaction" from "GDset"
              end tell
    end run
    or
    on run {input, parameters}
              tell application "Adobe Photoshop CS5"
                     open alias input
                     do action "GDaction" from "GDset"
              end tell
    end run
    I'm not sure what is being passed and what photoshop is expecting.

  • How to convert the output of Applescript which is in object format to text or string format??

    Hi All,
    I want to convert the output of Applescript which is in object format to string or text format, am running Applescript with Java, I need to display the output of applescript in Eclipse Java Console, since its object format the output is not properly displayed..
    Pls suggest.. I used the below code
    repeat with i in allContents
                if class of i is button then set the end of allStaticText to contents of i
            end repeat
    Applscript ouptput
    {button 1 of window "Player Installer" of application process "Install  Player" of application "System Events", button 2 of window "Player Installer" of application process "Install  Player" of application "System Events", button 3 of window "Player Installer" of application process "Install  Player" of application "System Events", button "Finish" of UI element 1 of scroll area 1 of window "Player Installer" of application process "Install  Player" of application "System Events"}
    Java output
    <NSAppleEventDescriptor: 'obj '{ 'form':'indx', 'want':'butT', 'seld':1, 'from':'obj '{ 'form':'name', 'want':'cwin', 'seld':'utxt'(" Player Installer"), 'from':'obj '{ 'form':'name', 'want':'pcap', 'seld':'utxt'("Install  Player"), 'from':'null'() } } }>

    Here's an improved version of the previous script, where the handler now returns "button 2 of window \"Untitled\" of application process \"TextEdit\" of application \"System Events\"" instead of "button \"2\" of window \"Untitled\" of application process \"TextEdit\" of application \"System Events\"":
    tell application "System Events"
        get button 2 of window 1 of process "TextEdit"
        my objectToText(result) --> "button 2 of window \"Untitled\" of application process \"TextEdit\" of application \"System Events\""
    end tell
    on objectToText(UI_element)
        set theText to ""
        tell application "System Events"
            repeat
                if exists attribute "AXParent" of UI_element then
                    set theParent to value of attribute "AXParent" of UI_element
                    set theClass to class of UI_element
                    if name of UI_element exists then
                        set theName to name of UI_element
                        set theText to theText & (theClass as text) & " \"" & theName & "\" of "
                    else
                        set k to 0
                        get UI elements of theParent whose class is theClass
                        repeat with thisItem in result
                            set k to k + 1
                            if contents of thisItem is UI_element then exit repeat
                        end repeat
                        set theIndex to k
                        set theText to theText & (theClass as text) & " " & theIndex & " of "
                    end if
                    set UI_element to theParent
                else
                    set theClass to class of UI_element
                    set theName to name of UI_element
                    set theText to theText & (theClass as text) & " \"" & theName & "\" of application \"System Events\""
                    exit repeat
                end if
            end repeat
        end tell
        return theText
    end objectToText
    Message was edited by: Pierre L.

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

Maybe you are looking for