How to create a new folder with a different name everyday

Hello everybody,
I have another question if you don't mind. But first thank you again to V.K and red menace for helping me with the my previous post.
This is actually the same project, I just keep on seeing new obstacles when I'm almost done.
Below is my workflow. My workflow is exporting a quicktime movie to a folder in our server.
What I need to do at the end is to move the exported file into a folder but a folder needs to be created and it has to change at about midnight everyday.
For example today the file will go to Server>Client folder>File folder named 09-04-2008
Then the next day, I need to put the new exported files to Server>Client folder>File folder named 09-05-2008.
First, how can I create a sequential named folders and second how can I tell Automator to put the files in the right folders. This process is a 24 hour process.
Thanks for you future help.
Helmut
1) Get Specified Finder Items (Pointing to File Folder)
2) Get Folder Contents (tried checked and uncheck on Repeat for each subfolder
3) Get Specified movie ( I guess Filter finder items and choose .mov will work too)
4) Quicktime Export (exporting it to the Exported Folder)
5) Get Specified Finder Items (Pointing to File folder to get to the original file)
6) Get Folder Contents
7) Filter Finder Items (choose .mov)
8) Move Finder Items ( pointing to Archive Folder to move the original file)
9) Get Specified Finder Items (Pointing to Exported Folder)
10) Get Folder Contents
11) Filter Finder Items (.mov)
12) Move Finder Items (Pointing to Server Folder)

It doesn't look like there is an easy way to do this. The sort and filter actions don't let you use variables, and I haven't found any actions that will alter a list. Making a text file with the name of the newest folder seems kind of clunky, but it is an option.
What I was thinking about was an action that would take the first item in a list - then you could get your backup folders, sort by creation date, and just take the top one in the list (the newest one). Hmmm - this should be fairly straight-forward, so maybe I'll write an action
In the mean time, give the Run AppleScript action in the following workflow a try.
Tested workflow:
1) Ask for Finder Items (Type: Folders)
2) Get Folder Contents
3) Sort Finder Items (by creation date in ascending order)
4) Run AppleScript (the following script)
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px;
color: #000000;
background-color: #FFDDFF;
overflow: auto;"
title="this text can be pasted into an Automator 'Run AppleScript' action">
on run {input, parameters}
return the first item in the input list
input: a list of anything
output: the first item, or {} if none or error
set output to {}
try
set the end of the output to the first item of the input
end try
return output
end run</pre>
5) View Results
The above workflow should return the newest item in the selected folder.

Similar Messages

  • How to create a new folder in my iPad hotmail?

    How toI create a new folder in my iPad hotmail?

    You can only do it with IMAP email account; to do this:
    1. Go to your email account in the Mail app and look at the window where your Inbox, Trash folder and Sent folder are.
    2. Tap the Edit button
    3. Tap Add Mailbox (bottom)
    Note: If there is no Edit button, your email account is not a IMAP account

  • How to create a new folder within the video folder in media

    Hi, I'm trying to figure out how to create a new folder within the video folder in media. I can easily create new folders within the pictures folder but not in videos.....Why??? Thanks in advance for your help.
    Message Edited by dany_s on 06-25-2009 03:58 PM
    Solved!
    Go to Solution.

    Hello,
    I think you can try two things : the soft reboot, and if it does not work, the hard reboot. Don't worry, you can't lose data with these two reboots.
    Soft reboot :
    1) Hit the three following keys at the same time :
    - Alt
    - Right Shift
    - Delete
    2) wait 2 minutes for the Blackberry to wake up.
    Hard reboot :
    1) your Blackberry device is on
    2) remove the battery and wait for a minute
    3) Put the battery back
    4) wait 5 minutes for the device to wake up.
    Please tell us if it works for you.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • How to create a new folder in my email box

    how to create a new folder in my email box?

    Organizing Mail
    http://support.apple.com/kb/HT5361

  • How to create full new user with all privileges

    how to create full new user with all privileges?
    and how to delete existing users?
    Thanks in advance..

    Common solution is probably to use sudo for privilege elevation, wiki should help

  • How to create a new folder at the specified FTP location

    Hi everyone,
    Please guide me for the following query:
    How to create a new folder at the specified FTP location if the folder does not exists at that location through ABAP program.
    Please guide.
    Thanks and Regards
    MP

    Have a look at the function group SFTP. Use function module ftp_command to create the directory sending the mkdir command.
    Use the where-used list to find sample programs.

  • How to Create a new column from two different result sets

    How to Create a new column from two different result sets, both the result set uses the different date dimensions.

    i got solutions for this is apply filters in column formula it self, based on the requirement.

  • Purpose: to create photo galleries to insert or not items: 1) with phocagalery, it works 2) with the transfer via lightroom, I do not see the downloaded files but if I want to create a directory folder with the same name, he said he is already, I see noth

    purpose: to create photo galleries to insert or not items:
    1) with phocagalery, it works
    2) with the transfer via lightroom, I do not see the downloaded files but if I want to create a directory folder with the same name, he said he is already, I see nothing in the media in content management
    Can you help me

    Mahsa21,
    We are glad that we were able to resolve the international calling plan issue for you.  If you need assistance,please  reach out to us.
    thanks,
    Tonya D.

  • Have a new computer with a different name.  New computer does not reconize the ipod classic device?

    Have a new computer with a different name.  New computer does not recognize the ipod classic device? How can I remody this problem

    Add '''DOZEN''S''''' of giggs of ram, switch from hard disk to SSD or add inline SSC.
    Consult some free experts about potential malware infestation: BleepingComputer.com
    In windows control panel is an option to rate performance of your computer. What number does the applet rate your computer?
    http://windows.microsoft.com/en-US/windows7/What-is-the-Windows-Experience-Index

  • Can I create a new folder with Js in ID?

    Hi,
    I want to create a new folder(not an exist folder) with JS in ID.
    Anyone can tell me how to do?
    Best Regards
    Goldbridge

    Goldbridge,
    I don't have time to check it, but f2, I think, should be a file path or a file object - not a folder object:
    fileObj.copy (target)
    target - A string with the URI path to the target location, or a File object that references
    the target location.
    Copies this objects referenced file to the specified target location. Resolves any aliases to find the source file. If a file exists at the target location, it is overwritten.
    So it should be:
    var myText = "save this";
    f1=new File("~/Desktop/images/1.txt");
    f1.open("w");
    f1.write(myText);
    f1.close();
    // I assume that aaa folder already exists
    f2=new Folder("~/Desktop/images/aaa");
    f1.copy("~/Desktop/Images/aaa/1.txt");
    Kasyan

  • How to create the new row with existing values

    Hi all,
    first of all i create a row,
    i opened that in edit mode,
    suppose i want to edit any one of the value in that recordd,
    that time compulsory create a new row with those valuess.
    how can i create a new row with those valuess.

    Hi Anusha,
    This code correct for your requirement, only thing is you are not able to modify it as per your requirement.
    What you have to do is:
    1. Copy queried row into into new row, change primary key values(but don't commit your changes here).
    2. Now you have two rows in your VO(OLD as well as New)
    3. Make any changes if you want using User Interface.
    4. At the save button first compare OLD and NEW row, if any value is differing then commit the chnages(it will insert new row in corresponding database table), if no changes are there I mean to say OLD value and NEW rows are same then rollback(it will remove copied row from VO and no row will be inserted in database.)
    While comparing rows please note that Primary keys will not be same so don't compare Primary keys while comparing rows.
    I hope it will help you.
    Regards,
    Reetesh Sharma

  • How to create a new file with existing file's resource fork?

    Hello,
    I would like to create a new file that has the resource fork of an existing file. I had though of making a copy of the existing file, seek to the beginning of the copy and write the new data, but for large files, that creates the whole file even when not needed. I currently create the new file with [NSFileManager createFileAtPath: contents: attributes:], but attributes do not include resource fork items, like custom icons, color label, etc.
    [NSURL resourceValuesForKeys] gives a common subset of resource data, like icons and color label, but that's about it. Is there some way to get the resource fork or a copy of the file without getting the whole file?
    Thanks

    What are you trying to do here? While resource forks might still be quasi-supported, you really shouldn't be thinking about them as such. Instead, think in terms of extended attributes. You can use the low-level xattr() functions to get some of that or you can use the new NSURL methods.

  • How to create a new workspace and change the name of the existing

    Hi,
    can any one help me how to create a new workspace in application express 3.1 on XE DB and how to change the name of a existing workspace.
    thanks
    Jana

    Jana,
    This is discussed at length in the User's Guide. See the section "Creating Workspaces".
    To rename a workspace using the admin application, edit the workspace attributes and type a new name in the field where the old name appears, then Apply Changes.
    Scott

  • How to create a new index with already indexed folder

    Hi
    I have a requirement to create a new index.
    I can able to create index. But,When i am specifying the data source, i am trying to include a data source which was already indexed in another index.
    The system giving error that "The folder is already indexed and its available in another index".
    How should i specify same folder in different indexes?

    Hi Patricio,
    Thanks for your reply.
    Our requirement is
    From your example, lets take
    index1 containts a data sources \folder1.
    and i have a requirement to create another index called index2 with data sources
    1) \folder1
    2) \testfolder\testfolder1.
    From help.sap.com i understand that there is no way to specify the same folder in different indexes.
    I am looking for, Is there any solution to meet my requirement
    Thanks

  • How to create a new track with existing changes in the production

    Hi
    I need to create a new track for the ESS package with the existing changes that we already made to the ESS package. We already have a development track and the customisation to the ESS package has been already done in that track. Now my requirement is to create a new track ( DEV, CONS, TEST and PROD) with DEV having all the existing changes we made. In short how do I import the SCA's from development track PROD to the new track DEV. We are on NW2004 SPS20.
    points rewarded for helpful answers
    Thanks
    Sheril

    Param
    Have you done the import in DEV and CONS  and then Assembled .. ?
    If yes then go to /usr/sap/jtrans/CMS/archives/.......... -> check for the track name and then the last .SCA file in it . Copy that SCA file in the /usr/sap/jtrans/CMS/inbox  and go to the new track and configure the checkin to inbox ... You should see the SCA in there ... check those in and you are ready to have those SCA in your Production track ..
    If no then you need to know the NWDS functions .. I shall send you the details to bring the incomplete changes (not assembled) to new track .. let me know if the first one worked ..
    Thanks
    Rahul

Maybe you are looking for

  • Crystal Reports XI String [255] limit with the File System Data driver...

    I was trying to create a Crystal Reports XI report to return security permissions of files and folders.  I have been able to successfully connect and return data using the File System Data driver as the Data Source; however the String limit on the AC

  • My ipod is not recognized by the computer

    When I plug my nano into a computer my itunes dose not recognise that it is pluged in. The screan of the ipod gives me the charging symbol. I know it has a good over night charge and my other ipods hook up just fine

  • Creation inpayment agreements and cash flow to a loan account in banking

    Hi, I am using bapi "BAPI_BCA_INPAYMENT_AGR_CHANGE" to create inpayment agreements and cashflow to a  loan account. It is updaing inpayment agrrement and cash flow table properly but the issue is it is not updating the first screen of the cashflow ta

  • Check in Document: Kpro Screen Help

    HI All, I just installed SAP content server 6.40.  Everything is green and running in CSADMIN so I think it is working correctly.  I tried to test it by checking in a document in CV01N, but I get stuck when I try to check it in.  I click "Check in Or

  • Satelitte l745-s4210 factory restore

    my laptop won't start normally nor will it start in safe mode or run the repair utility.  i want to restore to factory but can't find the right pf key or instructions.  i have been searching for hours.  please help.  thanks Solved! Go to Solution.