SMART OBJECTS TEMP FOLDER

I use smartobjects a lot when I am creating collages or my graphics in photoshop. What is surprising me these days is that when I import a photo as a smart object, if I click it in the layers panel it opens in a separate window, so I can edit just that particular photo, by adding adjustment layers, duplicating etc. My surprise is that when I try to save it it opens the temp folder.
Now I can't save my new edits, because this was very useful in case I want to change or edit the adjustment layer. If I still got the background, I can merge all layers and save it and all changes will be updated in the main document, but if I don't like the changes, that means I will have to start all over again.
Anyone knows why this is happenning to me. I have the current CS5 12.0.4.
Thank you,
Shadreck

srukweza wrote:
I use smartobjects a lot when I am creating collages or my graphics in photoshop. What is surprising me these days is that when I import a photo as a smart object, if I click it in the layers panel it opens in a separate window, so I can edit just that particular photo, by adding adjustment layers, duplicating etc. My surprise is that when I try to save it it opens the temp folder.
Please clearify two things for me.  How do you import a photo as a smart object? and when you wrote duplicating what did you dupe.
When I do collages I populate my Collage templates with image files using Photoshop's menu File>Place.  The image layers are smart object and embedded it the layer is a copy of the original image file. It can be any image file type RAW, PSD, Jpeg, PNG etc.  When I double click on an image layer smart object icon in the layers palette Photoshop Opens the embedded file in the smart object layer. If the embedded file is a RAW file ACR open first I can re-adjust the current smart objects  raw setting an then open the image in Photoshop.  Then I have a choice of closing the image without saving in which case no update is made to the smart object layer. Or I can use menu File>Save... . When I do a save I see a message that has a progress bar that states the Smart Object is being updated .  What happens is the embedded file in the  smart object is updated with the changes I made to it. Once it is updated the changes are also reflected into the document containg the smart opject layer. The smar object is also still open in Photoshop which I x out of it in Photoshop.   You may have to reduce the smart object Image view zoom out to be able to see the updating smart object message when you do do the save to commit the changes into the smart object.   Once you update the smart object layer the embedded image file is not the original image for it now contains you new update.    On my CS2, CS3 and CS5 systems I never see save opening a temp folder.  I see the smart object layer being updated when I use menu File>Save...

Similar Messages

  • How to automate replacing smart object from folder?

    Hello!
    I have a layout in CS6, with an image that is a smart object. I have a folder of jpgs, and need to make comps from each of the JPGs. At the moment I take the master, double click the smart object. Place in the source JPG from the folder I'm working on. Save, back in the master, I export the updated layout for web. Then repeat.
    What I'd like to do, is use an action or script, that I could point to the folder of JPGs, and have it automatically, update the smart object with the JPGs export the comp as jpg for all of them.
    Is there a way to do this without being a programmer?
    Thanks
    Maxi

    Here's screenshots of a solution that doesn't require a script. You'll need to manually open the layout doc then open the SO but everything else is automated by Batch. Make absolutely sure that the SO doc is active when starting to record the Action and when you launch Batch. That's necessary for the "Select previous document" and "Select next document" steps to refer to the correct docs.

  • Windows\Temp folder filling fast - how to Dispose the Crystal Objects?

    Post Author: pontupo
    CA Forum: .NET
    So the Windows\Temp folder is fast filling the disk in my
    deployment. Each time a report is opened, a number of files are created
    here. The problem is, of course, probably that I'm not releasing my
    report objects in my code, as the reports can't even be manually
    deleted without shutting down IIS. Well, fair enough. What I can't
    figure out is where to release my reports objects. I have two pages:
    one performs a pre-pass of the report object and generates a dynamic
    page to prompt the user for parameters. This page, I believe, has no
    problems because the report.Close() command is in line with the code
    and is the final statement, but I could be mistaken and this page may also be leaving memory leaks. The second page, however, has the
    CrystalReportsViewer object and actually displays the report to the
    user after setting up the parameters correctly. On this page, I can't
    figure out how/when to call report.Close(). If I do it at the
    page.Dispose event, there seems to be no affect. If I do it at the
    page.Close event, the report will load fine, but if you try to go to
    another page in the report (in the case of multi-page reports) or
    refresh the data, the report object has already been unloaded and the
    CrystalReportsViewer won't be able to find the report document. If I
    wrap my code in one big Try-Catch-Finally (rather than just having a
    Try-Catch around the file load itself) as I've seen suggested elsewhere and place a report.Close()
    command in the Finally, the Finally is executed before the viewer even
    loads the report so I get a file not found error. So where
    can I unload the report object? What I want is to persist the report
    via Sessions (which I do) so that as the user moves between pages of
    the report/refreshes the report will remain loaded, but when the user
    closes the page or browses to another page, perhaps, I want to close
    the report and free the resources so that the temp files are deleted.
    Following are some code samples: Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init        sessionString = Request.QueryString("report")        report = Server.MapPath("reports/") & Request.QueryString("report") & ".rpt"        ConfigureCrystalReport()    End SubPrivate Sub ConfigureCrystalReport()        If (Session(sessionString) Is Nothing) Then            reportDoc = New ReportDocument()            'load the report document            If (IsReportValid()) Then              reportDoc.Load(report)              '******************************              'bunch of other code, authentication              'parameter handling, etc. here              '******************************              Session(sessionString) = reportDoc        Else                Response.Redirect("error.aspx")            End If        Else            reportDoc = CType(Session(sessionString), ReportDocument)        End If    CrystalReportsViewer.ReportSource = reportDoc    End Sub    Private Function IsReportValid() As Boolean        Dim reportIsValid As Boolean = False        Try            If (System.IO.File.Exists(report)) Then 'does the file exist?                'if it does, try to load it to confirm it's a valid crystal report                Dim tryReportLoad As New CrystalDecisions.CrystalReports.Engine.ReportDocument()                tryReportLoad.Load(report)                tryReportLoad.Close()                tryReportLoad.Dispose()                reportIsValid = True            End If        Catch ex As Exception            reportIsValid = False        End Try        Return reportIsValid    End Function'Currently, I've also tried each of the following:Protected Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Unload        CloseReports(reportDoc)        CrystalReportsViewer.Dispose()        CrystalReportsViewer = Nothing    End Sub    Private Sub CloseReports(ByVal report As ReportDocument)        Dim sections As Sections = report.ReportDefinition.Sections        For Each section As Section In sections            Dim reportObjects As ReportObjects = section.ReportObjects            For Each reportObject As ReportObject In reportObjects                If (reportObject.Kind = ReportObjectKind.SubreportObject) Then                    Dim subreportObject As SubreportObject = CType(reportObject, SubreportObject)                    Dim subReportDoc As ReportDocument = subreportObject.OpenSubreport(subreportObject.SubreportName)                    subReportDoc.Close()                End If            Next        Next        report.Close()    End Sub'This was the solution suggested on another forum. I've also tried:Protected Sub Page_Disposed(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Disposed        reportDoc.Close()        reportDoc.Dispose()        CType(Session(sessionString), ReportDocument).Close()        Session(sessionString) = Nothing    End Sub'I've also tried wrapping everything inside of the If statement in the ConfigureCrystalReport() method in code to this effect:If (IsReportValid()) Then                Try                    reportDoc.Load(report)Catch e As Exception                    Response.Redirect("error.aspx")                Finally                    reportDoc.Close()                End TryAny advice on this is appreciated. Thanks in advance, Pont

    Post Author: sarasew13
    CA Forum: .NET
    Why are you checking for is valid before closing?  As long as the report object isn't null you should be able to close it (whether it's open or not).  I ran into this same problem when trying to store the report, so now I just store the dataset.  Everything seems to work fine and navigate appropriately so here's more or less how I handle it:
    DataSet myDS;ReportDocument myRPT;
        protected void Page_Load(object sender, EventArgs e)    {        try        {            if (!IsPostBack)            {                //pull variables from previous page if available                //set variables into view state so they'll persist in post backs            }            else            {                //if postback then pull from view state            }
                createReport();    }        catch (Exception err)        {            //handle error        }    }
        private void createReport()    {        myDS = new DataSet();        string rpt;
            rpt = "RPTS/report.rpt";        try        {            if (!IsPostBack || Session["data"] == null)            {                myDS = getData();//make data call here                Session["data"] = myDS;            }            else            {                myDS = (DataSet)Session["data"];            }
                if (myDS.Tables.Count > 0)//make sure the dataset isn't empty            {                myRPT = new ReportDocument();                myRPT.Load(Server.MapPath(rpt));                myRPT.SetDataSource(myDS.Tables[0]);
                    if (!IsPostBack)                {                    //code to set parameters for report here                }
                    MyViewer.ReportSource = myRPT;            }        }        catch (Exception error)        {            //handle error        }    }
        protected void Page_Unload(object Sender, EventArgs e)    {        try        {            if (myRPT != null)            {                myRPT.Close();            }        }        catch (Exception error)        {            //handle error        }    }

  • LR 2.1 Unable to Open as Smart Object in PS CS3 due to swedish characters in folder name

    When I try to open a raw file from Lightroom 2.1 as a smart object in Photoshop CS3 and the folder contains swedish characters, like åäöÅÄÖ, it will not open at all -> PH starts up and presents a "Open As" dialog.
    It works fine when I open images that is in a folder only having english characters...
    As I read that some apostrophe-related problems were fixed in the 2.1 release I hoped that it included all special characters allowed in folder names... The same problem occurs in version 2.

    My problem might be of a similar origin.
    I have also posted it on a different thread http://www.adobeforums.com/webx/.59b6903c
    I use mostly Hebrew characters for Keywording (the file names are in English) after opening in CS3 and saving, the keywords are converted from Hebrew fonts to accented fonts like åäöÅÄÖ.
    This didn't happen in LR1 and does not happen if I use CS3 as my secondary editor (not using the new LR2 edit in CS3 functionality)
    Shai

  • Smart objects generate huge ( 10 GB) temp files ??

    Hi folks. I think there's a bug in CS3's smart object handling. Everytime I move (not resize!) a smart object, the temp file's size increases by some 100-200 MB. I easily get over 10 GB just by moving around a single object repeatedly.
    I find that quite weird, given that normal layer moving does not significantly alter the temp file's size. And PS only has to store the smart objects new X and Y coordinates as the object itself does not change. Am I missing something ? Anybody knows what's going on ?

    Converting Smart objects back to embedded layers would be a very useful addition. "Return to layers" would be a good term for it.
    If you are looking for real world examples where this would be useful Chris
    to simplify and bring down the file size of a file that has got out of hand with smart Objects. Some sort of global command "embed all Smart objects" in the layer/smart objects menu would also be useful for this purpose.
    Objects of the same res and profile could then be non-destructively edited by swapping them in and out of smart objects for direct editing within the master document.
    would be particularly useful when for example you need to detach a single instance of a duplicated SO from the others.
    There is sometimes a need to return layers, and adjustments back into the master document to directly modify how they interact with their surroundings in terms of color and masking - for compositing. Its useful for simplicity to have them tucked away as SO's still
    Of course data loss due to resampling, bit depth and modes could be greeted with a warning, perhaps the warning could be contextual "this operation will result in data loss, will decrease file size by 75%, change its mode from LAB, and resample the embedded pixels to 120%".
    What happens to the smart-filters? if they are there, a choice either to rasterise them or abandon them

  • How to replace a Smart object content with folder of JPGs

    Greetings!
    Sorry if that title is not clear. I have a cover design template (see example). The image is a transformed Smart Object. I want to streamline my workflow.
    Say I have a folder of jpgs, and need to replace the smart object of the template with the new cover jpg, then save for web as a JPG comp. Repeat.
    I already have a nice "scale layer to current canvas size" script from Michael L Hale. Which would be necessary in case the jpg is larger or smaller than the Smart object's content it will replace.
    Any thoughts if this could be done?
    Michael's resize script is here: http://forums.adobe.com/thread/1233856
    Thanks
    Maxi

    Remember in that other tread I wrote you would need to take aspect ratio into account if you don't want distortion. You do not want distortion placing in images.   You also do not want to place in all image in canvas size.  If your images vary in size you do not want to replace the contents of a smart object layer for the smart object associated transform to work correctly you need the replace the embedded object with an object with exactly the same size of the original embedded object.
    Also in that other thread I gave you code from one of my Photoshop Photo Collage Toolkit.  You seem to be creating a collage. You man want to look at my Photo Collage Toolkit.
    Templates are very easy to create for my Toolkit's scripts to work, You just need to follow four simple easy rules.
    The Four Rules:
    Size the photo collage templates for the print size you want - width, height and print DPI resolution.
    Photo collage templates must have a Photoshop background layer. The contents of this layer can be anything.
    Photo collage templates must have alpha channels named "Image 1", "Image 2", ... "Image n".
    Photo collage templates layers above the background layers must provide transparent areas to let the images that will be placed below them show through.
    So your template would be easy and look like this, Red rectangle outlines my scripts.
    You would then use one of the scripts like interactive popopulate select the template then hit create collage
    The script would the open the template copy it the go to full screen show you a cyan mask as to where the next image will be placed, And put you into an interactive select image dialog.
    Once you select the script will place in the image resize and position it the put you in an interactive transform so you can tweak the position and size. The Populated collage will remain open in Photoshop.
    Documentation and Examples

  • How make Ps save its smart objects directly on the current folder project?

    How make Ps save its smart objects directly on the current folder project?

    Assuming you are on windows - Right click on the smart object layer in the layer panel and select export smart object. This will create a psb file than can then be opened later by photoshop using the normal File>Open.

  • Is there a way to open a smart object, but get the original instead of a temp file?

    Working with large amounts of images and PSD files.
    1.  We create a smart object from say, a .jpg file on a layer, then filter, etc.
    2.  Double clicking the smart object creates a new window with that object as a .psB file.
    3.  When the file is saved and closed, the .psB file is deleted.
    This is how smart objects work, we know.
    What we need to do is:
    1.  We create a smart object from say, a .jpg file on a layer, then filter, etc.
    2. Double clicking the smart object will open the ORIGINAL .jpg file
    3.  When the file is saved, the original .jpg file is saved in its altered form, and is reflected in the .psd file
    We realize that Smart objects were created for reasons, of which we are aware.
    Yet, we have several designers who use the same .jpg's but want the original to be changed so that the next developer has that changed .jpg.
    Trie thus far:
    ScriptListener cannot be used to tie it to a double click event on a smart object, because when the smart object is created it is already a copy of the original.
    Creating a variable to call the original does not 'appear' to work, because it is accessing the .psB file instead of the original .psD file.
    I think with early versions of PS there was a way to insert an image like a .jpg into a layer, and the link to that .jpg was retained. Thus, when you double click on that layer, the original .jpg is brought up to be edited, the .jpg file is now altered, and is reflected in the .psd file after finishing.

    No, not too late.
    InDesign is for layout for press in this case.
    Photoshop is for design, which is using the .jpg's.
    I'm half way there, but stuck at:
    Getting a file location reference when the .jpg is first brought into PS as a layer.
    Getting a script to write the location of the file into the medata for the PSD in some field
    Reading back the metadata file location for the .jpg and bringing it back into the PSD again.
    Any help would really be appreciated.
    I can make the completed script(s) available when its complete, as this has possibilities for other uses, batch process, and more.

  • Photoshop bug: Smart Objects overwriting other Smart Objects when edited and saved in Illustrator

    Experiencing issues when working with a large number (over 200) vector smart objects brought into Photoshop CS4 from Illustrator. 
    Things seemed to be going along nicely; if I needed to edit a Smart Object, I could double-click it, it would open in Illustrator and then I could edit and save it.  Return to Photoshop and the Smart Object is updated.  Swell and dandy.  The issue started happen when I hit a large quantity of either vector smart objects (remember, over 200) or the many layers and groups within Photoshop (must be over 500).  When I would double-click, open, edit, and save the vector Smart Object, the Photoshop Smart Object I was working on would update AND another/several other Smart Objects would update as well.  Which, of course, would ruin the artwork, as suddenly I was seeing several instances of the same object.  If it hadn't have been for ForeverSave, I many not have recovered the work.
    It's rather hard to isolate the issue to see what's causing the problem.  Here are some of the possible causes:
    Running Snow Leopard on Mac
    Many, many Smart Objects in file, perhaps enough to ruin the naming convention and cause bugs when Photoshop referenced the temp file
    Many, many Photoshop layers and groups
    Illustrator vector files copy+pasted from several different files (affects the naming convention perhaps?)
    Some groups/layers in Photoshop are duplicates
    To help make it a little clearer, you should know:
    Running the most updated software / OS (that is until CS5 comes out)
    Smart Objects showed no error until I had actually opened, edited, and saved the referenced temp file (i.e. VectorSmartObject1.ai)
    Files saved and worked on from Dropbox (network folder)
    Not looking for much of an answer to this question; I just wanted to see if anyone else had come across this bug.  Also, Adobe PLEASE look into this as you begin testing for the next update.  I have the file(s) if you need to replicate the issue.  My best guess is that the naming convention of Vector Smart Objects has an odd character limit so when Vector Smart Object 200.ai is saved, Vector Smart Object 2.ai gets overwritten.

    Have you tested this with Photoshop CS5 and Illustrator CS5? (the current versions, that came out last month)
    If you duplicated a smart object layer, both layers refer back to the same file content. So when you change the file, both layers would be updated.  That is intentional and explained in your manual.  If you didn't realize this, that could explain what you are seeing.
    If you placed separate files, then they should not be updated at the same time, because they will refer to separate files.
    Yes, Smart Objects only update when you save the file.
    You would need over 4 billion smart objects in one document to get Photoshop confused about which one refers to which file.  And since the layer limit is much less than 4 billion, I doubt that is the cause.
    There is no naming convention involved. We don't limit the filenames (except to platform standards and to include a file type extension).

  • Smart Objects mis-behaving in Photoshop 5.1?

    Hi there
    I'm using Pshop 5.1 on Win 7 64bit
    Cince Adobe introduced Smart Objects in CS2 (I think it was CS2 - I jumped from 7) they've becom I standard part of my workflow that I use all the time
    However, having upgraded from CS4 to the latest, smart objects don't seem to be working correctly - the problem is when saving them in order to return to my original image (with the smart objects contenst updated) I am asked to 'save as' - and the Temp folder is displayed - in other words, Photoshop is forcing me to save my smart object as a separate file which I'd then have to re-import into my original image, which would completely defeat the poin of using them in the first place
    It doesn't always do this..
    But I don't think it ever did it in CS4...
    Is there a Photoshop expert out there who can tell me why this is hapenning?
    Is it a bug?
    A functionality change?
    Can it be fixed?  It is a royal pain.  For example in my current image, I drag and drop an image in from a WIndows Explorer window, and Photoshop makes it a smart object - I click OK.  I then open the smart object, use the Quick Selection tool to remove white edges that I don't want, double clcik the layer to turn it from 'Background' to 'Layer 0', and apply a layer mask to remove the white background I've selected.  I then save, and instead I'ma sked to Save As, as I've described
    I'd appreciate your comment
    Thanks
    jON

    Is the original a jpeg? In that case transparency or layers are not supported, which is why you get Save As.
    If you flatten it, it should behave normally. Or better, save the original to a different format first.

  • Generate image assets from within Smart Object

    Hi,
    When designing for phones I create a large canvas with all screens spread out accross it. Every screen is a Smart Object. To me this has many advantages.
    When editing a screen I open the Smart Object. Now I turn on Generate Image Assets. I notice that no resource folder is created.
    Seems like Generating Image Assets from within a smart object is not possible.
    Is that correct? If so, why isn't the menu option greyed out?
    UPDATE: I found that you can use Generate Image Assets from within a Smart Object. But NOT if the Smart Object is part of a PSD. In other words, only if the Smart Object (psb) is a seperate file.
    I wonder why.
    Cheers,
    H

    Old thread, but I had the exact same problem.  It turns out (on Windows at least), that you can find the generated assets folder for a smart object, but you have to know where to look.
    With the smart object "opened" in Photoshop, click "Save as". This shows the location of the current smart object being edited. For me, it was: C:\Users\Jeff\AppData\Local\Temp\Layer112112121.psb
    And lo and behold, right next to the layer temp file was the image asset output folder with my generated assets in it:
    C:\Users\Jeff\AppData\Local\Temp\Layer112112121 - assets
    You can right-click and "Open in a new window" to get a file explorer window in that folder (see image below).
    (Possibly important note: Close or cancel the Save As dialog, we don't actually want to save the layer to a different location.)
    This location makes sense, but it does seem to be a poor user experience design. Presumably temp files should output their asset folders to the desktop, just like unsaved PSD files.

  • Smart Object Workflow Suggestion/Question

    Sorry if this is a noob comment/discussion I have been looking around for more info on this stuff and can't find it.
    I really love using smart objects to help me organize my workflow. But I am frustrated at the lack of control I have over how to save my smart object conversions.
    There are no settings, that I can find, in preferences where I can tell CS5 this is where I want my smart object conversions automatically saved to. (it currently uses the temp cache folder? I believe thats where it places them.)  I would like set the save location in my preference. 
    It would also be nice to organize the smart object psb files in a folder system similar to the layers in my PSD file.  keeping that consistency will allow me to go through my folder system in the same manner I go through my layers.
    Sorry if this workflow already exists. I'm having trouble finding any in depth information on saving psb files. hitting export on every smart objects is very tedious.
    Here is an example of what I mean
    PSD FILE:
    FOLDER1
    >SubFolder1>
    >> image
    >> image
    >> image
    >>>Sub_Subfolder2>
    >>>>> image
    >>>>> image
    >>>>> image
    Convert each folder to Smart Object
    SmartObject_FOLDER1
    >SmartObject_Subfolder1
    >>>SmartObject_SubSubfolder2
    PSB SAVED LOCATION:
    USER SETS LOCATION
    C:/whereever/smartfolders/
    autosave
    files structure:
    Directory
    SmartObject_FOLDER1.PSB
    SUB DIRECTORY
    >SmartObject_Subfolder1.PSB
    SUB SUB DIRECTORY
    >>>SmartObject_SubSubfolder2.PSB
    I know I can export each smart object individually but is there a preference function to do this automatically?
    Does this exist and I just don't know it?

    Check out the PS links panel here:
    http://ps-scripts.com/bb/viewtopic.php?t=3045

  • How to save properly Smart Object?

    Hello!
    I've got a file where I have 2 groups of layers (SET1 SET2)  (the first one is duplicated and made -100% (minus 100%)  width - which effects with horrizontal mirror of the first one). SET1 have texts, and as you may guess the mirrored groups of layers (SET2) has texts mirrored which I need to make readible (revert them back). That's why I made text layers as Smart Object and when I open this object I can rotate text back, but saving the Smart Object and returning back to the project gives me proper text on SET2 but rotated again SET1. I guess the Smart Object's in both sets are somehow related to each other. Every time I change something in one make an impact on the second. I noticed that even I save my Smart Object with some new name, to the directory I created for the project, it doesn't seem project choose that one in the project directory, but one from TEMP folder in windows root system. I thought to name them separately and load them to loose that relativeness. But I try and I try I do not know how to do it, how to make them independent.
    Any ideas?
    Kindest Pawel
    //I had to use Smart Object as Layers are transformed with Perspecitve transform tool, and vector objects (like text) can not be perspective transformed...and I can not in fact rasterize those Smart Objects as the project is a template to edit by others. If I rasterize them anybody could not change text layers anymore...
    I am getting to be sure, that's immpossible:/

    omg, somehow I did it. It seems that 'New Smart Object by Copy' breaks that relativness, but I am not quite sure as I tried to did it before withou success. Anyway, I am on the track again:)
    Thanks for listening

  • Open as linked smart object

    Hello,
    iam looking for a solution to open files in a folder
    and copy then into a document.
    Its working good, but i need the files to be linked smart object.
    Anyone knows a solution ?
    Here my Code so far:
    See in line 33. Convert to smart object: ?
    var file = new File('C:/User_MY PATH.PSD'),
    docRef = open(file);
    // Use the path to the application and append the samples folder
    var samplesFolder = Folder('C:/USERS_MY FOLDER');
    //Get all the files in the folder
    var fileList = samplesFolder.getFiles()
      // open each file
      for (var i = 0; i < fileList.length; i++)
      // The fileList is folders and files so open only files
      if (fileList[i]instanceof File)
      open(fileList[i])
      // use the document name for the layer name in the merged document
      var activeDocName = app.activeDocument.name;
      var targetDocName = activeDocName.substring(0, activeDocName.lastIndexOf("."));
      // Copy the Document
      app.activeDocument.selection.selectAll()
      //convertToSmartObject(); THIS ISNT WORKING - CONVERT IT ?
      app.activeDocument.selection.copy()
      // don’t save anything we did
      app.activeDocument.close(SaveOptions.DONOTSAVECHANGES)
      //Select specific layer to paste the copy, this is to make sure the layers are in a specific position
      var doc = app.activeDocument;
      doc.activeLayer = doc.artLayers.getByName("bgr");
      //Paste Document
      app.activeDocument.paste()
      app.activeDocument.activeLayer.name = targetDocName

    Use scriptlistener:
    var idPlc = charIDToTypeID( "Plc " );
        var desc2 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
        desc2.putPath( idnull, new File( "C:\\Photos\\myPhoto.psd" ) );
        var idLnkd = charIDToTypeID( "Lnkd" );
        desc2.putBoolean( idLnkd, true );
        var idFTcs = charIDToTypeID( "FTcs" );
        var idQCSt = charIDToTypeID( "QCSt" );
        var idQcsa = charIDToTypeID( "Qcsa" );
        desc2.putEnumerated( idFTcs, idQCSt, idQcsa );
        var idOfst = charIDToTypeID( "Ofst" );
            var desc3 = new ActionDescriptor();
            var idHrzn = charIDToTypeID( "Hrzn" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc3.putUnitDouble( idHrzn, idPxl, 0.000000 );
            var idVrtc = charIDToTypeID( "Vrtc" );
            var idPxl = charIDToTypeID( "#Pxl" );
            desc3.putUnitDouble( idVrtc, idPxl, 0.000000 );
        var idOfst = charIDToTypeID( "Ofst" );
        desc2.putObject( idOfst, idOfst, desc3 );
    executeAction( idPlc, desc2, DialogModes.NO );

  • Open as "Smart Object" from ACR to PS questions.

    I have 2 questions associated with opening from ACR as a Smart Object in Photoshop. I'm using CS4.
    1. Is there a way to retrieve the original filename (complete with path) using a script or a setting somewhere to do this? I'm currently using Bridge Talk to ask Bridge what the active folder is then adding that to the document's .name property and taking off the " as Smart Object-1" part. Then I add a .psd extension to it and then I have to save it to retain that name unless there's an answer to #2 below.
    2. Is there a way to change the Document's name as described above from "Filename as Smart Object-1" to "Filename.psd" without actually saving it?
    It seems to me there would be a simple way that I might be overlooking here.
    Thanks
    Mike

    Sorry, I guess I need to explain better.
    I wrote a script to do this, but here is this portion of the workflow:
    1. Open CR2 file in ACR and make adjustments.
    2. Open as Smart Object in PS.
    3. Script Events Manager activates this script on Document Open, checks to see if it was opened as a Smart Object. We'll assume it did.
    4. The script asks me if I want to make another layer. I pick yes. The script copies the SO layer, sets an inverted mask, and opens to edit settings in ACR again.
    5. I adjust the settings for that layer in ACR and click OK.
    The script will keep looping between 4 and 5 as long as I pick YES.
    This gives me more local control of areas. If I want to bring out eyes a bit, I can up contrast, saturation, sharpness, brightness, exposure, or whatever looks best for the eyes in ACR, then unmask the eyes as much as I want on that layer in Photoshop. There is more data to pull from in the RAW file vs trying to do the same thing within Photoshop.
    Opening as a regular image file then converting to a SO doesn't give me the same control. I would have to reopen the file separately, make the adjustments in ACR, open to PS then copy that document and paste as a new layer in the original.
    Duplicating the document might work also, but I can also just save as .psd at that point since I'd have to know the path name by then anyway. I'll give that a try, though, and see if it might work better. The only catch with the save part is it slows me down waiting for it to write the file and if I have 5+ SO layers, it takes awhile. Once I unmask where I want, I flatten to a rasterized layer and continue.
    Thanks

Maybe you are looking for

  • Automatic updation of planned delivery time in material master.

    Dear all, Is it possible to update the Planned delivery time in the material master automatically by the system based on goods receipt date. what customisation needs to be done. Regards, Dayanand

  • Having trouble with links to specific destinations in pdfs

    I'm trying to create links from a web page to specific locations (destinations) in a pdf. I make the destinations in Acrobat, then I create the links in the web page (for example, userguide.pdf#intro), and they work perfectly in IE and Opera but not

  • Please help -- weird error-- DVD won't burn.

    Hi, I have a brand new mac pro, and I'm using the most recent version of DVDSP. I get the following error when attempting to burn a Dual Layer DVD when it's in the formating stage: "The recording device reported the illegal request: Unknown device" a

  • Unicode and Non-Unicode Instances in one Transport Landscape

    We have a 4.7 landscape that includes a shared global development system supporting two regional landscapes.  The shared global development system is used for all ABAP/Workbench activity and for global customization used by both regional production s

  • Where can you get more Dashboard Widgets?

    The Apple Dashboard site is not been updated for 2/3 years now and i know a lot of people still using the dashboard. Why is Apple not allowing Dashboard Widgets been uploaded in to Mac App Store? Why is Apple not updating Dashcode for years? And wher