Should layerTime change on file save?

I'm attempting to use the per-layer change times mentioned in http://blogs.adobe.com/jnack/2008/10/per-layer_metadata_comes_to_photoshop.html. The sample code at the end of the article contains the following jsx to access the layer change times:
function getLayerChangedDate(){
          var metadataStrID = stringIDToTypeID("metadata");
          var ref = new ActionReference();
          ref.putProperty(charIDToTypeID('Prpr'), metadataStrID);
          ref.putEnumerated(charIDToTypeID('Lyr '), charIDToTypeID('Ordn'),
                                                                                                                                  charIDToTypeID('Trgt'));
          var desc = executeActionGet(ref);
          if (desc.hasKey(metadataStrID)){
                    var descMetadata = desc.getObjectValue( metadataStrID );
                    var timeInSeconds = descMetadata.getDouble(stringIDToTypeID("layerTime"));
                    var d = new Date();
                    d.setTime(timeInSeconds*1000.0);
                    return d.toLocaleString();
I have a psd with two layers in it, each containing a single color rectangle. When I first open the psd if I run the above function from the ExtendScript Toolkit, they both have the same layerTime. If I change the color on one layer, its layerTime updates to the current time and the other layer's layerTime stays at the original time. All good. If I save the file, they remain correct as long as I don't close the file.
However, if I reopen the file after saving, the layerTime for both layers changes to the time at which I saved the file. As far as I can tell, the layer change time extracted by the above code always updates to the file save time, even if a layer doesn't change when saving or if it changed well before saving. Is there another way I should access layer change times? Am I misunderstanding how layer change times work?

I played around with this a bit more since it wasn't happening for Michael. It looks like the "update layerTime on disk but not in memory" behavior only occurs if I change some document-wide setting while not changing the layer. In my initial tests, I was changing the foreground color. The sequence was something like:
Get an initial layer changed time
Change the foreground color to change an unrelated layer's color
Check that the time for the layer from 1 hasn't changed
Save
Check that the time for the layer from 1 hasn't changed
Close and reopen the document
Check that the time for the layer from 1 updated to the time of the save
Doing some more testing now, I can cause the layerTime to be updated on save with switching the tool I'm using in addition to switching the foreground color. I'm guessing any document-wide change causes the layerTime to be changed in the psd but not in memory.

Similar Messages

  • File save preferences in GB.

    Quick question. Just got an external firewire drive. How do I change the file save preferences to get GB to save automatically to the external drive?

    There are no preferences, simply create or move your projects to the external drive. --HT

  • I uploaded and edited my RAW image, clicked 'Save As', and changed the file type from .psed to .jpg.

    I edited my raw image in Photoshop CS6, selected 'Save As', and changed the file type from .psed to .jpg. I also selected 12 and large file when the window popped up, concluding my 'saving as'. My computer does not recognize the file type and won't open them. Can someone help me? Thanks!

    When naming files, stick to the letters of the ENGLISH alphabet, numbers and underscores.  Do not use illegal characters like apostrophes, commas, asterisks, ampersands, hatch or pound signs, diacritics or accented characters, slashes, etc.
    While the period (dot) is not an illegal character per se, your file names should have only one period and that should always be followed by the file type extension.
    EDITED typo: se
    Message was edited by: station_two

  • When I try to File Save As on an .FLV movie, Firefox automatically changes the filetype to .mp4 while Chrome for instance retains the .FLV file type. I wanted to see why this is and how it can be fixed to work similarly to Chrome. Thanks.

    When I try to File > Save As on an .FLV movie, Firefox automatically changes the filetype to .mp4 while Chrome for instance retains the .FLV file type. I wanted to see why this is and how it can be fixed to work similarly to Chrome. Thanks.

    If that file is an FLV file then Firefox should save it as such and not change the file extension.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    See also:
    *http://kb.mozillazine.org/File_types_and_download_actions
    *https://support.mozilla.org/kb/Managing+file+types

  • How to change the default save encoding of the dvm files when create dvm???

    When I creating a DVM(domain-value mapping) in Chinese on the ESB control and confirm it, then restarted the SOA service, the DVM that I created in Chinese disappeared from ESB control. All the maps(both English and Chinese ) are in DVM Repository.
    After I updated the encoding from ‘UTF-8’ to ‘GB2312’ in the three files below, and restarted the SOA service, the DVM in Chinese appeared on ESB control.
    But when I adding the second row in Chinese and save it, then restart the SOA service, the DVM in Chinese disappeared from ESB Control once again. Because the encoding in the three files below is updated from ‘GB2312’ to ‘UTF-8’ .
    Files:
    C:\product\10.1.3.1\OracleAS_1\integration\esb\oraesb\artifacts\store\metadata\files\dvm.def.xml
    C:\product\10.1.3.1\OracleAS_1\integration\esb\oraesb\artifacts\store\metadata\files\dvm\Chinese.xml.def.xml
    C:\product\10.1.3.1\OracleAS_1\integration\esb\oraesb\artifacts\store\content\files\dvm\Chinese.xml_1.0
    How to change the default save encoding of the dvm files when create dvm in ESB control ???

    I have the same problem.  When I updated to Mavericks now the bookmarks bar font is huge.  I liked it the way it was before.  I liked the smaller font.  Also wish I could change the color of the sidebar and font/folders too.
    I tried to see in preferences if there was anyway to change it, but I don't see anything there.

  • Change name of open PDF file - Edit the file - Save OK

    Possibility to open a PDF file, change its name in the Finder, edit the PDF file inside (eg., using the yellow fluorescent marker) and then save it.
    Now you cannot do it because you get an error.
    Yet, that can be done virtually on any other Mac application.
    Thanks.

    I change the pdf file & word file rename But I facing the problem. and problem is i change the rename pdf file and show is error (If you change a file name extension. the file may become unusable. are u sure you want to change it.)
    then after enter pres file change on jpg file . Pls solution this problem urgently.
    Thank You
    regards
    Sudeep Sharma
    [email protected]

  • List of downloads is blank after I changed the file to save to. How can I restore the list of downloads?

    I have already tried the all the steps in this link.
    '''http://support.mozilla.com/en-US/kb/Downloads%20window%20is%20blank?s=+downloads+list&as=s'''
    I have changed the file to save to back to the original one as well.

    Try opening the problem files using a text editor or file viewer to see what the first few bytes contain. All valid FM binary files for FM 11 will contain <MakerFile 11.0> in the first bytes of the file.
    When updating books, it's sometimes better to just to create a new book file and add the files to that.
    When renaming files in a book, changes at the system level will break any links/cross-references between files, so it's always best to use the Rename option in the Book file to change FM file names. This will maintain the correct linkages.

  • Finder changes the file name in Save/Save As dialogue box

    Whenever I save or save as a file, the dialogue box opens, but when I make the file list active when using a mouse, the file name I click to changes the file name I am saving. I simply want to activate the file list window so I can find the right folder. For example if I am looking for a folder called "Receipts" I want to be able to click on the file list window to activate it and then type the first 2 letters of the folder-- "re" and then save the file in that folder. The finder keeps changing the name of the current file whenever I click on one of the "greyed-out" file names? This doesn't make sense unless of course I want to replace that file.
    Is there a shortcut that makes the file list window in the dialogue box active while in the SAVE/SAVE AS dialogue box??

    Yes, this example of horrible UI design has been a problem since "Panther". It illustrates what happens when you try to copy UI behaviour from another OS, do it poorly, and end up with a mess. In 10.3 and 10.4, the combination of the renaming behaviour with the default "replace" selection in the resulting save can result in data loss.
    Compared to the old Mac OS where a tab would flip the focus between the text field for the file name and the file browser, the current behaviour either doesn't allow enough keyboard access to controls, or with "full access" enabled, too many to cycle through easily. The inability to switch focus to the file browser using the mouse (depending on the view) is a horrible productivity loss. Having to recheck the filename before saving is a horrible productivity loss. Since there is no "undo" for the renaming in most files, having to retype the name is again, a horrible productivity loss.
    If they had done it right (a simple change, like requiring a modifier to rename), users would probably welcome the "rename" feature as a useful addition. Instead, it has the feel of something a junior Windows-trained programmer slipped in past their supervisor.
    In short, I am not aware of any workaround or hack to avoid this "renaming" behaviour. I doubt it will do any good since people have been doing so since "Panther", but you could try submitting feedback:
    http://www.apple.com/feedback/macosx.html

  • I am using a Mac Mini. I want to change the file size  in iMovie to MPEG so I can burn the move  to  a disc. There is no "save As" that I can find . What do i do?

    I am using a mac mini. I want to change the file size in iMovie to MPEG so I can burn the movie to a disc. There is no "Save As" that I can find. What do I do?

    Stanley Fayer wrote:
    ... to MPEG so I can burn the movie to a disc. ...
    to create standard-conform DVDs = playable on any DVDplayer, there's much more to do than just converting to mpeg(2)...-
    you need a DVD-authoring app, as iDVD, Burn, Toast ........... drag any iMovie export into it, 'burn'.

  • What parameters should be changed in context file of oracle apps

    Hii..
    what parameters should be changed in context file of oracle apps(R12.1.3) for 250 users and pfile parameters of database

    But i came to know we need change parameters like s_oacore_nprocs,MaxPermSize,-Xmx for Forms and Oacore in Context file of apps, based on number of users .Is it correct???Yes.
    JVM: Guidelines to setup the Java Virtual Machine in Apps Ebusiness Suite 11i and R12 [ID 362851.1]
    Configuring various JVM tuning parameters for Oracle E-Business suite 11i and R12 [ID 567551.1]
    Oracle EBS R12 Context Variables [ID 458282.1]
    Increasing Number of JVMs Allocated to oacore Process Causes Login Problems [ID 731115.1]
    After Increasing the Number of OACORE OC4J Processes to More Than 5, adoacorectl.sh is Exiting With Status 204 [ID 1177323.1]
    How To Determine The Number Of Java Virtual Machines (JVM's) Started By Oacore Used By Oracle Payments [ID 1372586.1]
    Thanks,
    Hussein

  • How to block displaying message "Save changes to file 'Test1' " in BEx?

    Hello, dear colleagues!
    Do You know how to block displaying message "Save changes to file 'Test1' " in BEx?
    I need some BEx setting which can block it and make it the same way as You close common Excel workbook without any changes made to it after opening e.g. without any messages, just clicking the cross. 
    Thank You all very much in advance!
    Val
    Edited by: vtb777 on Nov 21, 2011 1:46 PM
    Edited by: vtb777 on Nov 21, 2011 1:50 PM
    Edited by: vtb777 on Nov 21, 2011 1:52 PM

    from time to time i am working with macroses, but they are not good for the report's reliability.
    maybe You have some example of such macros?
    UPDATE:
    I have tried to edit event, called WorkbookBeforeClose in module BExEventHandler, adding there such a line:
    Application.DisplayAlerts = False
    but no result. maybe there are some other ways of solving this problem?
    Edited by: vtb777 on Nov 22, 2011 6:26 AM
    UPDATE-2:
    I got such a code, but it doesn't work:
    Private Sub Workbook_BeforeClose(Cancel As Boolean)
    If MsgBox("Save changes to file? " & Name, vbYesNo, "") = vbNo Then
       Cancel = True
    End If
    End Sub
    Edited by: vtb777 on Nov 22, 2011 11:07 AM
    Edited by: vtb777 on Nov 22, 2011 11:16 AM
    Edited by: vtb777 on Nov 22, 2011 11:20 AM

  • Unsaved Changes in File:[File name] Save before closing?

    Hello!
    FM 9 on Win 7 Pro.
    I am a long-time FM user.
    I am trying to open files that I could successfully open before I left work yesterday. I can open FM, and open FM books. When I try to open an FM in a book, or an FM file not in a book, I get this message:
    "Unsaved Changes in File:[File name] Save before closing? Yes No Cancel.
    It doesn't matter which one I pick (Yes, No, Cancel), FM next shows this message:
    FrameMaker 9 Application has stopped working. Windows can check online for a solution to the problem.
    Check online for a solution and close the program
    Close the program.
    View problem details
    It doesn't matter what file I try to open (recently worked on files, and files I haven't touched for some time). Same messages, no matter what.
    I have tried to update the book (the update seems to happen), saving the changes, and then try to open. Same error messages. I had hoped that updating the book would clear any possible cross-reference problems.
    I have tried several re-boots, nothing works.
    Help!
    Thanks in advance for any and all help!
    Terri

    Since its happening with every file, my suspicion is that your application data is corrupted. Try this:
    close down framemaker.
    delete the following directory: C:\Users\[user]\AppData\Roaming\Adobe\FrameMaker\
    reopen framemaker and see if the problem is reproducible.

  • Should I delete preview files to save space on my hard drive?

    Should I delete preview files to save sapce on my hard drive? At times the program crashes and I wonder whether I should get rid of these files to make more space.

    PCNoviceMesa
    Yes.
    If you run a SD project (whether you render stills or videos) and render, you are going to get DV AVI files automatically generated. If it is a HD project, rendering deposits MPEG2.mpg files on your hard drive (whether you render stills or videos). We are talking possibly GB amounts of files if you let them pile up long enough. For Windows 7, 8, or 8.1 64 bit, these preview files are by default in Libraries/Documents/Adobe/Premiere Elements/12.0 and in the Adobe Premiere Elements Preview Files Folder there.
    First let us see how much is piled up there before we take action against them.
    If the preview files there are part of an existing project or projects, the consequence of deleting those files is that you will have to render again that content in the project to get the best possible preview. If the preview files represent project long since gone, good riddance.
    Please check out the situation. And, then we can discuss also pile ups of conformed video and conformed audio files.
    More later.
    ATR

  • Cannot save changes to files on raid

    Background - G5 xServe, xRAID - 6 Folders shared out to mixed environment, OS X, XP Pro and Vista. I am in the Administrators group and have full access to all folders on RAID. Admin group has four members 3 on Vista 1 XP. I can open and change/delete/create new from my Mac Pro without a hitch.
    We can all read files, but we cannot open a file on the raid and make a change and save from Vista - X and XP are fine. Have tried everything under the sun for Vista file sharing issues and I hate to say it, it doesn't appear to be Vista.
    If I open a Excel file change one cell and then try to save i get the following message " Access Denied. Contact your Administrator" or "Destination Folder Access Denied". On all of the shared folders with the exception of one. That folder I can change whatever I want and save.
    The ACL and POSIX look to be good and match for the administrators group.
    I have no problem dropping the file on my desktop and then opening and making changes and copying back to the shared folder, but our CIO would prefer to make the simple changes and then save it without the extra steps.
    Before anyone bashes Vista, the error message indicates that it coming from the shared folder and is getting it's information/permission from there.

    I found the answer in another post - here is what I did. Stop SMB service, opened up my favorite text editor and navigated to the /etc/smb.conf file and added the line *acl check permissions = no*. Restarted SMB service, logged in from my Vista box and saved changes without a hitch.

  • Click on download of pdf opens adobe acrobat reader, but then clicking on file save-as does not give a dialog box to change the name or location where it is sav

    Using Firefox 19.02
    When I receive an email with an Excel, Word, or PDF file attachment, and I click download, firefox opens up the associated program for all my users, however when you click on file>save-as you are not presented with the dialog box to perform a save.
    Excel and Word, no fix at all. Other than different browser or to click download, right click and go to folder, and then copy it out of there to another folder and open it.
    Help, what is going on here????
    Gordon rutherford

    BTW: using Adobe Acrobat Reader XI

Maybe you are looking for

  • MIRO reversal problem

    Hi Friends, One of client has wrongly done a MIRO.  When they are doing customs duty MIRO, they wrongly choosen currency as USD instead of INR.  Neverthless the entry has been posted in USD as follows:  Customs clearing account Dr.  xxxxxx USD to Com

  • How can I find out what extensions (not plugins) are currently installed using JavaScript?

    I am creating a JavaScript module which detects if a Firefox extension is installed in the client's browser. I can check if a Firefox plugin is installed by querying navigator.plugins object, but I can't figure out how to do this for extensions.

  • Smart shapes and caption styles

    The default Halo Blue caption style has a pleasing 3-dimentional look with shading, but the pointer on it is not resizable. The smart shapes give the ability to resize the pointer, but they look very flat. Is there a way to add the shading of Halo Bl

  • Access rights , privileges on XML DB

    Hello, I would like to know where can I find information about implementing security and access rights. I have 5 folders under SCOTT/TIGER schema and would like to asign access rights to different user , ie user A can access folder A only, user B can

  • Audio software not installed. Help needed

    Hello, I recently did a re-install of SL 10.6 on a Mac mini. The audio device doesn't work, seemingly. The output device for sound in System Preferences > Sound is for 'Internal Speakers' only, there is no other device. Please advise if I can 'get' t