Will Applescript work with Photoshop CC2014?

I am trying to write an applescript that will take the FileInfo>keywords and append it to the FileInfo>description but I'm not having any luck. Has anyone been able to do something similar?

It should work on a Mac.  You may want to search the Photoshop Scripting forum.  Though most use javascript to support Mac and PC.
Here is a simple javascript wrote to save and restore the foreground and background color swatches  to be user in actions so the action could mess with the color and restore the user colors.    The document metadata field  instructions is used as as scratch pad. You should be able to see how mete data is addressed in javascript
/* ======================================================================================
// 2009  John J. McAssey (JJMack)  http://www.mouseprints.net/
// This script is supplied as is. It is provided as freeware.
// The author accepts no liability for any problems arising from its use.
// This script is designed to be used by a Photoshop Action twice
// A good pratice to use when creating an actions that use this scipt is for the action
// not to do a save or play some other action between its two useages of this Script.
// The first time this script is used by an action Photoshops Current Forground
// and Background Colors are saved into the document's meta-data Info Instructions field.
// The second time this script used by the action the script retreives what was
// saved in the meta-data during the first usage and these colors are set.
// and the saved data is removed from the document's meta-data Info Instructions field.
// ===================================================================================== */
<javascriptresource>
<about>$$$/JavaScripts/SaveAndRestoreColors/About=JJMack's SaveAndRestoreColors.^r^rCopyright 2009 Mouseprints.^r^rRun twice script utility for action.^rNOTE:Don't play other actions between runs!^r^rFirst Run records Photoshops foreground and background swatch colors.^rSecond Run restores the recorded colors and removes the recording.</about>
<category>JJMack's Action Run Twice Utility</category>
</javascriptresource>
if (app.documents.length > 0) {
  if (app.activeDocument.info.instructions.indexOf("<Colorf>") == -1 ){ // no footprint fisrt useage
  //alert("first");
  // Retreive Document information for Foot Print
  saveforeColor = new SolidColor;
  saveforeColor.rgb.red = app.foregroundColor.rgb.red;
  saveforeColor.rgb.green = app.foregroundColor.rgb.green;
  saveforeColor.rgb.blue = app.foregroundColor.rgb.blue;
  savebackColor = new SolidColor;
  savebackColor.rgb.red = app.backgroundColor.rgb.red;
  savebackColor.rgb.green = app.backgroundColor.rgb.green;
  savebackColor.rgb.blue = app.backgroundColor.rgb.blue;
  // put footprint in metadata info instructions
  app.activeDocument.info.instructions = app.activeDocument.info.instructions + "<Colorf>" + saveforeColor.rgb.red + "," + saveforeColor.rgb.green + "," + saveforeColor.rgb.blue + "</Colorf>" + "<Colorb>" + savebackColor.rgb.red + "," + savebackColor.rgb.green + "," + savebackColor.rgb.blue + "</Colorb>";
  //alert( "Saved ="  + "<Colorf>" + saveforeColor.rgb.red + "," + saveforeColor.rgb.green + "," + saveforeColor.rgb.blue + "</Colorf>" + "<Colorb>" + savebackColor.rgb.red + "," + savebackColor.rgb.green + "," + savebackColor.rgb.blue + "</Colorb>");
  else {
  //alert("second");
  // Retreive saved information
  colorfOffset = app.activeDocument.info.instructions.indexOf("<Colorf>") + "<Colorf>".length;
  colorfLength = app.activeDocument.info.instructions.indexOf("</Colorf") -colorfOffset;
  saveforeColor = app.activeDocument.info.instructions.substr(colorfOffset, colorfLength);
  colorbOffset = app.activeDocument.info.instructions.indexOf("<Colorb>") + "<Colorb>".length;
  colorbLength = app.activeDocument.info.instructions.indexOf("</Colorb") -colorbOffset;
  savebackColor = app.activeDocument.info.instructions.substr(colorbOffset, colorbLength);
  //alert("Colorf = " + saveforeColor + " Colorb = " + savebackColor );
  // Restore Colors
  app.foregroundColor.rgb.red = saveforeColor.substr(0,saveforeColor.indexOf(","));
  saveforeColor = saveforeColor.substr(saveforeColor.indexOf(",") + 1,saveforeColor.length);
  app.foregroundColor.rgb.green = saveforeColor.substr(0,saveforeColor.indexOf(","));
  saveforeColor = saveforeColor.substr(saveforeColor.indexOf(",") + 1,saveforeColor.length);
  app.foregroundColor.rgb.blue = saveforeColor ;
  app.backgroundColor.rgb.red = savebackColor.substr(0,savebackColor.indexOf(","));
  savebackColor = savebackColor.substr((savebackColor.indexOf(",") + 1),savebackColor.length);
  app.backgroundColor.rgb.green = savebackColor.substr(0,savebackColor.indexOf(","));
  savebackColor = savebackColor.substr(savebackColor.indexOf(",") + 1,savebackColor.length);
  app.backgroundColor.rgb.blue = savebackColor ;
  // Remove footprint from metadata info instructions
  before = app.activeDocument.info.instructions.substr(0,app.activeDocument.info.instructions.indexO f("<Colorf>"));
  afterOffset = app.activeDocument.info.instructions.indexOf("</Colorb>") + "</Colorb>".length;
  after = app.activeDocument.info.instructions.substr(afterOffset, app.activeDocument.info.instructions.length - afterOffset);
  //alert ("before = " + before + " after = " + after);
  app.activeDocument.info.instructions = before + after;
else { alert("You must have at least one open document to run this script!"); }

Similar Messages

  • I purchased Adobe photoshop elements II and Adobe premiere elements II. They are both on one disc. My computer crasded and I had to reload Windows. I only have one serial number and it only works with photoshop II. The same serial number will not work for

    I purchased Adobe photoshop elements II and Adobe premiere elements II. They are both on one disc. My computer crasded and I had to reload Windows. I only have one serial number and it only works with photoshop II. The same serial number will not work for Premiere. I dont have any other serial numbers. What do I do???

    Static_Unit
    I am getting a bit concerned about what is happening in your situation. Yesterday you posted your question in at least two different forums, one of them being here in the Premiere Elements Forum.
    Don't Have Serial Number for Premiere, Only Photoshop?
    Wherever you posted, the reply was to contact Adobe via its Adobe Chat. It is the only one who can sort out this matter for you.
    In the thread cited above I offered to help you with the difficulties that you were having visualizing the Adobe Chat in its web page. I was waiting for your follow up on that in the above thread. Instead, I find your same question in a new Adobe Premiere Elements Forum thread this afternoon with no refer the prior threads or prior recommendations given you.
    I will also mention again...when you buy the Photoshop Elements and Premiere Elements bundled in one packaging and with installation files for each on the same installation disc, each program has its own serial number. The Photoshop Elements serial number does not work for Premiere Elements and vice versa. The serial numbers are on labels on a box which houses the installation disc envelope(s). So, if you purchased both programs and found the Photoshop Elements serial number, then the Premiere Elements serial number should be in a label right underneath the label with the serial number for Photoshop Elements. I recall writing this in your yesterday's thread on this matter.
    The moderator will no doubt be along shortly to close or delete this thread. So, just in case, please bookmark your yesterday's thread cited above so that we can continue this communication which is trying to help you.
    Thanks.
    ATR

  • Photoshop CS2 will not work with RAW images in the Minolta DimAge A2.  It use to work fine

    I have used Photoshop CS 2 with my DimAge A2 for over 5 years in the RAW format.  Now it will not work with RAW with my camera.  I am using Vista 64.Any answers ?  Thanks

    It would seem to me that you have probably had to reinstall Photoshop CS 2.  If that is the case, then you should download and install Camera Raw 3.7.  The version that was on your install disk was updated several times.  And one of those updates probably included support for your camera.  Install ACR 3.7 and see if that helps.

  • So does Photoshop elements 13 require Win 7 or will it work with XP64 bit

    So does Photoshop Elements 13 require Win 7 or will it work with XP64 bit

    R_Kelly
    I looked at hamrick.com again and it seems to skip over the LS4500AF scanner. I queried him a few years ago and he indicated that the LS4500AF was an odd scanner needing a odd driver. It is SCSI also which in itself is another step. I would pay someone to rewrite the 32 bit driver but it would be more cost effective to keep a XP32 bit machine for the LS4500AF which I will probably do. I have been using XP64 bit for 10+ years and am really keen on it but with PSE 13 going to Win7 I will have to also.
    It takes me 3 or more months to get back to get my quality back up each time I change any hardware or software like an OS,  editor or computer. Fortunately my computer is good so I will not have to change it. And Summer is coming and that is my slow season time so aside from the several $s I should be fine come Fall.
    Bob  AZ

  • I purchased photoshop CS5 for my windows vista operating system. I purchased a canon 7 D some yrs ago no problem. I purchased canon 7D mk 11 in december 2014. The supplied software will not work with vista. Photoshop CS5 will not accept canon7D mk11. Can

    I purchased Photoshop CS5 for my windows vista operating system. I purchased a canon 7 D some yrs ago no problem. I purchased canon 7D mk 11 in December 2014. The supplied software will not work with vista. Photoshop CS5 will not accept canon7D mk11. Can someone please tell me how i process canon 7D mk11 photos ?????. (is it possible to bypass camera raw and open the photo straight into CS5 without using camera raw first. if so how do i do that. if not how do i process pictures).
    Thank you.
    Brian in the UK.

    Photoshop by itself cannot process raw image data. That is why the Camera Raw plug-in was developed. You could try the DNG converter and convert your images to the DNG format and then the Camera Raw that you have would be able to open them. I can't recommend Lightroom because you are using Vista, and Lightroom 5 cannot be used with that operating system. It may be time for you to get a new computer and upgrade your software.

  • HavI e Photoshop cs6 Extended Student and Teacher Edition/ can it be installed on two pc's and will it work with Windows 8.1

    havI e Photoshop cs6 Extended Student and Teacher Edition/ can it be installed on two pc's and will it work with Windows 8.1

    Yes

  • How can I obtain a version of Print Studio Pro that works with Photoshop Elements 13 (64 bit)?

    How can I obtain a version of Print Studio Pro that works with Photoshop Elements 13 (64 bit)?  The advertising refers to Print Studio Pro 2 but all I find available to download is version 1.35.

    Thanks - I did notice that the 2 was a superscript on one site but on another (I think the one for the Pro-10 printer) it was definitely a 2 in line with the rest of the text and separated by a space (at least on my browser).  At any rate, I suspected something of the kind and will simply use Photoshop Elements 11 when I want a pattern print until the change is made.
    If you have an inside line to Canon you might also suggest some changes to their Image Garden program, specifically its handling of DVD label projects.  It has several themes and within each theme several layouts.  As far as they go these are fine but they do not give nearly enough flexibility.   The boxes for insertion of images are useful as is the simple procedure for rescaling the image so it is cropped in varying ways while staying within the fixed box.  However, it should be possible (a) to relocate the boxes on the page and (b) to resize and reshape the boxes - probably by a control which would become available by right-clicking on the box.  For example, there are times when the user might want to include a full 16 x 9 frame shot as one of the images, and in general the aspect ratios of the provided boxes do not permit this.
    I have over the years preferred to use Word for this purpose after setting up masks to expose just the printable area of the DVD or Blu-ray disc, setting up the margins so that the center of the disc is in the horizontal center of the page, and finally introducing text and pictures and adjusting the font size of blank lines above the disc to line everything up properly in the vertical direction.  A typical layout might involve one large picture, located so the center hole and the curved outer edge do not block anything important, or two pictures side by side, or four pictures centered vertically (to minimize the effect of the outer edge of the disc) but possibly of different widths (so as to make both close-ups and wide scenes optimal on the same disc label).  The text then goes above and below the pictures.  All of this works perfectly so I probably wouldn't use Image Garden very often for this purpose, but the inability to resize and relocate the boxes must be very limiting for others as well. 
    Some of the layouts have image locations severely reduced by the edge of the disc.
    As I said ... if you have an inside line to Canon .. but if not, please excuse the length of this post!

  • HT4753 Can auto save work with Photoshop 5.0?

    Can auto save work with Photoshop 5.0?
    [email protected]

    No. Autosave/Versions must be built into the app itself to use those OS features. It doesn't work just because it's part of the OS. None of the CS6 apps support it, either. The only Adobe apps that do are the latest versions of Photoshop Elements and Premiere Elements. And that's only because the have to in order to be allowed in the App Store. In both cases, Adobe also gives users a preference to turn it off.
    What Adobe did do in Photoshop CS6 is add an autosave feature of their own. It saves your work according to whatever time increment you choose. Then if the app crashes, it will try to reopen the saved data when you relaunch the app.

  • PSE13 trial version and it will not work with Windows 7

    I have downloaded PSE13 trial version and it will not work with Windows 7

    I have been using PSE 13 for 3 months with no problems.   When I launch the Editor in PSE 13 this is what I get -
    "Adobe Photoshop cannot run on this computer because this version of Photoshop requires Windows 7 or later"
    RAM 12.0GB
    64 bit operating system
    Intel(R) Core(TM)I7CPU 920 @ 2.67GHz
    Windows 7 SP1
    Hope this helps.
    Lynne

  • I work with photoshop CS5 and the stamp is very slow. Why?

    I work with photoshop CS5 and the stamp is verry slow. Why?

    If you can afford it, go with a Crucial M4 SSD.
    If your in a limited budget, go with a Seagate Momentus XT 750GB.
    The SSD will be the fastest one and the Seagate being faster than a conventional drive.
    If you decide to go conventional, avoid the Western Digital Scorpio Blue.  They tend to have issues with Macbooks.
    Good luck

  • Will CS2 work with Apple's Mountain Lion?

    Will CS2 work with Apple's Mountain Lion?

    Hi,
    You might see errors such as "You can't open the application Adobe <App Name XXX> because PowerPC applications are no longer supported."
    You might also like to visit this page http://helpx.adobe.com/photoshop/kb/error-powerpc-applications-supported-photoshop.html for a similar scenario with Adobe Photoshop.
    Thanks,
    Arindam Ghosh

  • Hello. Layer masks aren't working with Photoshop CC... The brushes gave out, and now the gradients too. Anyone else have this problem?

    Hello. Layer masks aren't working with Photoshop CC... The brushes gave out, and now the gradients too. Anyone else have this problem?
    Will someone from Adobe please answer if this is a bug.. as I've seen other users post the same issue.
    thanks!

    I'm experiencing the same issue too. I can't see to use the brush in my clipping mask the same way. It works for a moment, then several minutes in to production it ends up crashing.
    I hope this issue is resolved soon. It's definitely frustrating and delaying my production time.

  • I use Elements 7. will that work with Revel?

    I use elelments 7. Will that work with Revel? (whatever that is!) I don't really understand this stuff at all. And my p/w keeps getting rejected - even though I have it written down in my book right in front of me!

    Elements will continue to work for editing as it always did. Only version 11 and up of Photoshop Elements will interface with Revel. If you would like to use Revel, then you can upload to Revel from your hard drive for cloud storage and sharing.
    Pattie
    Here are some links that may help:
    SHARE
    http://forums.adobe.com/message/5092831#5092831
    FAQ: How do I share my photos in Revel?
    UPLOAD
    FAQ: How do I add (upload) files to Revel?
    http://forums.adobe.com/thread/1162795?tstart=0
    Forum FAQ's: http://forums.adobe.com/community/revel/faq
    Forum for Revel users: forums.adobe.com/community/revel
    FAQ's about the transition from Photoshop.com to Revel:http://www.photoshop.com/misc/membership-faq
    Getting Started with Revel:http://www.adobe.com/support/revel/gettingstarted/revel_gs.html

  • Does Lightroom work with Photoshop Elements

    Does Lightroom work with Photoshop Elements?

    When setting up the editor in the prefs choose images of 8 bits not 16 bits, either PSD or tiff. Elements works best with 8 bit images. For example you can't use layers with 16 bit images.
    Once you have set up the LR prefs you are ready to make the round trip:
    1) Ctrl+E in the Library to export selected image with develop settings or right-click and choose Open In Photoshop Elements Editor
    2) Make your adjustments in Photoshop Elements; then Ctrl+S to replace (overwrite) Lightroom export copy
    3) Ctrl+W to close in Photoshop Elements and update Lightroom thumbnail.
    On Mac OSX Cmd+E; Cmd+S; Cmd+W
    The important point is to overwrite the LR export copy by using File >> Save (Ctlr+S) because a tiff or PSD file has been automatically rendered by LR based upon your preference setting for External Editing. If you use “Save As” you create a new document which LR knows nothing about. It will only show in the LR Library if you save.

  • My operating system windows XP not working with photoshop cloud, why not?

    I need to add 2 more licences for photoshop cloud and I'm being told my operating system windows XP does not work with Photoshop cloud. We already have 2 pcs using it in our office so why not?
    Please help
    Roy

    Do you have the latest version of iTunes?  If not, get it at:
    http://www.apple.com/itunes

Maybe you are looking for