Can I use automator to change the modified time of a file as its content?

I use automator to rename a series of images.

The problem is whenever I change a change of time of amending records file.

Can I use automator to change the modified time of a file as its content?

I know that I can use the Terminal to change a date but I have no idea how to do to automate this process

As you say you know the command to use in the Terminal, and then with Automator, use the Action run the Shell Script after the name change.  The new file name will be passed to the Action run a Shell Script, and from there, you can use touch - r to set the time of the file at the time the name of the new file

Tags: Mac OS & System Software

Similar Questions

  • Can I use actionscript to change the size of an object displayed according to the proximity of objects 2?

    Can I use actionscript to change the size of an object displayed according to the proximity of objects 2?

    As in the 2 closest objects get, plus another Gets?

    Yes, simply change the properties of scale based on the distance.

  • I can't LR5.0 to change the Capture time

    When I try to set a specific capture time, it behaves exactly like LR4.x but nothing CHANGES after hitting 'change '.   Anyone else have this problem?

    Edit Capture Time.png

    The top left of the screen progress bar appears briefly as if changes are made, but when go back to change, again, the capture time remains unchanged.

    PROBLEM SOLVED.   After being frustrated with more attempts, I left LR5 and then restarted, it.   After having done that, I saw NO other problems and am able to change the date/time of capture as expected.   (Maybe my hardware is bad driving... will have to look.)

  • How can I use ColdFusion to change the structure of database?

    I have a project that requires me to import hundreds of PostgreSQL dBase tables.  Importing is quite simple.  However, I need to rename all the columns to meet my organization s naming conventions.  This forces me to precede a name data type the column name.

    For example... I have three columns NAME, LOCATION, and BRIAN.  These columns are of type varchar, number and date.  These columns must be changed so that new names of columns are vchar_name, num_location and date_edop respectively.

    Since there are thousands of columns, perform this task manually is not plausible.  I think I can use CF to perform the task for me, but I don't know how to do.

    Has anyone done a similar task and would be willing to share some code example?

    Thank you
    Lee

    IF you know how to make these translations with SQL, then you know how to do with ColdFusion.

    If you know only hot to preform these trnalations with a Databasse management tool, you must first learn the SQL used by the tool really to do these translations.

    You can pass ALL SQL instructions through a block of that includes your database management system, and the account used to connect to ColdFusion is allowed to use.

    P. S. it's this last point is important BECAUSE the States of web security well the normal DSN connected to ColdFusion must never have unnecessary permissions, such as create, modify, or remove tables.  So you can very well, (I hope so at least) need to create a special DSN with the necessary permissions for this task.  And, of course, don't let this DSN not be used for other taskes where permissions are not necessary.

  • Can I use two cards at the same time on the same computer?

    Hello

    I have two graphics cards, one is integrated, i.e. HD 2500, Intel and the other is dedicated, i.e. Nvidia Geforce GT620. My question is that can I use both at the same time on the same PC. Whenever I try to connect via a VGA cable (per processor) and DVI (via graphic card) at the same time, the screen goes black and when I take off the DVI cable, the screen will return. When I connect the DVI again after log on, there is just the theme of Windows and folders that I opened all get reduced. When I disconnect the DVI cable once again, I opened the folder displays again.
     
    I want to make use of both integrated and dedicated graphics card, I read on the internet that two graphics cards give a performance gain. Also, I'm a gamer. But in time, I bought my PC, I had no knowledge about computers. I want to use two graphics cards. Please tell me a way by which I can use two graphics cards at the same time without the problem described above.

    Yes, you can use two cards graphics, combined to boost performance. But it depends on a condition: the two (or more) cards must be of the same brand. To make it clearer, you can use two or more NVIDIA graphics (thanks to SLI technology) or AMD graphics (with CrossFireX technology, supports up to four graphics card in a single PC).

    But, a mixture of graphics cards of different brand, as NVIDIA and AMD or NVIDIA and Intel or AMD and Intel or NVIDIA, AMD and Intel, can not be used for SLI or CrossFireX.
    On the black screen, please follow the following link:
    http://support.Microsoft.com/kb/976064
  • Can I use Paint to change the color of the text in a jpeg file?

    That covers it pretty well.  Also, can I put a background color in without the text being covered?

    Hello

    If the text already exists in the image, then you cannot delete/edit it in paint. Yes, it is possible but requires a little extra work, you can use third-party application to make changes in the jpeg file. I suggest you research on the use of your favorite search engine.

    WARNING OF THIRD PARTY LINK.
    WARNING: Using third party/link software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.
  • Can I use Organizer to change the size of .jpg of all photos in a folder in a batch process?

    We use wa-a-ay too much disk space for a growing collection of photography.   My daughter is a monster of a camera with four children - have to - I say more?


    In my current test file, the size of the original photos range from 2.3 MB to 4.2 MB.  I took a picture at random and printed original and then three more, saved by PSE9 as .jpg files with quality average, maximum and minimum settings on regular letter-size paper and still on paper photo 4 x 6.  It takes a magnifying glass and a kneecap calibrated to detect a difference on paper, and it is even more difficult on photo paper.  I think that I should take the pressure off the hard drive capacity of all reduce to a more reasonable size; After all, minimum quality printing takes less than 1% of the space like the print quality.


    I have the feeling that I can accomplish this in a batch process with the Organizer, but that's all I've got is the intuition - not the know-how.   I would like someone to make me scroll through the process.


    Also, I expect a lecture on why I shouldn't do this.  Go ahead; I will listen.


    Thanks, Bud


    Bud,

    BudV wrote:

    Also, I expect a lecture on why I shouldn't do this.  Go ahead; I will listen.

    You are the only one to judge... You won't regret it if you want to use photos with the size and the original resolution at a later date?

    Yes, you can use the organizer or the command 'treat multiple files' Editor. But first, you should think about two questions:

    -Are you ready to save full resolution and size files before the "shrinkage"? External USB drives with large capacities are available and affordable.

    -What you say, the optimum size would be for files resized to size 4 "x 6" at 300 DPI in 8 to 10 jpeg quality.

    Resizing the Editor: use the command 'treat multiple files' and click on the button "Same as source". I do it without a backup of first sound... This can be done per-folder.

    Resizing of the Organizer: use the 'Export' command This command leaves the original and puts the files in a new folder. The resulting files are NOT included in the catalogue. This means that the maintenance of your organization (albums, categories, tags,...) will be difficult. even if you use a file management system.

    Another solution with third party software such as Faststone photo resizer:

    -Absolutely do a full backup before

    -Run the resizing of the external software options so that files are resized without being moved. Replacing the originals.

    -If you use the Organizer, your organization will be preserved, but the size of the files in the catalog databases and the thumbnail will be wrong. You can recreate the thumbnail cache by deleting the thumbs.5.cache file in your catalog folder. It will be rebuilt automatically.

    That worked for me in the past... no warranty for you!

  • Satellite L550-117 - how to use VGA + HDMI at the same time?

    Hello
    I have a Satellite/Satellite L550 series Satellite L550 - 117.
    Can I use 2 monitors at the same time, using the function key (laptop screen + HDMI, VGA + HDMI, VGA, portable computer), but I would use "laptop screen", "VGA output" + "Output HDMI" at the same time (for example: to play a movie on an HD TV and work on the other two screens).
    I also want to play sounds on computer speakers 'and' an HDMI output, not the speakers for computer 'or' HDMI.

    Is it possible with this notebook and how?

    Thank you

    Hey Buddy,

    Good idea you have unfortunately it of not possible to use 3 monitors at the same time. You can use the internal monitor and an external monitor but not the two external monitors. This is not supported in the graphics card.

    Then, you use internal monitor, VGA connection or internal monitor + HDMI connection. That s what you can do.

  • I'm trying to follow the video to "Change color" and I don't have a lot of options that uses the presenter.  I'm on a PC.  Can someone walk me by changing the color of an object step by step?

    I'm trying to follow the video to "Change color" and I don't have a lot of options that uses the presenter.  I'm on a PC.  Can someone walk me by changing the color of an object step by step?

    Sorry for the delay. Here is the video

  • All my tools in PS 6 have a "Cross" icon and I can't use them, such that the tool clone.  I reset all the tools without result.  The bracket keys do not change size.  Any help?

    All my tools in PS 6 have a "Cross" icon and I can't use them, such that the tool clone.  I reset all the tools without result.  The bracket keys do not change size.  Any help?

    You have your Caps Lock?

  • Use scripts to change the name of the tab

    Hi all

    I'm trying to use scripts to add tabs to a tab control in an existing VI.  I am able to add new tabs easily enough, but I can't understand how to change the name of each tab when they are added.  Each name is extracted a TDMS file using a loop for.

    I looked through the existing discussion forums, and there are a few old messages that indicate I should look for the 'independent Label property', and that I should put it to allow me to change the caption of the tab.  There is always an explanation of this property in the help files, but I am unable to find my path to it in the current schema.

    Assuming that this property still exists in my version (2012), could someone tell me the correct sequence of references and property nodes to access this property?  Right now I use the class "TabControl".  If this property is obsolete, can someone let me know if there is a new method to achieve this?  Thank you.

    GSinMN

    After you have added the page, download the Pages property of the index of the newly added page, tab control, use the PageLabel of this page for the label.  It would be cool if the Add Page method returns the reference to the new page.

  • can I use a structure of the event in another structure of the event

    Hello

    Can use a structure of the event in another structure of the event?

    Thank you

    Viviane

    I would put your waveforms in the registers at offset.  You can then use your structure for the main event to trigger on the Show 1... the value change events and process the data, however you need from there.

  • I can't use windows Explorer or the network drive mapping to access my NAS drive more.

    original title: strange NAS problem

    Hi everyone I can't seem to fix this strange problem.

    I can't use windows Explorer or the network drive mapping to access my NAS drive more.
    I am running windows 7 Professional 32-bit on my PC, and until about a week ago she accessed from my PC very well.

    The location could not be reached and have not been able to run since said today that I went to update it and the drive mapped. I'm at my wits end.

    Here is some info.

    I can access to other computers and devices on my network.

    I can access the internet.
    I have a windows XP PC in the House who can always connect to my fine NAS drive (even if it's not mine).
    I PING the NAS drive.
    The NAS drive will do the same if connected via cable or by wireless.

    UPDATE: after the implementation of a shared folder on a Windows XP computer on the same network I am also unable to acsess the part of my PC. So I can assume that I can't browse all share folders or NAS drives on my local network.

    Help, please.

    Thanks for the help, but I fixed my problem

    Here's what I did in case anyone wants to know.

    I went into Device Manager and went to network adapters.
    I then expanded this section and under view changed to display hidden items.
    Several hundred elements appears (for most 6to4 adapters) and I deleted all the.
    Then click scan for new hardware.
    And... everything works again! YAY!

  • How can I change the default icon for a file type

    Hey there,

    I know I did in Windows XP and I am hoping there is a way to do this in Windows 7.

    How can I change the default icon for a file type?

    I want to have all my .sql files appear with a regarless of the specific program's icon is defined as the default program to open with.

    I did some research, but he has only led hacks registry, I tried but not lucky? Does anyone know of a way?

    Here is a free software that will do it without risky registry changes.  Of course I would recommend when even take a few seconds to create a system restore point before using it, just to be sure.

    File of Type utility for Windows 7: http://types.sourceforge.net
  • How can I change the term of my video file?

    How can I change the term of my video file?  Windows DVD Maker is playing my video file listed as 26:18:32 only 26 hours instead of 26 minutes 18 seconds and 32 milliseconds.

    Hi MacChang,

     

    Thanks for posting in the Microsoft Community. It seems that you have a problem with the length of a video file playing on Windows DVD maker. This can be very frustrating for you, and I appreciate the efforts you have put in. Let us work together as a team to get this number fixed.

     

    We start with a few questions-

    (1) is specific to a particular video file?

    (2) have you made changes on the computer?

     

    I would like more information about the issue.

     

    Method 1-

     

    I wish that you disconnect any external devices to the computer. In addition, I would have you close all programs running in the background.

     

    Method 2-

    I recommend you perform the clean boot.

    Placing the computer in a boot minimum state helps determine if third-party applications or startup items are causing the problem. You must perform the steps in the article-

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135

    Note: You must follow the step 3 of the article to return the computer to a Normal startup after you perform all the troubleshooting steps.

     

    In addition, see the article-

    Solve problems with creating a DVD-video using Windows DVD creation

    http://Windows.Microsoft.com/is-is/Windows7/troubleshoot-problems-with-creating-a-DVD-video-using-Windows-DVD-Maker

     

    We know if you need help. We will be happy to help you.

     

    Thank you.

Maybe you are looking for