File won't save in CS5 but does in CC need to make it back compatible

This is my script, it runs fine in Photoshop CC but not on CS5.1 It does most of the script but will not save it comes up with the error
  save current document in file "Images3:2013-2014:WK99:Top:Top_WK99_PSD:TM15WA00124SV1RH.png" of current document as PNG with options {class:PNG save options, compression:1, interlaced:false} without copying
  --> error number -1728
Result:
error "Adobe Photoshop CS5.1 got an error: Can’t get current document." number -1728 from current document
set theFolder to POSIX path of (choose folder with prompt "Select Folder")
set theFolder2 to text 1 thru -2 of theFolder
log theFolder2
set dtF to paragraphs of (do shell script "find  " & quoted form of theFolder2 & " -iname \"*.PSD\"")
set tc to (count dtF)
repeat with i from 1 to tc
          set thefile to item i of dtF
          tell application id "com.adobe.Photoshop"
  activate
  open (alias thefile) showing dialogs never
                    set display dialogs to never
                    set thePath to do shell script "dirname " & quoted form of thefile
                    set SaveLocation to (POSIX file thePath) as string
                    set origName to name of current document
                    set myPNGOptions to {class:PNG save options, compression:1, interlaced:false}
                    tell current document
  --If the quick mask mode has been left on then delete the channel Quick Mask
                              try
  --for CS5
                                        if (quick mask mode) then delete channel ¬
                                                  "Quick Mask"
                              on error
  --for CS6 and up
                                        if (quick mask mode) then delete channel ¬
                                                  "Alpha"
                              end try
  --If the Layer is incorrectly labeled with Original Layer it needs renaming to original Image
                              if (exists layer "Original Layer") then ¬
                                        tell layer "Original Layer" to set name to "Original Image"
                              (delete layer "Original Image")
  --set hS to current history state
                              delete layer "BACKGROUND" of layer set "Dodge and Burn"
                              move layer "Main Image" of layer set "Dodge and Burn" to after layer set "Dodge and Burn"
                              delete layer set "Dodge and Burn"
  delete layer set "Retouch"
  trim basing trim on transparent pixels
  save in (SaveLocation & origName) as PNG with options myPNGOptions without copying
                              close without saving
                    end tell
          end tell
          set FileLocation to (POSIX file thefile) as string
          tell application "Finder" to delete FileLocation
end repeat

Older versions of Photoshop do not support png with compression.

Similar Messages

  • CS4 files won't save in CS5

    I did some illustrations in CS4 (v11.0.2) on a PC and now the client is having a problem working with them in CS5 on his Mac. I did seven illustrations for a book our church is publishing. I provided the illustrations to the graphic designer who is using CS5 and Indesign. He transferred the illustrations to his computer and opened them in CS5 but after making adjustments to them when he attempts to save them he gets a box saying;
    “the file is locked or you don't have access privileges to the file or folder”
    He also tried saving them BEFORE he made adjustments and has the same problem.
    Upon hitting “command i” it shows the file is NOT locked. He tried saving them to PSD, EPS and Layered Tifs and got the same message as above.
    I went back to my studio and re-saved the files making sure “maximum compatibility” was checked. Then I saved them again as layered tifs in the Mac byte order. I even took them to an older computer and saved them using Photoshop 7. Still, the designer gets the same message and is unable to save them.
    I'm an illustrator and have worked exclusively digitally for ten years and have never had this problem before. The files are layered files and are about 25mb each. There are two things that are different about these files than other files I've created in the past.
    I changed the color profile to      Adobe RGB (1998). This was so the image looked the same in CS4 and      in Painter 11. I use both programs to do my painting. Again, this      has never caused a problem and I always do the final save in CS4.
    I deleted the “background”      layer before saving the file. This was because the client wanted a      “ragged” edge to the illustration and wanted to drop the image      onto a toned background paper.
    I don't see why these things would effect the ability to save the file in CS5, but maybe someone else does.
    I'd really appreciate any help on this. The deadline date when the book has to go to the publisher is very close.
    pg

    Thanks for the reply.
    I called the designer and he's putting the files onto a local hard drive. He's running Snow Leopard 10.6.4 and CS5 12.0.2.
    My copy of CS4 is current (11.0.2).
    I provided the files on a CD, DVD and flash drive.
    Thanks again, any further help would be great.
    He said he'd repaired the permissions but hasn't rebooted since doing it. He's in a large design department and are currently working on stuff that's keeping him from doing a reboot for a little while.

  • Files won't save in folders

    I just purchased Final Cut Studio today. I'm going through the tutorial and my files won't save in the folders created for the tutorial on my HD. I go to "send to" for Motion and Motion opens and asks for a data rate. Then when i choose one Motion opens it's window but there is no project. Any clue?

    If you copied the files to your hard drive before working with them, make sure you have permission to both READ and WRITE to all the files involved. Highlight a file and hit Command i (Get Info) to see how the permissions are set. You can change them there if needed.
    -DH

  • CS4 Photoshop - saving on NAS storage - open file won't save without renaming it.

    open file won't save without renaming it.  If you try to save a file that you have adjusted in CS4 Photoshop on a networked drive, it won't save it.  If you rename it, sure.  If you are working on the local drive it is not a problem. 
    By the way, we have 2 users in house.  Both on Mac systems and both are using CS4 Creative Suite.  One Mac is OSX 10.6.8 - the other is Mac OSX 10.8.3.  The older Mac system does not have a problem. 
    Is this a Mac operating system problem?  would upgrading to CS6 solve the issue for our Mac OSX 10.8 ?

    Try the forum for Adobe Acrobat.

  • Adobe Reader does not recognize file name (filename10.5.11.pdf) but does in Adobe Standard 9.  Why?

    I post documents to our Intranet site and found out recently that Adobe Reader does not recognize certain file names in PDF files.  For instance,  when trying to open a PDF file with the name
    filename10.5.11.pdf  in Adobe Reader, the web browser will not open the PDF and the display is blank.   When I'm using another computer with Adobe Standard 9, I do not have a problem opening the file.
    I would like to know if anyone else has had a similar issue and why Reader will not recognize the file name and Standard does.

    The version is Adobe Reader 10.1.0    I will request the latest version
    and let you know if that fixes the problem
    Actually I had changed the name of the file so our associates could access
    the file (changed the  .  to a hyphen)  It still made me wonder why Reader
    wouldn't open it at that time.
    Thanks again for you assistance and I will let you know if this resolves
    the  issue.
    Regards,
    Susan
    From:   Ankit_Jain <[email protected]>
    To:     SusanPleso <[email protected]>
    Date:   10/19/2011 12:56 AM
    Subject:        Adobe Reader does not recognize file name
    (filename10.5.11.pdf) but does in Adobe Standard 9.  Why?
    Re: Adobe Reader does not recognize file name (filename10.5.11.pdf) but
    does in Adobe Standard 9. Why?
    created by Ankit_Jain in Adobe Reader - View the full discussion
    Hi Susan,
    Thanks for providing the information.
    Could you also let me know what is the exact version of Adobe Reader on
    your system. You can check the same y clicking on Help > About Adobe
    Reader X.
    In case its not 10.1.1, please try updating to the latest version and see
    if the problem persists.
    Also, does any other PDF with a different filename open in Internet
    Explorer correctly?
    Thanks
    Ankit
    Replies to this message go to everyone subscribed to this thread, not
    directly to the person who posted the message. To post a reply, either
    reply to this email or visit the message page: [
    http://forums.adobe.com/message/3979020#3979020]
    To unsubscribe from this thread, please visit the message page at [
    http://forums.adobe.com/message/3979020#3979020]. In the Actions box on
    the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe Reader by email or at Adobe Forums
    For more information about maintaining your forum email notifications
    please go to http://forums.adobe.com/message/2936746#2936746.

  • Do i need to make an back-up of my files before i get mountain lion?

    do i need to make an back-up of my files before i get mountain lion?

    Even though the Mac OS X updaters are very smooth and rarely run into problems, it is always wise to make a clean, and bootable  backup before performing a major update.  When things go wrong they go wrong in the worst possible way

  • Flash CS4 file won't open in CS5

    I have tried Adobe support with this but their response was as helpful as a hole in the head. I am hoping someone here might be able to help or seen this problem before.
    I have a fla file which opens, save and compiles perfectly in Flash CS4 but when I open it in CS5 it crashes Flash with the below error report. I have tried this on multiple machines all resulting in the same error message.
    I have also tried saving the file in CS4 under a new name, did a compact and save and a magic spell. Neither of which had any effect.
    Any help or pointers would be appreciated.
    Tom
    PS: If anyone from Adobe is reading this... given you are charging a premium for Master Collection here in Australia I would have expected a little bit of help when your software doesn't work as expected. I am sorry, but that's just not good customer service.
    Here the first part of the error report if it helps:
    Process:         Adobe Flash CS5 [89706]
    Path:            /Applications/Adobe Flash CS5/Adobe Flash CS5.app/Contents/MacOS/Adobe Flash CS5
    Identifier:      com.adobe.flash
    Version:         11.0.2.489 (11.0.2)
    Code Type:       X86 (Native)
    Parent Process:  launchd [176]
    Date/Time:       2011-06-19 12:22:47.453 +1000
    OS Version:      Mac OS X 10.6.7 (10J869)
    Report Version:  6
    Interval Since Last Report:          232933 sec
    Crashes Since Last Report:           1
    Per-App Interval Since Last Report:  23 sec
    Per-App Crashes Since Last Report:   1
    Anonymous UUID:                     
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000bf800fe4
    Crashed Thread:  0  Dispatch queue: com.apple.main-thread
    Application Specific Information:
    Java information:
    Exception type: Bus Error (0xa) at pc=00000000008c87c0
    Java VM: Java HotSpot(TM) Client VM (19.1-b02-334 mixed mode macosx-x86)
    Current thread (000000003a801000):  JavaThread "main" [_thread_in_native, id=-1598790336, stack(00000000bf800000,00000000c0000000)]
    Stack: [00000000bf800000,00000000c0000000]
    Java Threads: ( => current thread )
      000000003107c000 JavaThread "Code Model Worker" daemon [_thread_blocked, id=-1310355456, stack(00000000b1d59000,00000000b1e59000)]
      000000003107b800 JavaThread "Code Model Worker" daemon [_thread_blocked, id=-1311412224, stack(00000000b1c57000,00000000b1d57000)]
      000000003a8c1c00 JavaThread "FelixPackageAdmin" daemon [_thread_blocked, id=-1313034240, stack(00000000b1acb000,00000000b1bcb000)]
      00000000698c8800 JavaThread "FelixStartLevel" daemon [_thread_blocked, id=-1314091008, stack(00000000b19c9000,00000000b1ac9000)]
      0000000031072000 JavaThread "FelixDispatchQueue" [_thread_blocked, id=-1318744064, stack(00000000b1559000,00000000b1659000)]
      0000000031009000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=-1320857600, stack(00000000b1355000,00000000b1455000)]
      0000000031008000 JavaThread "CompilerThread0" daemon [_thread_blocked, id=-1321914368, stack(00000000b1253000,00000000b1353000)]
      0000000031007400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=-1322971136, stack(00000000b1151000,00000000b1251000)]
      0000000031006400 JavaThread "Surrogate Locker Thread (CMS)" daemon [_thread_blocked, id=-1324027904, stack(00000000b104f000,00000000b114f000)]
      000000003a843000 JavaThread "Finalizer" daemon [_thread_blocked, id=-1325084672, stack(00000000b0f4d000,00000000b104d000)]
      000000003a842400 JavaThread "Reference Handler" daemon [_thread_blocked, id=-1326141440, stack(00000000b0e4b000,00000000b0f4b000)]
    =>000000003a801000 JavaThread "main" [_thread_in_native, id=-1598790336, stack(00000000bf800000,00000000c0000000)]
    Other Threads:
      000000003a83f800 VMThread [stack: 00000000b0c49000,00000000b0d49000] [id=-1328246784]
      000000003100a800 WatcherThread [stack: 00000000b1457000,00000000b1557000] [id=-1319800832]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    par new generation   total 14784K, used 5986K [000000005d6e0000, 000000005e6e0000, 000000005e6e0000)
      eden space 13184K,  40% used [000000005d6e0000, 000000005dc097a0, 000000005e3c0000)
      from space 1600K,  43% used [000000005e550000, 000000005e5ff208, 000000005e6e0000)
      to   space 1600K,   0% used [000000005e3c0000, 000000005e3c0000, 000000005e550000)
    concurrent mark-sweep generation total 49152K, used 0K [000000005e6e0000, 00000000616e0000, 00000000656e0000)
    concurrent-mark-sweep perm gen total 12288K, used 6656K [00000000656e0000, 00000000662e0000, 00000000696e0000)
    Virtual Machine Arguments:
    JVM Args: -Djava.awt.headless=true -Xmx128m
    Java Command: <unknown>
    Launcher Type: generic
    Physical Memory: Page Size = 4k, Total = 8192M, Free = 209M
    Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
    0   com.adobe.flash               0x008c87c0 std::map<unsigned long long, CLibraryItem*, std::less<unsigned long long>, std::allocator<std::pair<unsigned long long const, CLibraryItem*> > >::operator[](unsigned long long const&) + 18
    1   com.adobe.flash               0x008c5c9f non-virtual thunk to drover::PIPanel::GetContextMenu() + 17531
    2   com.adobe.flash               0x008c5d02 non-virtual thunk to drover::PIPanel::GetContextMenu() + 17630
    3   com.adobe.flash               0x008c5d02 non-virtual thunk to drover::PIPanel::GetContextMenu() + 17630

    Hi,
    I'll look into this issue  here . If possible  please email your fla to us at [email protected]?
    Please note that our filter system cannot accept .zip file.
    If you are sending the file in .zip format  change the file extension from .zip to .zzz.
    Thanks
    Sukhbir
    Flash Authoring

  • Huge file size with Save for Web but preview is ok

    Hi,
    I have googled but not found anything about this but I have the same problem on my computer and also on a colleagues computer so it seems it should not be totally unknown.
    This is what i do
    1 Open a eps file, one color logo, 72dpi, size it to 110x21
    2 save for web
    3 select png-24 format. preview says file size ~1.3 kB
    4 save -> actual file size on disk is 4 kB (ie 3 times bigger file size than it should be)
    5 Preview and then right click in browser + save image as gives correct file size (on my colleagues computer this does not work, he always gets the wrong size)
    I have also tried with gif and various settings, image sizes etc and the result is the same.
    I'm using Windows Vista 32-bit and Photoshop CS4.
    Is this a known problem?
    Thanks

    Thanks for your reply but i don't think that's it. When I check properties on the file in Windows it tells both "Size" and "Size on disk", where the latter is actual size on disk (depending on cluster size) but the size I am talking about is the first one.
    Also just to be clear, when I say Preview, I mean clicking the Preview button that opens the file in a browser window. Not the preview within the Save for Web and Devices dialog. So I think this file is correctly created and *should* be the same as if I click Save (but it obviously isn't)
    This sounds very much like a bug to me, anyone else who have seen this or can recreate?
    Thanks

  • Watermark source file won't save in settings

    I have successfully created several watermark images that have source files (both in PDF format and JPG format). But there is one that I cannot get to save. I have tried the image in both JPG and PDF formats, but for whatever reason, when I try to save the settings, the source file is not saved and it just comes up as blank text when I select it for use. I have tried over and over again to save this watermark.
    As a result, whenever I want to apply this particular watermark, I have to go and browse for and find the file time and time again.
    ?? Any clue as to why this one won't save? Is there a maximum number of watermarks that can be saved?

    You can look at the place where the settings are saved.
    For Acrobat 8 and MS Vista the place is:
    X:\Users\{user}\AppData\Roaming\Adobe\Acrobat\8.0\Preferences\Watermark

  • Lightroom doesn't open image in Photoshop CS5 but does open PS CS5

    I just installed CS5 and uninstalled CS4.
    Now, Lightroom 2.7 when in try to "Edit in Photoshop CS5" Photshop CS5 does open, but the image I am trying to edit does not open in PS-CS5 .  Photoshop just opens and the image from Lightroom is not present.
    Looking at previous threads I have tried the solution:
    Mac OS
    On Mac OS, try the following solutions in order:
    Solution 1: Rebuild the Photoshop plist file.
    Close Photoshop Lightroom.
    Navigate to the Users/[username]/LIbrary/Preferences folder.
    Drag the com.adobe.Photoshop.plist file in the Trash.
    Start Photoshop. Photoshop will recreate the plist file.
    I have updated LR , Mac OS and PSCS to all current versions
    Any other ideas to get LR2.7 and PS CS5 to work together again ?
    Thanks,

    I did delete the LR plist file,
    And yes I have the latest version of Camera Raw updated and installed,
    but the Lightroom still opens PS CS5 but will not open the image too.
    Any other sugestions
    Thanks,

  • Files won't save to remote in CS4.

    I started this website in CS3 and right before my upgrade, the "Save to Remote" stopped saving.  I have upgraded to CS4 and still on this one website, I can not "Save to Remote".  Nothing changes on the remote end after my save.
    Any ideas on what to check out?
    I created a new site and started from scratch copying the files from the remote to my new local folder and still it won't save to remote.  Not sure what to check but there must be a setting wrong somewhere.
    Thanks.

    You may want to look at the dates and times for both the files on your computer and those on your server.  They should be the same but for some reason the ones on the server are not being updated.  After identifying the ones that are "out of sync" then deleted the old ones from your server manually and "put" the ones on your computer.  try with one file first.
    Hope it helps
    Patrick

  • CS3 .ste files won't import into CS5

    I recently upgraded from CS3 <on XP> to CS5 <on Mac Snow Leopard.> I expected a learning curve, but I also expect that software works as specified.
    My CS3 site definition files won't import. I followed the instructions in DW help to the letter:
    Manage Sites---> Import--->browsed to .ste files, selected Choose, and nothing happens. The sites don't show up in the list in the Manage Sites dialog box. ARE THERE MISSING INSTRUCTIONS? IS THERE A PLUG-IN MISSING?
    After I've tried to import them, the .ste files are then 'greyed out' from the list of files. It doesn't matter what source the .ste files come from: jumpdrive, email, etc.
    Note:  This is a new, fresh & clean Snow Leopard install, and my files were transfered at the Apple Store. The CS5 install was just last week as well.
    I have client sites to update. Please help!

    Yes, I did export the .ste files from XP/CS3. I saved them to a jumpdrive, and also emailed them to my Macbook. I know some people don't read or follow instructions before they ask for help, but that's not the case.
    This seems to be a CS5 issue in Mac Snow Leopard. Important note; I was able to import the .ste files to an XP machine running a demo version of CS5. I've moved site files before with CS, CS2, and CS3, on XP. Never had an issue with those flavors or that OS.
    On my Mac, after I attempt to import the .ste files, they become 'greyed out'. All other file types (.html, etc.) also appear 'greyed out'. It seems like there's a missing step in the instructions?
    Update:  I right-clicked the .ste files in my Downloads file, and chose 'Open with Dreamweaver'. THEN they imported successfully, and prompted me to choose the root folders. (If nobody answers the front door, knock on the back door!)
    Thanks to all for your suggestions, but I think the problem is behind me. Long live the right click!

  • Tiger to Leopard file won't save

    Hey folks,
    Any tips here?
    I've just moved over to Leopard, and most of my Waves plugs won't validate at all, which is fine I guess. However, my biggest issue is saving my projects.
    "File with specified name and version number already exists Result code = -48"
    Anybody? I have projects to do, this is just killing me.

    Trouble was with my Migration from my old system.
    Logic wanted to save files in it's new location, but I was trying to save it in a previous folder that di not exist on my new machine.
    Solution? Drag Logic over to the new system, save a session, and manually drag my old session from my ext.HD to my new machine.

  • IPhone 3GS won't appear in iTunes but does come up in my computer. error message 0xE8000065 or 0xE8000084

    I've tried everything.
    reinstalling iTunes
    restarting Apple Mobile Device
    bought a different cable
    restarting my laptop
    restarting the iphone
    checked for iTunes Helper Services
    uninstalled and reinstalled Apple Mobile Device USBdriver
    and still, my iphone wont come up in iTunes but it does come up as my iPhone in My Computer as a portable device.
    All I get in iTunes is iTunes could not connect to this iPhone. An unknown error occured (0xE8000084)
    I've tried Googling for this error and no one else seems to have it.

    hi, ive tried everything mentioned in the link and still have the same problem. my iPhone won't connect to iTunes but it does come up as a camera device in my computer.

  • Firefox freezes when using "Save link as" or doing anything that needs to browse local file directory?

    System: Windows XP, Firefox 17.0.1.
    Firefox freezes when doing anything that needs to browse local directory such as saving file, uploading, etc....For example, can't save any image using "save link as". When attaching a file in email, whenever the browsing to other location on the hard drive will freeze firfox, which turns to "not responding"....

    We're sorry to hear that your Firefox seems to be crashing. Please perform the following steps to give us a crash report ID that helps us find out more about the cause of the crash.
    #Enter about:crashes in the Firefox location bar (that's where you enter your website names) and press Enter. You should now see a list of submitted crash reports.
    #Copy the most recent 5 report IDs that you see in the crash report window and paste them into your forum response.
    Thanks in advance for your help!
    More information and further troubleshooting steps can be found in the [[Firefox crashes]] article.

Maybe you are looking for