Add date to new text file name and generic text in body

Okay, I hope this is the right forum. To help manage and keep track of incoming assets/files and I created an Automator workflow with the following: "Get Selected Finder Items → Get Folder Contents → New Text File (w/Show this action when the workflow runs so I can give a unique name).
This creates a text file with the folder contents listed in the body.
I would like to know if I can do two things:
1. Automatically add a date/time stamp to the Save as field so it will automatically have a unique file name?
2. I also want to add text before the listed contents within the text file. (e.g.: Let's say the folder contents are Volumes/Mac HD/Generic_movie.mov. I want the final text to read:
"The following file has been moved to the local volume at: Volumes/Mac HD/Generic_movie.mov"
Is there a way to accomplish either one or both of these with Automator or AppleScripts?
Thanks.

I would like to know if I can do two things...
This might address your first concern:
*1) Get Selected Finder Items*
*2) Get Folder Contents*
*3) New Text File* -- select a destination folder and check *Show Action When Run*
*4) Rename Finder Items:*
Choose *Add Date or Time* from the popup
Date/Time: select Created, Modified, or Current - Format: *Month Day Year*
Where: *After name* - Separator: *Forward Slash*
Separator: Space - check *Use Leading Zeros* (optional)
*5) Rename Finder Items:*
Choose *Add Text* from the popup
Add: *" at"* -- put a leading space before "at" (without the quotes), and select *after name*.
*6) Rename Finder Items:*
Choose *Add Date or Time*
Date/Time: Current - Format: *Hour Minute Second*
Where: *After name* - Separator: Dash
Separator: Space - check *Use Leading Zeros* (strongly recommended)
+--- End of Workflow ---+
Save the workflow as an application and use it as a droplet. Drop a desired folder onto the saved applet and enter a name when the dialog appears. The new text file, which will be found in the destination folder, should be appended with a date and time stamp, e.g., *"My Folder List 7/8/2010 at 23-54-09"*
Tested using Mac OS 10.4.11 and Automator v. 1.0.5
Good luck; hope this helps.

Similar Messages

  • Need to add date/time stamp to file name without time change creating new files

    We have setup our application to save data once a trigger event occurs. We also need the date/time stamp as part of the file name. We used Format Date/Time String and concatenated it into the file name. It all works good, but as the time changes (seconds, minutes, etc.) it causes the Write to File to create a new file with the new filename. Is there a way to create the file and save/latch/buffer the time in the file name so that it doesn't create a new file for every second?
    I've attached a shot of the relevant part of our VI. It's all in a big while loop. The data save is in a case/switch so that when it is triggered it starts saving. (The for loop is to split the data up
    into 4 different files). Like I said, it all works except new files are created every second as the time changes instead of just putting it all in one file with the initial time in the file name.
    Attachments:
    TimeInFileNameQuestion.jpg ‏46 KB

    I need a loop in order to use a shift register. I cannot stop the outer while loop (because it would stop the hardware from collecting data), and I cannot add loops inside which bogs down the processor to where the app stops. I've attached a simpler version of my VI which illustrates the problem. While the button is pressed (the trigger) it should save the data (in this case just cycle numbers) into one file with the initial date/time. But, you can see that it creates 1 file/second. I tried using shift registers, but without adding extra loops I can't see how to do it. Thanks
    Attachments:
    FileNameTest.vi ‏29 KB

  • File name and Date Display as an obj not the data

    All,
         The issue that I am having is that when I view a Visio file hosted on SharePoint. The file was created in Visio 2007 and when it is opened by Visio 2007 and Visio Viewer in SharePoint. The file name field object and date
    modified object show the information. The issue is when the file is opened by a device that has Visio 2010 the information does not show. Is there something that I can do for these users to have it show correctly.

    Hi,
    Which way did you open the Visio 2007 file in SharePoint?Opened it in the browser or downloaded it to open? I had test in my environment. Insert a text box>Add a data/time field, it worked fine both in Visio 2007, 2010.
    Thus, let‘s do some test to narrow down the issue’s reason. 
    1.Download the Visio 2007 file and open it with Visio 2010.
    If it worked fine, the issue seems more related to Visio object and sharePoint connection.
    If it does not display the information in Visio 2010 by a device client, the issue was more related to Visio 2010 client.  
    2.Create a new drawing included file name and Date
    field in Visio 2010.
    If the new drawing displays correct, the issue is more related the original, please try to repair the file or re-create the file name and Date filed.  
    If the new drawing still displays incorrect, please try to start Visio 2010 in safemode, some third-party add-ins my be casued the issue.
    If the issue still exists, try to repair Visio 2010.
    Regards,
    George Zhao
    TechNet Community Support

  • Pdf portfolio source file name and date in file details

    Is it possible to import the source file name and extension as well as the source file created date in the portfolio file details?  Need to document source to portfolio in working with 3rd parties that will only have the original source.  Need to document what was converted into pdf as not all files in a directory will successfully convert to pdf.  Sometimes need to convert 100's of files.  Manual entry is inefficient.  the file names and modified dates are displayed on the Combine Files dialog.  is there a way to capture the detail on that page?

    I don't need the detail of when the pdf was added to the portfolio.  I
    need know which dwg or jpg or word file was converted and the original
    created date of that file for control of information.
    That is impossible; sorry. For some *very specific* types of conversion to PDF the pdfx:SourceModified XMP tag will be set to show the last-modification date of the source file (for example DOCX files converted using MS Word), but there will never be a human-readable record of the source filename or its creation date unless you have manually added them as document XMP properties after conversion (this is what the "Custom Properties" dialog is for). To embed source data automatically would raise no end of privacy and security problems for customers, who most certainly do NOT want their recipients seeing details of internal documents.
    Without writing a plugin there's no access to the internal workflow of the Combine Files dialog, so you cannot use a script to read the names and dates of the files *before* conversion and store them automatically in the new PDF Portfolio's Fields array.

  • Printing FILE NAME and DATE PRINTED?

    when i was on a mac i used to be able to have a default in the printer dialog so that every page printed showed the file name and the data printed. i would like to do this in the mac but i am guessing that this has to be done in either the specialized software dialog box or perhaps in a mac dialog box?
    in any event, can anyone help me figure out where i might find a place to do this? i haveadobe acrobat but i wold also like to do it in something like Preview as well.
    TIA

    hotwheels 22 wrote:
    if i have documents coming that i print for a project and these are quite naturally coming from different software it i have no way now of being able to FIND this file in my computer when i am looking at it.
    Consider using Find from the File menu or Spotlight to search for the document. In one of your previous posts, you stated that you name documents with a date and name. Then perhaps search for the name. Also, with your method of naming documents, if the document is a letter, wouldn't the date on the letter and the person to whom the letter is addressed to give clues to the filename and thus finding it on your computer?
    this is a major organizational issue over here and customizing a template for all my various software should be unnecessary IMHO.
    I do not know how many documents you deal with but I do know that there a many organizations that deal with billions of documents. In addition, if you share documents with others or others with you, there is not a filenaming method that works for everyone. People adapt to each other. A date in a filename could have several forms such as month-date-year or year-month-date, two digits or four digits for year and so on and so forth.
    Are you saying it IS necessary to have this dual file type that has a Pages document which then prints a PDF?
    No. Please re-read  what I wrote and the Pages Help Center articles.
    also, is there in fact a way to save a PDF back out as a Pages document?
    Yes, re-read what I wrote (that which you quoted).
    "Acrobat has the capability to save a PDF in other formats such as Microsoft Word, which can be opened in Pages. That said IMO, a separate Pages document for each "custom" letter/report would not be necessary."
    alternatively i guess i could create a Pages TEMPLATE - that has a DATE in the header that automatically updates .../but/ i am realizing that this has the unfortunate consequence of having the DATE updated if i open the Pages document again
    But that is what you stated you wanted because
    ...and try to remember to SAVE AS this document with another name with the original FILE NAME but a NEW DATE. this does not always work and sometimes i write over the original accidentally.
    anyway, maybe the answer here is to create a Template for any new document type and simply use this template any time i need to create a PDF and then not save or delete the original Pages document but this seems a bit hairy and dangerous in terms of possibly losing a file if i forget to print to PDF or something.
    You have redundant backups, yes?
    It seems that your understanding of a template is different from what it actually is, its purpose and its use. If you have not already done so, try using one of the included Pages templates to create a document that you would reuse to get a better understanding of how it works and to help determine your workflow. What you wrote in the last post seems to be a lot of what ifs but not hands on experience with the software itself. My response was based on my experience of using many types of software and in particular to your questions, Pages and Acrobat. Perhaps you will find better responses in the Pages forum and for Acrobat there is a forum at the Adobe web site.
    is there a lock file functionality in Pages in Mountain Lion or was this in Lion?!
    Perhaps reviewing the tutorials for Pages or searching with Google would  help answer many of your questions.

  • How can I add a "Create New Text File" contextual menu?

    Hi,
    I'd like to add a "Create New Text File" contextual item. I found the "new text file" action in Automator, but I don't really know where to go from there... I want it to work on the desktop and in finder...
    Thanks

    See:
    Mac OS X Automation,
    Automated Workflow Tips,
    Introduction to Automator tutorial, and
    a four-parter on Automation in Snow Leopard by Sal Saghoian:
    Snow Leopard Services,
    Services for iPhoto,
    Safari and WebKit integration, and
    Installing and using services.
    Finally, 
    Developing AppleScript Applications and
    Apple's Automator Developer Documentation

  • How to strip a file name and add it to array

    Hello I am new to labview, and I need to know how to strip a file name and add it to an array. For example, filename joe.csv, then take "joe" and add it to an array with other inputs. A visual depiction will be very helpful
    Attachments:
    channel read and error check R03_v9(JHK).vi ‏101 KB

    What does your code attachment have to do with your question?
    What are "other inputs"?
    I assume you have an array of strings. You can strip the filename using get file extension. You can build an array using build array. Wire the existing array on one input ant the string as a second input.
    LabVIEW Champion . Do more with less code and in less time .

  • Can I add the file name and page numbers to multiple pdfs automatically?

    Hello.  Thanks first for taking the time to read this!  We are a small non profit hospice.  Looking to take a large amount of files and put the patients last name (which is the file name) and a page number on the footer of every page of every document.  For example.  File Name Smith.  Smith 1 Smith 2 Smith 3 etc.  However I like to be able to do this to multiple files at once and not have to open each one up.

    Go to Advanced - Document Processing - Batch Processing...
    Click New Sequence and give it a name.
    Now select the sequence you've created, click Edit Sequence, click Select Commands.
    Select Execute JavaScript from the left-hand side, and click Add.
    Now select it on the right-hand side and click Edit.
    Paste the code from my previous post into the window, and click OK twice.
    Now, back in the Edit Sequence window, select the folder you want to run the batch on, and the output folder. Be aware that if you choose the same folder, the original files will be overwritten, so you might want to use a different one.
    Under Source File Options, deselect everything.
    Click OK.
    You're now ready to run the batch sequence!

  • How to print the report file name and path and the last mod date

    Good morning,
    I am trying to print on the footer of the report the report file name and path as well as the report last modification date.
    Anyone would know how I can do that? I have checked the doc but found nothing.
    Thks. Philippe.

    Did you ever determine how to print report name and report last mod date?
    Thanks

  • I can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name

    can not transfer date from one hard drive to another, I keep getting an error because I have two of the same file names and one file name is in caps and I cant change the file name. My original external has an error and needs to be reformatted but I dont want to lose this informations its my entire Itunes library.

    Sounds like the source drive is formatted as case sensitive and the destination drive is not. The preferred format for OS X is case insensitive unless there is a compelling reason to go case sensitive.
    Why can't you change the filename? Is it because the source drive is having problems?  If so is this happening with only one or two or a few files? If so the best thing would be to copy those over individually and then rename them on the destination drive.
    If it is more then you can do manually and you can't change the name on the source you will have to reformat the destination as case sensitive.
    Btw this group is for discussion of the Support Communities itself, you;d do better posting to Lion group. I'll see if a host will move it.

  • How to print file name and date on document

    How can we print the file name and date, like in the old days, on a document as a header or footer?

    Not the print dialog for iWork but in the app itself. Here is Pages:
    Regards,
    Colin R.

  • Copy File name and Date only from a Folder with SSIS

    Hello all,
    I need to create a package which will list the file names and the dates in a folder, these files are blank flat files. After extracting the file names from the file path i need to create a table which will have two columns Filename and
    Date.We get about 1000 such files every month and we are looking to maintain them in a table.
    Is this possible? Can someone point me in the right direction? 
    FM

    Arthur , I actually figured it out. The For each container let me pass thru the file name, then I inserted the file name into my staging table. I created a FilePath variable and basically Did a sql task and
    INSERT INTO MyTable
    SELECT Filename = ?,
    LoadDate = GetDate()
    In my for each loop I added a *.*txt qualifier... I`ve tested and works well... Got what I needed.
    FM

  • Target Data File Name and Path

    Hi,
    I'm trying to deploy a mapping that writes data into a file, but I need to dynamically set the name and the directory where I want to write this file. The only workaround I found was manually change the pl/sql generated code and change the values in the FOPEN call with a parameter, but this is no what I really want to do. Does anyone know how to tell WB not to hardcode the file name and path?
    I really appreciate you time,
    thanks in advance,
    Matias

    Carla,
    Unfortunately our releases do not go that fast...
    What you could do as an intermediate solution (this is what I would do) is create your mapping and load into a staging table (this can happen in set-based mode so would be fast). In a post mapping process you manually write to the flat file by making the calls to FOPEN etc. by selecting from the staging table. The post mapping process can have an input parameter that you dynamically pass (i.e. via a mapping parameter) and set the file name.
    Mark.

  • IDoc to File with different file name and data based on the IDoc header dat

    Hi,
    I got a requirement to implement IDOC to file senario.  In this the Converted file should have the file name and file content based on IDoc Header data.  Means If one of the IDoc header field value is
    'A'  - then the file name recieved by reciever system should be 'A.txt' and with the columns A  B  C  D  F.
    'B'  - then the file name recieved by reciever system should be 'B.txt' and with the columns C  D  F.
    In both the case IDoc message type is same.
    Please suggest me what i need to do to achieve this.
    Thanks in Advance. ...
    Regards
    Sri

    Hi,
    As per my requirement, we need to create one file for each IDoc based on IDoc header data. SAP program generates 10 IDocs for each run. All 10 IDoc's message type is same.  Each IDoc has one header record with the file name. Base on the  name in the IDoc header record, file needs to be created with different columns and file name. Means..
    IDoc 01- Header Description contains 'A' - than file will be generated should have name as 'A.txt' and columns 'parent'  'child' 'descripion'.
    IDoc 02- Header Description contains 'B' - than file will be generated should have name as 'B.txt' and columns 'Name' 'Department' 'Description'.
    IDoc 10- Header Description contains 'J' - than file will be generated should have name as 'J.txt' and columns 'Order No'  'Materail' 'Description'.
    Hope this will give more clarity on my requirement. Please let me if you are still not clear on requirement.
    Thanks for your all help..
    Thanks & Regards
    Sreeni

  • Truly dumb question. How do I get PS to actually complete a command, eg straighten an horizon, and finalise the change. Even doing a "save as" with a new file name and reloading brings the image back, straightened, but with the skewed back ground frame st

    Truly dumb question. How do I get PS to actually complete a command, eg straighten an horizon, and finalise the change. Even doing a "save as" with a new file name and reloading brings the image back, straightened, but with the skewed back ground frame still there. Is there a "apply change" or similiar command that I simply cannot see.

    brings the image back, straightened, but with the skewed back ground frame
    PSE did what you told it to do. Choose the Straighten and crop edges or fill edges options when you use the straighten tool if you want it to do more than just straighten the contents of the image. Many people prefer the plain straighten because they'd rather crop themselves than let PSE do it.

Maybe you are looking for

  • Help needed in developing midlet to communicate with pc application

    hi , i am trying to develop a j2me application for mobile phone and a j2se application for pc the midlet can send messages to my pc application, upon recieve the message, the pc application will read the message and store it into a database. any1 hav

  • Server 2012 R2 Hyper-V Client won't connect to Host.

    Hi I have a server with 2012 R2 and Hyper-V is installed. I have set my VM's up and everything on the server is working perfectly. I installed the hyper-v role on my Win 7 x64 machine and it will not connect to my server. I ended up calling in to mic

  • Condition type and amount  in VI01 transaction

    Hi All, I want to update condition type and amount  in VI01 transaction. process : transaction VI01 --> enter shipment number -->enter               then double click on item inside that>it will open new screen for that item> here you can see CONDITI

  • 8i Lite and Java Stored Procedure

    Has anyone had success running the Java Stored Procedure examples with 8i LIte. My SQLPLus window alwways dies when the demo sql script triest to attach the stored procedure to the table. The line causing error is: +++++++++++++++++++++++++++++++++++

  • Can't import full length movies into itunes

    I have had no problem getting music videos and other short video material already on my computer into itunes. i simply drag and drop into my library and the videos are reckonized by itunes. i haave have NOT been able to drag and drop larger video seg