Changing creation or modification date with Automator

Three computers access iTunes in my apartment. The files are located on a drive connect to an airport extreme base station. Each computer needs to import music and have physical access to it for iPods and playlist creation. Since iTunes does not automatically check for new files I am in the process of building an Automator script to fix the problem.
I have created an Automator action that allows the user to control-click a folder with audio files in it and have Automator manually change the file name, then import the files into iTunes. My hope was that this would change each files modification date so that, at a later time, another Automator action could search the network drive for newly added media via the modification date. My problem is that simply changing the name does not change the modification date. Even creating an archive and unzipping it before importing does not change the date.
What action can I do with Automator that will change the modification date on those files so that I can search for them later? I know I can add the date to the file name but I don't want a user to have to guess which dates files were added (i.e. I'd have to tell Automator "look for this specific date in the file name' which is obviously unhelpful if I don't know the specific date).
Long story short, how can I change either dates with Automator?

Create a column with the following.
TIMESTAMPDIFF( SQL_TSI_day, Opportunity."Created Date" , CURRENT_TIMESTAMP )
add a filter on this column, for example, <=90.
the SQL_TSI_month does not return accurate number of months.
Cheers!
Shilei

Similar Messages

  • Creation and Modification dates for android file system

    Hello all, I am working on a project and i noticed a particular scenario where i'm getting an error everytime i try to run the code below on my android device;
                    var file:File=File.applicationDirectory.resolvePath("amf.js");
                    var modDate:Date;
                    var createDate:Date;
                     if(file.exists)
                            try
                                       modDate=file.modificationDate;
                                       credDate=file.creationDate;
                                       trace("Modification date: "+ modDate.toString()+"\nCreation date: "+credDate.toString());
                             catch(e:Error)
                                      trace(e.message+": Somehow android OS CANNOT READ mODIFICATRION AND CREATING DATES FOR FILES");
    Every time i run this on Adobe AIR's Mobile emulator, the correct dates are show up properly(Possibly because the emulator is running on Windows) but when i switch the debug to the device, the statement in the catch block executes. The real error says "Error #3003: File or directory does not exist."
    Am i missing something or is this a normal behaviour which i have to find a work around for? The modificationDate and the creationDate are all properties of the FileReference class which i didnt use to instanciate the file object because i wasnt uploading or downloading anything.
    Any form of tip will be much appreciated.
    Thanks.

    I run into the same problem while working on some sort of file synching task.
    Trying to read the file.modificationDate or creationDate results in an error: "Error #3003: File or directory does not exist."
    I have obeserved that this only happens for files that were packaged with the app (and placed in the File.applicationDirectory).
    Files that my app has downloaded and saved to the device (File.applicationStorageDirectory) do have a valid creation date and modification date.
    Maybe the File.applicationDirectory has different rights?
    Does anybody have a solution or workaround for this?

  • What would change a file modification date into the future?

    Of late, I've been noticing that [apparantly random] files that have NOT be accessed are showing a modification date somewhere in the future.
    I couldn't figure out why zip was adding files I hadn't touched to an archive of files changed since a certain date.  Looked in Finder, and they have dates from 1 to 20 some years into the future, in the modification column, and sometimes, no creation date.
    Also, files deep in the contents of some apps are losing me as an owner, leading zip to tell me "access denied".
    Any thoughts as to what's going on?  Other than the paranoid; there's some evil virus, whatever, running amok.

    Did you check the code in your template.dwt file for errors?
    http://validator.w3.org/
    Did you save over or rename your original Template.dwt file?
    Did you move your Template.dwt file from it's Templates folder?
    Nancy O.

  • Anyone experience incorrect modification dates with 10.4 server?

    Maybe this is a bug, maybe not, but I have received numerous reports from coworkers of a problem with the finder's 'modification' date for files hosted on 10.4 servers (running 10.4.3 now) in two separate locations. This behavior was not occurring prior to the 10.4 upgrade and it is now happening both via AFP and SMB from 10.4 and 10.3 client machines.
    The way this occurs is when a user simply wants to view a file, a word document for example, they open it, view it and then close it without making any changes (there is no prompt when they close to 'save changes'). In the finder the file will now have it's 'modification' date updated to the time the user closed the file. However, the file was NOT modified when it was closed and so its modification date should have remain unchanged. Also of note, the 'last opened' date remains blank. This does not occur with every file on the server (it largely appears to impact Word, Excel and CAD files) but it is sufficiently easy to replicate that it has inevitably started to cause a great deal of confusion.
    Is this something that other users have experienced? Is there a setting tucked away in AFP to correct this or is it a bug that hasn't been addressed? I may have missed it, but I am surprised I've not seen any other posts about this.
    Thanks -- George
      Mac OS X (10.4.3)  

    I have also seen this problem, and heard of it at other locations. It seems to have started for us after upgrading the file server to 10.4. We have clients running 10.3.9 and Office 2004. The modification date change only occurs when the user is not the owner of the file, but has read access via "group" or "other" privileges. There is some traffic in the microsoft mac word newsgroup about this issue (from August 2005!), but no solutions. Anyone with an idea of how best to complain to Apple and Microsoft about this issue is more than welcome to chime in.
    http://groups.google.com/group/microsoft.public.mac.office.word/browse_thread/th read/eaf91f9ff80a4a49/bf412677a14e75d4?q=modification+date&rnum=1#bf412677a14e75 d4

  • Mac Does Not Retain Video Creation and Modification Dates

    I seem to have encountered a major problem for managing videos on the Mac. There does not seem to be a method - other than manually dragging files "Windows Style" - for moving videos from my camera (any camera) to the Mac (any Mac) that retains the video's modification date (the date the video was taken) so that videos can be organized by date (which, I imagine, is the primary way that I and everyone else would normally keep track of their videos). iMovie resets the "Date Modified" and "Date Created" data to the day that iMovie imported the file. That data is almost meaningless. Yes, iMovie allows for modifying the "Clip Date and Time" after the fact and one at a time but that is obviously inadequate for the serious management of archived files. Neither iPhoto or Image Capture seem to be capable of touching video files at all. Is Mac really this deficient for managing video files? Somebody please tell me I'm wrong. Thanks.

    I run into the same problem while working on some sort of file synching task.
    Trying to read the file.modificationDate or creationDate results in an error: "Error #3003: File or directory does not exist."
    I have obeserved that this only happens for files that were packaged with the app (and placed in the File.applicationDirectory).
    Files that my app has downloaded and saved to the device (File.applicationStorageDirectory) do have a valid creation date and modification date.
    Maybe the File.applicationDirectory has different rights?
    Does anybody have a solution or workaround for this?

  • Change Pick List Output Format with automated Output format  froTO creation

    hi.,
    When creating TO for delivery using VL06P or LT03 there is no opportunity to print the Company Custom  Format(X1) of the pick list.
    But if it is reprinted in LT31, Print Code X1(Company defined picking list Output format) can be selected. This is our custom formatted TO output format.
    The delivery address is on the document, so if X1 format is used with the automated output from TO creation, Warehouse personel will have the Hardcopy of the delivery address.
    Question: How can i have the Print Code X1 to default when i am creating delivery using VL06P or LT03.
    All help is much appreciated.
    Tx

    Resolved by Myself

  • Can I change incorrect time and date with

    Hello,
    I used my digital camera in a different time zone and forgot to set it accordingly. Now a bunch of photos have the incorrect time and date. Can I use Photoshop CS4 (11.0.2) to change this? I only found instructions on the Internet for Elements, which I do not have.
    Windows Live Photogallery was only mildly successful. In the Windows 7 Explorer the date is shown correctly, but when I go to open the file in Adobe Photoshop, the old, incorrect date is shown. That's why I hoped that I could change this for good with Photoshop.
    Thanks in advance!
    Aiiyana

    There are several dates in the metadata.  THe date shot is set by the camera and I know that you can not change that in Bridge.  There are programs out there on the web that will do it.

  • Force user to change cost center master data with validity date

    Dear All!
    we do have customer fields in table for cost centers (CSKS) and would like to force the user to do changes for these customer fields in combination with the change of the validity from/to date. I did not find any possibility to add this functionality with the customizing transaction OKEG or any other transaction. We now would need some good ideas from you as SAP experts!
    Regards,

    Hi,
    You can use COOMKS02 enhancement.
    Regards,
    Eli

  • Changing ID3 tags in iTunes with Automator

    I have a huge load of music, which are all named "Artist - Track".
    I want to edit out the Artist from the track name, and fill it in in the Artist tag with an Automator script. I have a program that does this in Finder, but can't find anything to do the same thing in iTunes.
    Is there already such a script available? Can you give a description on how to build the script?

    Yup, found one on the page you posted. Thanks a lot!
    EDIT: after browsing around on the site, I found quite a few more handy scripts. Definitely worth a look!

  • Changing address book field name with automator

    can anyone advise how to change a field in multiple contacts using automator, ie i need to change either the 'work mobile', or 'home mobile' field to the simple 'mobile' so as to fix the phone book error i now have on my sony p900 since the recent 10.4.6 update rebuilt the phone version of my addressbook,
    the mobile now will not recognise the changed fields as mobile phones but as land lines, making the sending of sms etc difficult.
    As i have over 400 contacts this is a pain indeed....
    any genius scripters out there who can both help and explain?
    thanks
    simon

    Hi,
    According to your description, the name of a address list container is changed through Exchange management tool. However, Outlook clients still show the old name.
    In this case, I recommend you recreate a new profile to check the result. I test it and the address list updates in Outlook client only after I recreate the profile.
    If you have any question, please feel free to let me know.
    Thanks,
    Angela Shi
    TechNet Community Support

  • Hello! How change image resolution (dpi/inch) with Automator!

    I have some images to combine in a PDF. The resolution of images is different so the PDF has different size of pages.
    I need to modify the resolution using Automator but... how to do it?
    Thanks Sterfano
    PS sorry for my bad english language

    Have you tried setting it up using "crop images" - you can specify the size.

  • Un-modified folders with changed modification dates

    I have several folders that I have not touched for months, and suddenly, they all have the same modification date & time. The files inside the folders have the correct dates on them (some are two years old).
    This seems to be happening with only one folder, which itself is in the Documents folder. There is an alias to it on the sidebar. Inside that folder, just today, 53 folders all changed their modification dates with out me even looking at them!
    This is highly annoying, as it is a folder in which I store jobs that I have completed. Any solutions?

    This was the result of a syncing application, not Mac OS. Removed application, problem solved.

  • Folder modification dates spontaneously changing

    I discovered that a limited batch of folders on several different hard drives had all taken on the same modification date, which was several days ago. It is truly maddening because I keep the contents of may enclosing folders sorted by modification date for critical reasons, and now these spontaneously changed folders are far out of order.
    To make it more maddening, I'm using a program designed to allow changing of the modification dates, which has been working fine on most of them, to change the dates to the same as the latest date of a folder's enclosed contents, but one of them keeps changing it's modification date to right now if I merely twirl down its "carrot" or viewing arrow in list view!
    I've been doing this a long time and have never encountered anything quite as mysterious or frustrating. Does anybody have any idea what could have caused this?
    LATE NOTE: I had downloaded and run the Onyx program to fix an issue that OpenPGP had with contextual menus not showing up. Their page recommended running the Automation pane of  Onyx as the solution. I just found out that I ran that on the same date as the folder modification date changes. Could it be the culprit, and if so, how and why?

    Thanks, Eric. I still don't understand why, though, some of those folders became something I'd never seen before: folders that would change their modification date even if the "carrot" were twirled down. It's sure bizarre behavior. And in the middle of trying to solve that, suddenly my two external hard drives became inexplicably read-only. Even though the "Info" window showed that I had read/write access, above the permissions section it said the disk was read only, and even when unlocking the permissions lock, it all was greyed out.
    I found a strange suggestion in this discussion group to use DiskUtility to do nothing but verify those drives. I did—and suddenly they were all correct in the permissions department. I swear. I've never seen anything remotely like any of this.
    I'm ready to order a custom tinfoil hat for my Mac.

  • Inquiry: preserve and carry-over Creation & Modification Dates when encoding via AME

    Greetings. I need to encode a series of AIC offline files and it is critical that the Creation Date and Modification Date matches the original source file.
    Currently, my encoded AME files display Creation and Modification Dates and Times that represent the processing date and time.
    In other words, the files indicate "Today" rather than the day and time of the shoot (two days ago).
    I've FAQ'd and Help Manual'd this inquiry thoroughly to no resolve.
    Any ideas where I should look to help me maintain and preserve the original source file Date & Time?
    Many thanks, Mike
    +
    My AME (preset browser) preset Export Settings are as such:
    Format: Quicktime
    Video Codec: Apple Intermediate Codec
    Metadata > Export Options: Embed in Output File,
    Source Metadata  Preservation Rules: Preserve All
    Output File Metadata: All Metadata
    In my AME preferences:
    Metadata > Metadata Export Export Options: Embed in Output File
    Source Metadata preservation Rules: Preserve All
    Output File Metadata Export Template: All Metadata
    The original .MTS AVCHD source file was created using a NEX-FS100
    I am using AME Creative Cloud 2014 with a MacPro 10.7.5
    +

    Greetings. I need to encode a series of AIC offline files and it is critical that the Creation Date and Modification Date matches the original source file.
    Currently, my encoded AME files display Creation and Modification Dates and Times that represent the processing date and time.
    In other words, the files indicate "Today" rather than the day and time of the shoot (two days ago).
    I've FAQ'd and Help Manual'd this inquiry thoroughly to no resolve.
    Any ideas where I should look to help me maintain and preserve the original source file Date & Time?
    Many thanks, Mike
    +
    My AME (preset browser) preset Export Settings are as such:
    Format: Quicktime
    Video Codec: Apple Intermediate Codec
    Metadata > Export Options: Embed in Output File,
    Source Metadata  Preservation Rules: Preserve All
    Output File Metadata: All Metadata
    In my AME preferences:
    Metadata > Metadata Export Export Options: Embed in Output File
    Source Metadata preservation Rules: Preserve All
    Output File Metadata Export Template: All Metadata
    The original .MTS AVCHD source file was created using a NEX-FS100
    I am using AME Creative Cloud 2014 with a MacPro 10.7.5
    +

  • How do you change the last opened date in Lion?

    In many screens the files are organized automatically by last opened date.  This information is not available when you click command info on the individual file, however, if you list out the files and click on the option to show last opened on the row on the top you will see this information.
    From time to time it is useful to change the creation and modification dates to move where files are displayed in various windows.  While there are utilities and articles about changing the creation and last modified date using third party software or the terminal, I have not been able to find any way to change the last opened date.  This is useful if you wish to hide a file you recently opened so that another user can't just find it as one of the last opened files. 
    When I googled this question all the solutions using terminal either with touch -t or touch -mt commands changed the creation and modification dates, but did not affect the last opened date.
    Anyone have a solution to this?

    Thank you MacNix!!!!!

Maybe you are looking for