Change file access date

Anyone know how to change a file's access date? There is setLastModified() in the File class but I don't see anything for access date.

a\Access date is just the date you last opened it. To set it, you can open it, and it will set it to todays date.

Similar Messages

  • Image file access dates changing in mass (Windows).

    In review of the access date properties for image files within a directory being accessed by Bridge within the Favorites area, they are all changing to the current time and date, even if the image is not viewed within Bridge.  Why are the access dates of image files being changed even though they are not viewed?  This makes it hard to determine whether an image can be archived or deleted based on last access if Bridge is always changing the access date every day.  Thanks for any insight you can give on this!

    Is there a way to turn off the caching of thumbs or metadata or whatever is causing the Access date to change when searching or reviewing images within a directory using Bridge?
    As said, no experience with network environment. But Bridge is a browser and when you want to view things it needs to cache the file and data first.
    Having said that, in normal usage (stand alone) it stores and saves this data in the cache folder and once it has done so it will not need to recache until you have made changes to the file. Check Bridge prefs / Cache/ Location  to see where the data is stored when you are using this machine.
    By default on a stand alone Mac (windows seems to have a similar cache file) it should be in the User Library/ caches/ Adobe/ Bridge CSxx and inhere is a plug in and a folder called Cache, containing several folders.
    For Bridge CC there are 4 folders, 256 (the cache files of the thumbs) 1024 (containing HQ preview cache files) data (what it says) and full (containing the 100% previews in cache)
    All files that have been fully cached (pointing to a folder the content window should show already good thumbs and the activity bar bottom left in Bridge window should not show any activity, only the number of items showing and items hidden) don't need to recache for that machine again unless you changed something to the file or added metadata.
    So once cached there should be no reason for Bridge to 'access' the file again unless access means looking for the file to check if the saved data still applies to the corresponding file on your machine, but then al files should show about the same access time because this is a very fast process on a fast machine.
    You can't deselect cache because as said Bridge is a browser showing the content of your files, and to show this it has to generate a thumb and if needed a preview. But as also said, once cached it normally should not start recaching until changes are applied.
    You have several ways to set the quality of the cache:
    There are two checker board icons top right that give you the option to set for cache. By default it is set to 'Always HQ' to have both good thumbs and a good preview when pointing to a file.
    Then you also have to option to generate 100 % previews which provides you with almost instant 100 % previews for loupe in preview panel or full screen view and click. Logically this needs more time and generates a lot of big cache files, all depending on the files you start with and the size of your monitor.
    Finally you have the option to use embedded previews only. This is a very quick method but provides low quality thumbs (black border around it) and when clicking on a thumb it first needs to generate a HQ preview that then will take time.
    In Bridge prefs advanced there is the option to create also monitor sized previews which should provide you with good quality full screen when using space bar in Bridge to preview in full screen.
    This setting also creates a bit larger cache files in the 1024 folder depending on the size of your monitor (logical).
    And if you want to apply a search using the find command you also have to include non indexed files to search in all folders, including the not before cached files.
    Like first time cache this first indexing takes some extra time but should only need to be done once and then be persistent until you add new files or folders that have not been cached or indexed before.
    Until so far the theory for a stand alone. If you have the files stored in a Network and other stations have access and have different cache settings or monitor size settings there might be some other things going on, or someone else has changed the file on their station and then when you select that folder Bridge needs to recache the changes.
    Hopefully this makes some sense for you?

  • Run Batch OCR Without Changing File Modification Date

    I'm running Acrobat X Pro (as part of CS6) and would like to batch OCR all of the PDFs on my PC (probably over 1,000 files) without changing the "modify" date of the files (otherwise they will all change to the date of the OCR, which will make it more difficult to find files when sorting by date because they'll all come up as the same date).  Is there a way to do this?
    If I've posted this in the wrong place, please tell me where to post it.
    Thanks!

    No. The modification date is a system function and requires access to the file info in the file directory to change, not something that programs normally do. There are programs that allow changing the dates, or used to be anyway. All I know to do is to create a text file with a directory of the PDF files, then go back and change the dates back to those dates. It has been a while since I have played with file dates, but it might be able to be automated (though probably with a fair amount of programming skill).

  • Change file access in FTP

    Hi, i'm new in java and i'm trying to make a program that moves a file to a FTP server, I already made that part of the program.
    but i'm having problems finding the way of change the access of the file, when was already moved it.
    This is an example of the code that i'm using to do the first part.
    import java.io.*;
    import java.net.*;
    import java.util.*;
    public class FTPConnection {
    public boolean connect(String host)
    throws UnknownHostException, IOException
    return connect(host, 21);
    public boolean login(String username, String password)
    throws IOException
    int response = executeCommand("user " + username);
    if (!isPositiveIntermediateResponse(response)) return false;
    response = executeCommand("pass " + password);
    loggedIn = isPositiveCompleteResponse(response);
    return loggedIn;
    public boolean uploadFile(String serverPath, String localPath)
    throws IOException
    return writeDataFromFile("stor " + serverPath, localPath);
    public boolean changeDirectory(String directory)
    throws IOException
    int response = executeCommand("cwd " + directory);
    return isPositiveCompleteResponse(response);
    I already have the code to take the file and move it to the server but i can't find the way to change the access.
    I hope someone can help me with this thanks.

    I already tried to use chmod but it doesn't work this is the example that i made
    public boolean changePermissions(String Path)
    throws IOException
    int response = executeCommand("chmod 777 " + Path);
    return isPositiveCompleteResponse(response);
    but the file continue with the same permission. So i was wondering if i'm doing something wrong or is other way to do it.
    Thanks for your help

  • Changing file access

    hi ,
    how to change read only access file to writable file ?????

    Permission objects (e.g. FilePermission) are
    immutable. I don't know of any way within the 5.0
    JVM/core classes to change file permissions.So I guess the only way I can think of is by using Runtime.exec() and run the command for the specific platform you're on (e.g. chmod on unix/linux) to change the rights. Not a nice solution though.

  • Changing file access permissions?!

    I have a MacBook Pro retina running os x mountain lion, if that helps any of you guys answer this question. I recently took a screenshot of an area of the screen using the command-shift-4 combination. When i was trying to open it, though, an  error came up saying that i didnt have the permission to open the file. It told me to got to get info and change file permissions.
    How do I change file permissions and why does it say this in the first place??
    Thanks,
    RZ

    Doing a screen shot creates a file on the users desktop which they should already have permission to use.
    So if it's saying you don't means there is something else wrong with your machine.
    Do these to things first.
    1: #6 Repair Users Permissions (this will fix the in user folder permissions)
    2: #12 OnyX (free) cache cleaning and will repair OS X permissions.
    ..Step by Step to fix your Mac
    What is basically going to happen is your going to reset the permissions of all files on the machine back to what they should be and not what something caused it to become off.
    Doing all the OnyX steps in Maintainence and Cleaning is going to reset everything else in the system like caches etc., so it's like it just came from the factory which will cause those caches to rebuild anew and free of corruption that might have occured.
    OnyX also has flags as it checks the drive for other issues, thus gives you a warning of other potential problems.
    Make sure you have backups of your users files off the machine to a storage drive (not only TimeMachine) before you atempt any repairs as all the remaining software can be replaced except your files in case it turns out your problem is much larger than anticipated.
    Most commonly used backup methods

  • How I can change file time & date stamp?

    I need to change date and time info of my text file.
    Is it possible to do with labview? My application
    check the File/Directory info - last mod (U32) and
    some cases I need to change this info.
    Tapio

    There are quite a few windows version of the unix touch command which will do exactly what you need.
    I'm sure there is a way to call it even within LabVIEW, using "system exec". You might even be able to call cygwin1.dll using a "call library node" (I have not tried this).
    - There is the full featured cygwin environment for windows. "touch" is in fileutils.
    - There are also simple ports such as Touch For Windows.
    (quote from this page:
    What Does It Do?
    For those who don't know, here's a simple explanation: It updates the dates associated with a fi
    le to whatever you want it to be. It can change access, modification and creation dates. You as a user can update them independently of each other, you can update them with any possible date. Dates can be now, user specified or copied from another file. If you try to touch a file which does not exist, this command will create it for you (empty of course)." )
    LabVIEW Champion . Do more with less code and in less time .

  • Off Topic: Change File Attributes (date)

    Hi All,
    Sorry this is off topic but I need a quick fix. I need to
    change the date stamp on a set of files within a directory. Anyone
    know a quick trick? Just need to mark all files with today's date.
    We are restricted on freeware and shareware on site, so would
    rather do this without downloading third party software.
    thanks
    Craig

    Yeah I could do with a fix too, it's that sort of a day!
    You are old enough and ugly enough to remember DOS. I think
    you could change it there. In Windows I think you are restricted to
    using third party software. I have a good programme. Want to drop
    by here lunchtime with all the files on a memory stick?

  • Change file access

    Hello, how can I set access for /dev/console if I want to work with it as regular user.
    I tried different arguments for chmod (a+rw in main), but after reloading it resets.
    $ ls -l /dev/console
    crw------- 1 root root 5, 1 Jan 14 20:44 /dev/console
    What is the right way to change acces for that file?
    $ groups
    wheel network video audio optical floppy storage camera users
    Last edited by Ockonal (2011-01-14 19:09:00)

    Ockonal wrote:moetunes, okay, but anyway I can't edit it with regular user even before reloding computer.
    I did
    sudo chmod -v a+rw /dev/console
    and now permissions are
    crw-rw-rw- 1 root root 5, 1 Jan 14 15:45 /dev/console
    do your permissions change but you still can't write to it or do they not change at all?

  • How do you change file creation dates

    Is there a way to edit file creation and modification dates in a file?  Thanks.

    In the Terminal:
    man touch
    setfile

  • Scripting a file name change as a data merge element.

    My goal of the work being done with InDesign is to utilize the Data Merge functionality of InDesign and the, already available, ability to create a new document per record in your data source where the docuement name is changed based on data contained in the data source.
    A very simple example of this would be the following:
    EXAMPLE
    ======================
    Given the following data source in excel:
    First_Name
    Last_Name
    ResultingFileName
    George
    Smith
    c:\A45.pdf
    Mary
    Lopez
    c:\C99.pdf
    Steve
    Barns
    c:\tmp\XM96TR.pdf
    Along with a simple two text box InDesign documents, I would perform a standard data merge with First_Name linked to one text box and Last_Name linked to another.  By setting the “Record Limits Per Document” to 1, I would end up with three different documents.  By default, the documents would be named Untiltled-1, Untiltled-2 and Untitled-3. 
    Untitled-1 would contain George and Smith.  Untitled-2 would contain Mary and Lopez and Untitled-3 would contain Steve and Barns.
    At this point in time, I would run the new created script, which would do the following:
                Rename Untitled-1 to A45 and/or save Untitled-1 as C:\A45.pdf
                Rename Untitled-2 to C99 and/or save Untitled-2 as C:\C99.pdf
                Rename Untitled-3 to XM96TR and/or save Untitled-3 as c:\tmp\XM96TR.pdf
    I am open to modifying the manner in which the data merge source is created.  For example, separating the path and the file name into separate columns.  In addition, I am flexible in putting preset information and/or file save types into the data merge document.
    Please feel free to contact me directly at [email protected]
    Thanks in advance for the help.
    Matt

    Hi Matt,
    I think it’s better to use an XML-based approach for your task.
    I’ve never scripted Data Merge process, but I don’t see a straightforward way of doing it. May be you can create the 3rd textbox on pasteboard or a non-printing layer, which will contain the file path from ‘ResultingFileName’ field, and the contents from which can be used for naming & saving the current file and exporting it to pdf-file. But this approach is so clumsy.
    Instead, you’d better to keep your data in excel file, or even better Access or some other database program.
    Export the data from it in XML-format.
    Then import it to an InDesign file and process it by script. XML support is very powerful in InDesign: you can process your data by xml-rules. I once made a script for a newspaper, which processed data for classified ads. The script applied all formatting, changed colors for different headings and placed images.
    Kasyan

  • Student file & master data change according to authority

    Deal all,
    I have following requirements about student file and master data that certain IT are not displayed when i do not have authority.
    for example, if A student is belong to my department, IT1702 must be dislayed but student B is not belong to my department IT1702 must be disabled or must dissappear.
    if i can adjust student file & master data according authority (student belong to my department or not) it would be very nice.
    regards,
    jin dal

    Hi,
    The authorizations checks in Campus Management consist of the basic authorization and the structural HR authorization.
    The basic authorization determines whether the user is allowed to execute a certain function, while the structural authorization determines the objects for which the user is allowed to execute this function. In other words, the basic authorization defines what function the user is allowed to use, and the structural authorization defines for which objects the user is allowed to use this function.
    For example, the basic authorization can define that the user is allowed to perform the create module booking activity. With the structural authorization you can restrict this activity only to modules offered by the faculty of Mathematics, for example. (The user can then access these modules whenever required; see also Structural Authorization).
    Basic Authorization
    In release CM 4.64, three authorization objects are used in Campus Management:
    At the first level is the transaction code check. The system performs this check each time the user starts a transaction using the menu or command line. For this check to be successful, the user requires an authorization for the relevant transaction code in the authorization object S_TCODE.
    At the second level, the Campus Management function is divided into two parts. The first part includes activities such as create request, create registration, create re-registration, cancel module booking, and so on. The second part covers master data like student master data and a major part of the academic structure.
    When checking the authorizations for master data, the system uses the HR authorization object PLOG for master data authorization checks. A new authorization object ( P_CM_PROC) has been implemented for activities in release CM 4.64. The system now only checks whether the user is authorized to use the activity. It no longer checks if the user is authorized to read or change the data in this activity. The new authorization concept has the following advantages:
    It simplifies authorization assignment. The system no longer uses the comprehensive data model with its many objects and object interrelationships as the basis for the activity authorization (authorization assignment via authorization object PLOG);
    Changes in the data model have no effects on the authorization checks for activities;
    It is now possible to distinguish between create and change operations, for example in re-registrations;
    You can now distinguish between re-registrations and leaves of absence.
    The table T7PIQPROCESS (Activities) contains all Campus Management activities. The system performs authorization checks for all activities with the exception of the ones listed below.
    Authorization checkes are not performed for the following activities:
    AC10 (Send Reminder for Outstanding Payments)
    HSMA (Create Status Indicator Manually)
    PR11 (Create Applicability List Automatically)
    These activities do not contain any activity-related authorization checks.
    In the standard system, the authorization check for activities is independent of the objects for which the activities are performed, and of their attributes. (The structural authorization only restricts the objects which the user can then process irrespective of the activity.). If you require additional checks, you can use the business add-in HRPIQ00AUTHORITY.
    Structural Authorization
    The structural authorization enables you to define the set of objects the user is authorized to process. You determine these objects using evaluation paths. You can define whether the user should only be given a display authorization for these objects or a maintenance authorization as well.
    You cannot combine the structural authorization with the basic authorization. The user is therefore authorized to process the assigned set of objects irrespective of the function (s)he is currently using.
    Further notes
    As functions from other applications areas (Training and Event Management, Notification Processing) and from Student Accounting are integrated in Campus Management, users also need authorizations from these areas.
    Campus Management contains a number of roles which you can combine with the roles of other application areas to create composite roles. You can either assign a composite role or individual roles to users.
    Component Prefix of the roles provided
    Campus Management SAP_CM_
    Training and Event Management SAP_HR_PE
    Notification processing SAP_CA_NO_NOTIF
    Student Accounting SAP_FI_CA_
    You create the business partner authorizations in separate IMG activities which you can find in Customizing for Campus Management in Campus Management Master Data -> Students -> Students as Business Partners -> Basic Business Partner Settings -> SAP Business Partner -> Business Partner -> Basic Settings -> Authorization Management.
    In the SAP Reference IMG under Basis Components -> System Administration -> Users and Authorizations, you can find more IMG activities in which you can make general settings for authorizations.

  • DNG file modification date not changed by writing metadata?

    I use LR 2.7 on Windows XP.   To my surprise, I just noticed that writing metadata updates (e.g., new keywords) from LR to the DNG files does NOT appear to update the file modification date, which suggests obvious issues for backup strategies (yes, I understand that a changed modification date introduces other backup issues).   I have verfifed that the metatdata does indeed change in the DNG files, so I am mystified.   Can someone shed some light on this?   Thanks.
    js
    www.johnshorephoto.com

    Yes, I explicitely invoke "save metadata to file".   Furthemore, I have checked the behavior by (a) modifying DNGs in LR; (b) saving the metatdata to the DNG; (c) creating a new LR catalog and importing the revised DNGs.    The metadata changes do show up in the re-imported DNGs (and the metadata field "Metadata Date" correctly shows the recent change).  Morevover, the file sizes do change (wth the metadata changes) even though the modification dates shown in windows explorer do not change.
    However, I just redid the experiment to double check, and discovered an important clue - the mysterious behavior occurs when the DNG files are on a NAS device (in particular a Netgear ReadyNAS Duo.   To summarize:
         - When the DNG files are on a local hard drive, the file modification dates change as expected
         - When the DNG files are non local (i.e., on the network but on a NAS device), the file modification dates do not change even though the file sizes do change;
    What's more, I see the same behavior when accessing the DNGs via Adobe Bridge (CS5) - i.e., if I change the metadata, I'm asked if I want to apply the metadata changes to the DNG, and I say yes (and confirm by looking via Bridge at a copy of the changed file).   On a local disk, the file modificaiton dates change (as do the modification date displayed in Bridge), but if the files are on the NAS, the modification dates do not.
    Any additional thoughts?
    js

  • When situation causes Firefox cache file to have Windows modified date more recent than the access date?

    I'm reviewing a report from a forensic examination of a hard drive from a Windows machine. In that report are Firefox 3.x cache files where the Windows modified date is more recent than both the Windows created date and the Windows accessed date, with the latter two dates the same. For instance, the modified date might be March 23, 2011 at 10:30 am, and the created and accessed dates might be March 17 at 9:50 pm. What actions, by Firefox, a user, or some other program (other than a date-modification tool) would cause this state of affairs? I'm generally familiar with these dates and under what conditions they change, but have found no doc explaining this particular situation...

    In your example,
    *the site was originally visited on March 17 at 9:50 pm and the cache entry was created; at that time all three dates should be the same
    *the user visited the site again and the information in that cache file was modified on that second visit, March 23, 2011 at 10:30 am
    *my experience makes me agree with the first answer in the first link below that accessed timestamp on Windows system is not always accurate; '''''AND''''' accessed timestamp differs for files and folders as defined in the third link below
    *See:
    **http://superuser.com/questions/232143/windows-7-file-properties-is-date-accessed-always-100-accurate
    **http://msdn.microsoft.com/en-us/library/ms724290%28v=vs.85%29.aspx
    **http://msdn.microsoft.com/en-us/library/aa365739%28v=vs.85%29.aspx

  • Why can't I change the Created Date on a file using Terminal?

    I bought a used Contour helmet camera to take pictures of the kids while they're skiing, and I cannot access the camera itself to change the clock in it (USB port is broken).
    I get videos from it just fine, but every time I remove the battery the date/time on the camera resets to January 2008, so my skiing videos end up someplace completely different from what I expect in iMovie.
    I thought I could change the Created Date with Touch in Terminal, but it only handles the Modified Date.  I know I can purchase File Date Changer 5 from the App Store to do this, but I'd like to know why I can't do it in Terminal.
    Anybody know?  Or know of a different way that I COULD do it in Terminal?

    pessex wrote: Anybody know?  Or know of a different way that I COULD do it in Terminal?
    Don't know about Terminal, but, because you are using 10.9.x and iMovie, try the iMovie method:

Maybe you are looking for

  • Thunderbird Mission Control Desktop/AutoConfig not working for some users

    I have the file: "C:\Program Files (x86)\Mozilla Thunderbird\defaults\pref\custom.js" It contains: pref("general.config.obscure_value", 0); pref("general.config.filename", "TMcustom.cfg"); I have the file: "C:\Program Files (x86)\Mozilla Thunderbird\

  • PrinterException when multiple threads try to print report using JRC

    Iam using Crystal Report's JRC for printing reports, it works fine. But the problem araises when i use multiple threads. I used the following: reportClientDocument.getPrinterOutputController().printReport(.....); to print. I get the following excepti

  • Acrobat Reader closes after opening PDF from an app-v

    So we have a problem with reader version 10.1.0.534. In our company we have most applicaties packaged as an app-v take firefox as an example. Now when we try to open a pdf document from firefox Acrobat Reader opens for a second and then closes again

  • Uploading Images to Picasa - they appear lighter

    When I upload images from Aperture to Picasa the images on Picasa appear to be somewhat lighter than the original in Aperture. The photos on Picasa appear to be overexpoxed by about 0.5 EV. I save my images in Aperture in RAW format. Can the conversi

  • Replace Pattern

    I have a few photos of some models dressing in solid color outfits. I would like to add patterns in place of the solid colors. Is there a quick method or auto action, that allows you to do this? If so, what version of Photoshop? Thanks