PHOTOSHOP - a lot of actions

Hello Mark,
Does anyone else know this issue?
I'm trying to put your script together so I don't have to use the photoshop batch.
Now I get this fault. : Adobe Photoshop got CS wrongly: channel "Cyan" or current document
cannot be granted to current channels or current document.
Do you know how I also can say that the images must be resized to 300DPI?
1- RGB to CMYK
2- I just want to change the magenta and cyaan curves.
3- adjusting to 300 DPI.
4- save as JPG quality 12 ( same folder overwriting the existing image and then just cloose the image)
((We have always backups of the images.))
The script stops after rgb->CMYK
tell application "Finder"
set inputFolder to folder (((desktop as string) & "Test Folder") as string) as alias
set filesList to files in inputFolder
end tell
repeat with aFile in filesList
set fileIndex to 0
tell application "Finder"
set thefile to aFile as alias
set theFileName to name of thefile
end tell
tell application "Adobe Photoshop CS"
activate
set display dialogs to never
open thefile
tell the current document
if (mode is not CMYK) then
change mode to CMYK
end if
set current channels to channel "Cyan"
adjust layers using curves with options ¬
{class:curves, curve points:{{0, 6}, {50, 50}, {128, 128}, {238, 238}, {255, 241}}}
-- To adjust each channel individualy set the current channel
set current channels to channel "Magenta"
adjust layers using curves with options ¬
{class:curves, curve points:{{0, 6}, {50, 50}, {128, 128}, {238, 238}, {255, 238}}}
end tell
save the current document as JPEG with options ¬
{class:JPEG save options, embed color profile:true, quality:12}
end tell
end repeat

Colin, This should do what you want. You can change the input folder to be hard coded if you like, a simple change. Hope this helps.
set inputFolder to choose folder with prompt "Where are your files?"
tell application "Finder"
set filesList to files in inputFolder
end tell
repeat with aFile in filesList
set fileIndex to 0
tell application "Finder"
set theFile to aFile as alias
set theFileName to name of theFile
end tell
tell application "Adobe Photoshop CS"
activate
set display dialogs to never
set ruler units of settings to pixel units
open theFile
set docRef to the current document
tell docRef
if (mode of docRef is not CMYK) then
change mode docRef to CMYK
end if
if (bits per channel of docRef is sixteen) then
set bits per channel of docRef to eight
end if
set docHeight to height of docRef
resize image height docHeight as pixels resolution 300
set current channels to channel "Cyan"
adjust layers using curves with options ¬
{class:curves, curve points:{{0, 0}, {44, 54}, {128, 128}, {191, 208}, {255, 255}}}
set current channels to channel "Magenta"
adjust layers using curves with options ¬
{class:curves, curve points:{{0, 0}, {64, 44}, {128, 128}, {189, 212}, {255, 255}}}
set current channels to component channels
set docName to name of docRef
set docBaseName to getBaseName(docName) of me
set newFileName to (inputFolder as string) & docBaseName
save docRef in file newFileName as JPEG with options ¬
{class:JPEG save options, embed color profile:true, quality:12} appending lowercase extension with copying
end tell
close current document without saving
end tell
end repeat
on getBaseName(fName)
set baseName to fName
repeat with idx from 1 to (length of fName)
if (item idx of fName = ".") then
set baseName to (items 1 thru (idx - 1) of fName) as string
exit repeat
end if
end repeat
return baseName
end getBaseName

Similar Messages

  • Looking for Photoshop developer to create actions panel

    Looking to hire a Photoshop scripter for an actions panel.  Need the actions panel to be interactive and allow users to select photos that are inserted into a psd template.
    PM if your interested.

    No, I didn't. The last time I saw it, it was looking just as a regular Reader with a little more options and with an addon to MS-Office, to allow to save MS documents to pdf from inside MS-Office user interface products, and frankly, I do not highly admire there products at all, so I do not have MS-Office installed. But it was also long time ago. If the situation did changed since than,  I will try it.
    Thank you very much.
    I've just tried the Acrobat. It worked great ! Thank you. Just not all the images have options how to save them in pdf file, but that's ok for now

  • Photoshop CS5: droplet to action?

    I made several actions that I also saved as droplets for a project Im working on. Photoshop crashed before I saved all the new actions but i have the droplets still. They still work (obviously) but Id like to have the actions as well as just the droplets. I know how to make an droplet out of an action but can you get the info from a droplet to make it back into an action? I know Im geeking out I just like to keep all the actions I make because I use a them frequently for different things and will make just little tweaks

    Here is a scripting package written by xbytor called xtools.
    http://sourceforge.net/projects/ps-scripts/files/
    Inside the folder called apps is a DropletDecomplier.jsx.
    It's a java script that makes an action or script from a droplet.
    Ther are lots of other useful scripts included also.
    MTSTUNER

  • Problems installing Adobe Photoshop Elements 9 - Rollback action issue.

    Im having problems installing Adobe Photoshop Elements 9.
    The problem is right at the end of installation, it says status is registering and then immediately does an action rollback.
    The message "The wizard was interrupted before Adobe Photoshop Elements 9 could be completely installed. Your system has not been modified. To complete installation at another time, please run setup again."
    I have also created a new administrator account and after rebooting tried to install it but with the same result. It appears to get to the end of the program install but falls over just before the Organiser install. There are no error messages. AV and surplus programs have been stopped. Desktop clean up run.  XP machine well within required spec.
    Any help would be greatly appreciated.
    Thanks
    Dave

    Hi
    Thanks for your reply. Antivirus and security software all turned off. I have tried all the solutions in the troubleshoot section but still having the same problem.
    Much obliged
    Dave

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

  • Does Photoshop Elements 11 support actions?

    I have an old version of Photoshop on an old computer. I dont have the money to by the newest version of photoshop. I just bought photoshop 10, does photoshop 11 support actions? It is the one thing i really miss.

    In addition to the above, photoshop elements supports playing of actions recorded in the full version of photoshop, but not action recording. (same as photoshop elements 10)
    Pse 11 does ship with some actions already installed in various places including the much improved actions player.
    So depending on how old your version of the full photoshop is, pse 11 will probably play a good portion of the actions you can record in photoshop.
    An example of the new improved actions player (panel) in pse 11 that is available in the expert mode (full edit) with some actions added that were recorded in the full version of photoshop.

  • Photoshop Scripts/Image Processor / Action Error

    CS3:
    My image processor has been working just fine with this action.. but for some reason out of the blue it says "sorry I could not process files:" and lists all the files that was processed. now its funny because it works just fine, the action is applied and it saves just fine but it doesn’t close the current window any longer and it gives that error.
    the action is pretty complex but it only copies and rename layers and applies one filter.
    again it worked just fine not too long ago.. I'm not sure what happened...
    here is a copy of the action ... it uses portraiture plug-in filter in the beginning...
    http://www.fileden.com/files/2006/8/29/194220/File%20start%20action.atn
    any help would be great!
    Thanks!!

    Contact Adobe support, you hit a bug. I never seen that one pop up before.
    But in general what it is saying is it is trying to create a window and to do so it needs to reference a constructor.
    That constructor should have been automatically created or a programmer creates one from scratch, that depends on how the code was created. Since that bug normally does not appear, I would say a some code pointed to the wrong location in memory hence the word reference. (In generic terms reference means to point to a location in memory)
    Try it again and see if it repeats itself. I think Adobe will tell you that you need to reinstall photoshop, but its better that they tell you that as I could easily be misinterpreting that error message.

  • Photoshop CS6 Not Loading: Actions & Preferences Errors

    Photoshop CS6 has been working like a dream, and recently it has pushed some very large files.
    But, upon trying to open Photoshop this morning, I get these two messages:
    Could not load actions because an unexpected end-of-file was encountered.
    Could not initialize Photoshop because the Preferences file was invalid (it has been deleted).
              - although the file was still in the AppData...Adobe Photoshop CS6 Settings.
    Tried to 'restore' Preferences:
    Keyboard - CTRL ALT SHFT upon clicking PSD icon
    Said 'Yes' to allow changes to system
    Still received same two messages
    Removed the Adobe Photoshop CS6 Prefs.psp
              Restarted Photoshop, still received same two messages.
              Tried resetting, CTL ALT SHFT, again still same two messages.
    Read Adobe thread to 'rename' the Actions Palette.psp, but keep it in the folder:
    I renamed it 'renamed' and left the Adobe Photoshop CS6 Prefs.psp in the folder as well.
    Did not receive the 'load actions' error, but
    Still received the 'Preference file was invalid' message.
    Tried CTRL ALT SHFT to reset,
    Still received the 'Preference file was invalid' message.
    Left the Actions as 'renamed', but removed the Adobe Photoshop CS6 Prefs.psp file as well.
    Still received the 'Preference file was invalid' message.
    Tried CTRL ALT SHFT to reset,
    Still received the 'Preference file was invalid' message.
    Do I need to do a re-install?
    Thanks bunches,

    I am having only the single issue:
    Could not initialize Photoshop because preferences files was invalid (it has been deleted).
    What happened was that I had to do a force quit (Mac OSX 10.8.4) due to Spotlight and Parallels  Win 7 running a system slowdown.   I don't believe my new HD is corrupted. BUt there has to be a way to get PShop working again..  I've tried shift start and not loading 3rd party plugins, but nothing is working.
    UPDATE:  Download and reinstall fixed it after uninstalling and removing preferences.  However, you can't use the CC Applications Manager to do so. You have to do a direct download.
    Message was edited by: jefferis

  • Photoshop elements 10 and actions

    I recently downloaded the free trial of photoshop elements 10 and had purchased actions from Pure Actions.  I thought I got the actions into my free trial but I cant or dont know where to find them.  It has been extremely difficult to get the actions loaded and they are not willing at all to help me.  They sold them to me and now dont really care if I get them downloaded or not.  I would not purchase from them......again.  Can someone PLEASE help me to get them downloaded so I can use them?  I have followed the turorials and just am at my wits end.  PLEASE  HELP!!!!!

    We're all guessing that PSE11 will be released this month, so you'll probably want to hold onto your money until then.
    Reading the Help files is what I did to learn PSE.
    When the Help is open, there's an icon in the upper right corner for "View as PDF", then you can save that PDF to your computer for reading and searching. (Do that for both the Editor and the Organizer, since the help files are separate.)
    I also found the Adobe TV tutorials very helpful:
    http://tv.adobe.com/product/photoshop-elements/
    You'll want to view the tutorials for PSE8, PSE9, and PSE10 because some of the tools were unchanged and new videos weren't created for the newer versions. When you watch the videos, look to the right of the video viewer -- some of the tutorials have sample files for download so you can practice on the same photos used in the tutorial.
    What I've found is that these are the 3 most important things to get comfortable with in PSE:
    Making selections.
    Using Layers.
    Using Masks.
    If you have questions, you know where to find us....
    Ken

  • Photoshop Elements 8.0 - Actions

    I been searching for Photoshop Elements actions.  I stumbled across the "Totally Rad Actions" set, but sadly to say, they are not supported by PSE8 or any other Elements software.  They are only for CS3 and above.  These actions are awesome.
    Does anyone know of some similar type actions for Elements? I know there are a number of free ones out there, but the TRActions are awesome.

    PanosFX often gets a mention at Elements Village.
    Free downloads are available for PSE6, 7 & 8.
    They also have detailed instructions for installing the actions.
    http://www.panosfx.com/

  • How can I transfer or copy my Photoshop CS6 plug ins, actions and automate apps to Photoshop CC?

    I just "upgraded" from Photoshop CS6 to Photoshop CC.
    How do I get all my apps, plug ins, actions, automate apps, brushes, etc. from Photoshop CS6 onto/into the proper folders in Photoshop CC so I can use them in CC?
    My OS is Mac OSX 10.7.5.
    Thanks.       VMS2

    Thanks, Chris.
    By "apps", I meant things appearing under Automate, like Perfect Resize, Photomate, etc.   All I know to call them is apps, since it sounds stupid to me to call them "automates".  I should know, but I don't remember the nomenclature for them.
    I guess I have to find the software producer names and go to their tech help, do I not?
    Thanks.        VMS2

  • Photoshop Batch Bulk Print Action Printing Out of Order

    I have 900 files I need to print out. I created an action that simply prints the current document, then closes it. The problem is, photoshop is printing the files out in random order. The files are numerically ordered, it should print in order.
    I go to File -> Automate -> Batch and select the printing action that I recorded and set the folder that contains the image files. The image files are all labeled numerically from the data set merge I did within photoshop.
    The problem is, even though this list is in numerical order, photoshop will print these out in random order. For example, the file folder containing the image files is listed below in correct order.
    Instead photoshop printed them in this order: CustomMailer_Data Set 1, CustomMailer_Data Set 10, CustomMailer_Data Set 11, CustomMailer_Data Set 12, CustomMailer_Data Set 13, CustomMailer_Data Set 14, CustomMailer_Data Set 16
    Please help, I really need this bulk action to print them out in order, I have no idea what the program is doing.

    @Paul Riggott,
    Thanks for taking the time to write the script, I really appreciate it. However, I seem to be using it incorrectly since its not renaming my files.
    here is what I did.
    1. Launched Adobe ExtendScript & Pasted your code in
    2. Saved out script file to desktop
    3. Launch Photoshop, file ->script->browse to locate where script was saved to
    5. Select source file containing PSDs to rename
    Below shows the results.
    Tried running it directly within extend script as well with no luck.

  • How do I do Photoshop batch (running an action) from Lightroom?

    Images going up on the website get watermarked.  The watermark is 3D, diagonal watermark that run across the entire image and is composed of the image content so it's just slightly visible and doesn't interfere with viewing. It gets implemented via a Photoshop action.
    In Bridge, this is trivial.  Just select the images, and tell Photoshop to batch process them, running the action that does the watermarking.
    How do I do this in Lightroom?

    I followed the above instructions and found a slightly better way.
    When I made my action, I made sure to OPEN a file PS has never open before, then I ran whatever action is within my action, then I SAVED the file (which brings up the save settings dialogue), and you choose whatever settings you want and save.  Then you create the droplet per the instructions above.  The difference is if you use save as for your PS action, it will save another copy of the file and you will have to import the files into LR again, and you would have two set of files (one set from the original LR export, one set from the save as command from the PS action).  If you just use save, it will save directly over the files LR exported, which presumable is already in your LR catelog and you wouldn't have to micro your files as much.
    However, make sure you only run this over new exported files as this is destructive and saves over the exported files.  Also, when you're creating your PS action with the save command, you will save over that file as well, so make sure you have another copy of that file.

  • Photoshop Help | Adding conditional actions | CC, CS6

    This question was posted in response to the following article: http://helpx.adobe.com/photoshop/using/conditional-actions-creative-cloud.html

    David Mac Do
    Conditional actions are not a big deal. In reality they are a one line script built into the fly-out menu and the feature only support a limited number of conditions. To phrase the script in english is a simple one liner
    If Document (condition pulldown list) selected is true Play true action in set(selected) else  Play false action in set (selected). Actions do not need to be select for both true and false. One selection may do what is needed.
    All three supported Photoshop supported scripting languages have support for an "if" statement.
    A javascript was posted years ago "Siva's Photoshop Conditional Action.jsx" do a serach.
    Actions can use scripts and scripts can do actions
    example
    if (activeDocument.height > activeDocument.width) doAction("Rotate", "MyActionSet");  // rotate portraits
    Crafting Actions PackageUPDATED Aug 10, 2014 Added Conditional Action steps to Action Palette Tips.
    Contains
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action
    Sample Actions.txt Photoshop CraftedActions set saved as a text file.
    More then a dozen Scripts for use in actions
    Example
    Download

  • Best Photoshop plug-in or action for converting photos to a spray paint look?

    For a project I will be doing, the client will be receiving a bunch of photos from their employees. Traditionally, these photos are not well-composed, high-res, professionally shot images but selfies or other type images they might take with the camera on their phone.
    This year, the client has asked me if it would be possible to convert these images into something that looks like it's been painted by a graffiti artist, partly because their theme is somewhat "urban" and partly because I think they think that this would gloss over the bad quality photos. However, they don't want the stencil-outline one or two colour Banksy look kind of thing. As much as I dread saying it, they want something that I can just apply to the photo and convert it to give a uniform look as there may be as many as 300 photos. I have been researching various pieces of software, plug-ins and tutorials but I'm just getting bogged down by it all and to make matters worse, they want to see what it could look like before they will agree to it, so it's not like I can go on a software spending spree. If someone does have a solution that I think works, I will be happy to pay for it -- I'm not looking for a freebie -- but I can't afford/the budget doesn't allow purchasing multiple products for testing purposes. When the photos do come in, there won't be budget or time to painstaking handcraft them all, either. They will not be used in a print application so resolution is not an issue.
    Which is why I'm here. I was hoping that someone might have been in a similar situation and has a suggestion. I've already looked at
    http://www.alienskin.com/snapart/snap-art-examples/
    https://www.filterforge.com/
    http://www.misterretro.com/filters/machine-wash-deluxe/texture-samples/all%20effects/Set%2 0One
    http://www.digitalanarchy.com/toonPS/main.html
    http://www.autofx.com/products/automagic-photo-effects-gen1/
    But there's so much out there these days it's hard to keep track and Google returns a lot of um... interesting results that have nothing to do with what I'm looking for.
    Also, if there is an AfterEffects plug-in that would do it, I'm fine with that too. I haven't looked at the filters I have yet.
    Thanks!

    First you need to make sure that the offline files location on client PCs will change location once the new server comes online. This depends on how you push these settings out in the first place, generally it is best to use GPOs to achieve this but you may or may not be doing it this way.
    You could cheat and create a CNAME which points the location of the old share to the new, but this is messy and not a great solution.
    When it comes to the actually copying files, create a Robocopy script and have it run out of hours, probably over a weekend would be the best time.
    Make sure you sure that any scripts/GPO/Applications which point to the old file server are changed to the new location before you go live with the migration.

Maybe you are looking for

  • Invoices which are Paid do not update CDHDR

    Hi Why is the updation of the Clearing Document Number and Clearing Date in the Invoice not considred a Change and CDHDR updated? The object is BELEG, and the transactions F-53, F-110 and SAPF124 do not call the Function Module to update thi schange

  • Financial Reporting Studio has overflow error when opening any report

    Hello everyone! I faced with problem in FR Studio. When I try open any report is appears an error "Overflow". In others machines this error is not appears. Version of FR Studio: 11.1.2.757 Many thanks for your advices!

  • Nokia 808 Pure View Feature Pack 1

    Will Nokia 603 Belle Feature Pack One Increase Processor Speed 1 GHz to 1.3 GHz. Yesterday in nokia conversation say that only 700 and 701 get increase processor speed 1 GHz to 1.3 GHz. Finally what about 603, the Nokia 603 will increase speed, 1 GHz

  • Questions from a hopeful logic owner

    To start, I've got a lot of VST's. These VST's are installed on windows. Aside from the fact that most of these have .exe installers, let's say that I manage to get the .dll's off of a windows machine. Can I then put them on a mac and wrap 'em? Will

  • HT1420 need to get rid of old expired apple accounts before I can purchase new stuff

    i need to get rid of old expired apple accounts from previous email addresses.  how to do that?