Applescript for matching two files creation date

Hello,
I reopen here a question that I posted on another forum (macrumors):
I have converted almost 1,000 video files from MPG1 to MOV in order importing them to Final Cut Pro (FCP can't import directly MPG1!).
So I have TWO folders:
Folder 1 with the original VideoXXXX.mpg1 files
Folder 2 the converted VideoXXXX.mov files.
The file names on both folders are the same. And the number of files in the two folders are the same.
My problem is that the creation date of files in the Folder 2 is the "conversion" time (July 2012) instead the original creation time (from 2005 to 2010).
When imported to FCP, I need the creation time. The name doesn't include the time, so I don't know the file date looking only at the file name.
I need an Apple Script for changing the creation date to the files in Folder 2 files matching the creation date on the Folder 1 files.
- For file n on Folder 1, take name and creation date
- Look for the same file name on Folder 2
- Set creation date of file on Folder 2 to Creation date of original file
I have seen that it can be made with the "touch" command, but I'm new to applescripting and any help would be very appreciated!!
Thanks

Wooow...
How many helping responses! Thanks to you all.
I am trying the first sugested solution.
I have tried adding "file" to theOriginalFile twtwtw script.
(name of file theOriginalFile)
But the error persists (I changed -5 to -4, as the extension is only MPG)
tell application "System Events"
  get POSIX path of every file of folder "HD Mac:users:fhuet:Desktop:Vid1" whose name extension = "MPG"
  --> {"/Users/fhuet/Desktop/Vid1/MOV04859.MPG", "/Users/fhuet/Desktop/Vid1/MOV04860.MPG", "/Users/fhuet/Desktop/Vid1/MOV04882.MPG", "/Users/fhuet/Desktop/Vid1/MOV04905.MPG", "/Users/fhuet/Desktop/Vid1/MOV04906.MPG"}
  get creation date of file "/Users/fhuet/Desktop/Vid1/MOV04859.MPG"
  --> date "viernes, 31 de diciembre de 2004 23:39:00"
  get text 1 thru -4 of name of file "/Users/fhuet/Desktop/Vid1/MOV04859.MPG"
  --> error number -1720 from text 1 thru -4 of name of file "/Users/fhuet/Desktop/Vid1/MOV04859.MPG"
Resultado:
error "System Events ha detectado un error: Espectro no válido." number -1720 from text 1 thru -4 of name of file "/Users/fhuet/Desktop/Vid1/MOV04859.MPG"
If I do
set strippedFileName to name of file theOriginalFile
I got:
tell application "System Events"
  get POSIX path of every file of folder "HD Mac:users:fhuet:Desktop:Vid1" whose name extension = "MPG"
  --> {"/Users/fhuet/Desktop/Vid1/MOV04859.MPG", "/Users/fhuet/Desktop/Vid1/MOV04860.MPG", "/Users/fhuet/Desktop/Vid1/MOV04882.MPG", "/Users/fhuet/Desktop/Vid1/MOV04905.MPG", "/Users/fhuet/Desktop/Vid1/MOV04906.MPG"}
  get creation date of file "/Users/fhuet/Desktop/Vid1/MOV04859.MPG"
  --> date "viernes, 31 de diciembre de 2004 23:39:00"
  get name of file "/Users/fhuet/Desktop/Vid1/MOV04859.MPG"
  --> "MOV04859.MPG"
So it's OK. After that, obviously, it gives another error.
So, the problem is with the instruction
set strippedFileName to text 1 thru -4 of (name of file theOriginalFile). There must be a sintaxis error on that. It says "ESPECTRO NO VALIDO" ERROR
I keep trying and will try the other options.
But I'd like to test all of them, as it's the best way to well understand and study the lenguage.
Thanks again.

Similar Messages

  • How can I change the file creation date?

    I recently downloaded more than 1,000 photos from my vacation. I'm preparing to burn DVDs for a friend, and I noticed that when I copy the photos to the desktop, they don't all have the same date. I have read a couple of discussions here about the difference between photo creation date and file creation date, and I understand the difference. But something seems odd to me.
    For purposes of illustration, let's take two photos: "A" was taken with the camera in the landscape position (how one normally holds a point-and-shoot); "B" was taken with the camera held in the portrait position (rotated 90 degrees). The photos were taken on April 24, about three minutes apart, but not imported into iPhoto until May 19.
    In iPhoto, both files show the actual creation date. Yay!
    The problem is with the files after having been copied to the desktop.
    When copied to the desktop, the info panel for photo "A" shows April 24 for both the "created" and "modified" dates. Photo "B," however, shows May 19 for the "created" and "modified" dates.
    Apparently, when the "B-style" photos were imported into iPhoto, the app automatically rotated them so that they are viewed correctly (without having to turn your head sideways). This is a very nice feature, but the result is that the file date changes.
    Is there any way to change this? I want the DVD to show the date the photo was created, not imported to iPhoto. Picky, I know … but I'm like that. 

    Apparently, when the "B-style" photos were imported into iPhoto, the app automatically rotated them so that they are viewed correctly (without having to turn your head sideways). This is a very nice feature, but the result is that the file date changes.
    Correct.  Your camera has an Auto-Rotate feature. However, the camera does not actually rotate any pixels in the file, but instead flags it with an instruction: "Display me this way". This is a tag in the Exif metadata. When you import a file with this tag iPhoto creates a modified version. It does this because most of the apps that integrate with it -  email clients, word processors etc - simply don't understand this Exif tag. So if you used the shot in a word processing doc, uploaded it to many Web site etc, the shot would come out sideways.
    iPhoto has nothing to say about File dates. There are various file utilities that will edit the dates on Files
    http://www.macupdate.com/app/mac/11143/a-better-finder-attributes
    for instance. But there are otheers, search on  MacUpdate
    Regards
    TD

  • IPhoto file creation date inconsistencies during drag and drop

    I have noticed that if I drag and drop a photo from iPhoto to Finder, the file creation dates in Finder are inconsistent.
    (This question is related to drag and drop only and not File->Export, which always uses the export date and timestamp for the file creation date and thus does not suit my needs).
    TEST A -- If the EXIF DateTimeOriginated is 01/01/2013, and today's date is 03/03/2013, then:
    In some cases when I drag a file to Finder, the EXIF date is used as the file modification/creation date in Finder
    In some cases, today's date is used as the file modification/creation date in Finder
    In some cases, a date in between the EXIF date and today's date is used
    It appears that for case A1, these are files that do not have a modified copy.  That is, if you select the photo in iPhoto and then click "File" -> "Reveal In Finder", the "Modified File" choice will be greyed out.
    For cases A2 & A3, iPhoto has inexplicably decided to create modified versions of these files either today or sometime in the past.
    TEST B -- I have read that unexplained modifications are tied to the auto-rotate function in cameras, and it does seem to be the case when I performed the test below:
    Select a large group of landscape format photos (these would not have been auto-rotated), then drag and drop to Finder.  The file creation dates are set to the EXIF date
    Add some portrait photos to the group in (1).  Now the file creation date of ALL photos including the non auto-rotated photos are set to the current date
    The behaviour in B2 is clearly wrong, since the landscape photos should be the same as in B1.  This is bug #1.
    Furthermore, iPhoto appears to be inconsistent with when these modifications are made.  For example, I dragged & dropped an auto-rotated photo on 02/02/2013, then dragged & dropped it again today, then the file creation date in Finder (and also the date of the modified file in iPhoto, as shown in iPhoto File->Reveal In Finder->Modified File) can either the EXIF date (01/01/2013), the late of the last drag & drop (02/02/2013), or today's date (03/03/2013); there does not appear to be any rhyme or reason to this.  This is bug #2.
    In any case, saying "you should never use drag & drop in iPhoto" (as I have read in some other forum posts) isn't a solution, because Apple should either (a) support this function correctly or (b) remove it altogether.  Furthermore, I regularly burn photos to disk for others so having the file date and timestamps correctly set to the EXIF date helps keeping the photos sorted in the directory listings for multiple OS, so File->Export isn't a solution.

    File data is file data. Exif is photo data. A file is not a photo.  It's a container for a photo.
    When you export you're not exporting a file. You're exporting a Photo. The medium of export is a new file. That file is created at the time of export, so that's its creation date. The Photo within that file is dated by the Exif.
    There are apps that will modify the file date to match the Exif.
    The variation you're seeing is likely due to the changes in how the iPhoto library works over the past few versions. Drag and drop is handy, but is not a substitute for exporting, nor intended to be.

  • Creating folders based on file creation date

    Hi,
    I have a folder full of images and I am looking for an Automator workflow/app/script that can look at the files sequentially, read the creation date and then create folder name based on the file creation date (Year-Day-Month). Then move the file to the respective folder.
    Appreciate any input you can provide.
    Regards
    Tom Erik

    Open the AppleScript Editor in the /Applications/Utilities/ folder and run:
    tell application "Finder"
    repeat with this_file in (get files of window 1)
    set the_date to creation date of this_file
    set folder_name to ((year of the_date as string) & "-" & day of the_date & "-" & month of the_date)
    try
    make new folder in window 1 with properties {name:folder_name}
    end try
    move this_file to folder folder_name
    end repeat
    end tell
    (75533)

  • How can you determine a file creation date and know if it's been altered since the creation date

    I need to know how to determine a file creation date on an ipad.  If someone creates a document/note on an ipad how can you tell when it was created and if it has been altered since?

    Unless you are using a third party app that provides that functionality, in iOS the only thing youcan access is the last edit/save date and time, which is fairly evident in the user interface for documents and notes. Some apps that handle MS Office files may provide that, but ican't say first hand.

  • How can I get the File Creation Date OR Last modification date of the incoming file in my message?

    I need the Last Modification Date and the File creation date of the consumed file in my message, is it possible to do that using a custom pipeline component in decode stage or any other way? The FILE namespace have File creation time that actually gives
    the time the file was dropped in receive location, not the actual creation time. Also this namespace doesn't have the Last Modification Date.

    Yes,
    As per MSDN, "File.FileCreationTime" - "Defines the time that the file was written to the folder that is monitored by the File receive
    adapter."
    So for File Modified DateTime, only option I can think of is create a custom file adapter (updating the File Adapter code from SDK ..\SDK\Samples\AdaptersDevelopment\File Adapter) and access the received file with the code something like the following, which
    you give you the Last Modified date
    string sLastModifiedDate = File.GetLastWriteTime(path).ToString();
    If there are any business requirements which drives you this, then this the only way I can think of. Because you can access the file properties only in adapter, when it passes through adapter file is handled as stream and you will only have context properties
    to access the file related properties.
    If you're looking for implement this for any audit purpose or for your any technical purpose, then you can suggest some alternate than using File updated datetime.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • How to import Filenames and File creation Date into Table..

    Hi Folks,
    I am importing Differennt Excels Files into table. my require ment is after importing completed I need to insert all these Filenames ,File creation date into table. (for Auditing).
    Can you please give me any ideas or reference link.  Thanks In Advance.

    Hi Folks,
    I am importing Differennt Excels Files into table. my require ment is after importing completed I need to insert all these Filenames ,File creation date into table. (for Auditing).
    Can you please give me any ideas or reference link.  Thanks In Advance.
    You can also prepare dir command and then exeucte it by using XP_CMDSHELL. This gives you file name, modified date, creation date information.
    Please refer:
    https://sqljourney.wordpress.com/2010/06/08/get-list-of-files-from-a-windows-directory-to-sql-server/
    https://hernandezpaul.wordpress.com/2013/02/15/store-file-names-and-modified-dates-in-a-table-without-a-foreach-loop-task-sql-server-ssis/
    Cheers,
    Vaibhav Chaudhari
    [MCP],
    [MCTS], [MCSA-SQL2012]

  • [svn] 4214: * Revert revision 4208 for these two files, because I had incorrectly

    Revision: 4214
    Author: [email protected]
    Date: 2008-12-02 13:12:35 -0800 (Tue, 02 Dec 2008)
    Log Message:
    * Revert revision 4208 for these two files, because I had incorrectly
    assumed that a SourcePath always existed.
    tests Passed: checkintests
    Needs QA: YES
    Needs DOC: NO
    Bug fixes: SDK-18282
    API Change: NO
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18282
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/EmbedUtil.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/AtEmbed.java

    Revision: 4214
    Author: [email protected]
    Date: 2008-12-02 13:12:35 -0800 (Tue, 02 Dec 2008)
    Log Message:
    * Revert revision 4208 for these two files, because I had incorrectly
    assumed that a SourcePath always existed.
    tests Passed: checkintests
    Needs QA: YES
    Needs DOC: NO
    Bug fixes: SDK-18282
    API Change: NO
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18282
    Modified Paths:
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/EmbedUtil.java
    flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/rep/AtEmbed.java

  • Get the file creation date

    hi friends..
    i searched many forums to get file creation date
    i didnt get the solution but i found one program which execute
    dos command and gets the output of that.
    so using that program i developed a program to get the file creation Date & Time also
    //getCreationDate.java
    import java.io.*;
    import java.lang.*;
    public class getCreationDate {
    public static void main (String args[]){
      try {
         // get runtime environment and execute child process
         Runtime systemShell = Runtime.getRuntime();
          BufferedReader br1=new BufferedReader(new InputStreamReader(System.in));
          System.out.println("Enter filename: ");
          String fname=(String)br1.readLine();
         Process output = systemShell.exec("cmd /c dir "+fname);
           // open reader to get output from process
         BufferedReader br = new BufferedReader (new InputStreamReader(output.getInputStream()));
         String out="";
          String line = null;
          int step=1;
          while((line = br.readLine()) != null )
                if(step==6)
               out=line;
                step++;
                }          // display process output
          try{
          out=out.replaceAll(" ","");
          System.out.println("CreationDate: "+out.substring(0,10));
          System.out.println("CreationTime: "+out.substring(10,16)+"m");
          catch(StringIndexOutOfBoundsException se)
               System.out.println("File not found");
       catch (IOException ioe){ System.err.println(ioe); }
       catch (Throwable t) { t.printStackTrace();}
    }

    Following line should be modified to make it work on all platforms:
    Process output = systemShell.exec("cmd /c dir "+fname);

  • Can you get file creation dates for Nomad II .NVF fil

    Hi,
    I have an old Nomad II MG that has several voice recordings of my daughter over the last 4 years, but I don't know the dates they were recorded.
    Is there a way to get the actual date of the recording from the Nomad device? All I seem to end up with is the current date when I upload it into Windows.
    Thanks...
    lj

    Hi,
    Newbie to SharePoint, learn quite a lot from the links you provided.
    “I found out that the original dates are only available in SharePoint if the explorerview has been used”, this would make sense because the original creation time is generated
    by the file system in the local machine.
    However, when a file is uploaded to SharePoint library, it will be stored as binary data in the database, as well as the newly created time. It means that it will be a “new” file
    in the SharePoint site regardless of where it comes from.
    Per my knowledge, the only way I can suggest is that you will need to create a client desktop application for the file uploading, which will be a more general way not only for
    uploading a file, but also when we need to migrate files between different systems.
    Thanks

  • Archiving in H264 while keeping folders/file creation date

    *Hi, I just wanted to share with you a script that helps to convert the content of the FCP "capture scratch" folder into H264, to move the converted files into a Device, put the h264 files in the correct client folder.*
    *Into this client folder, it creates folders with the original production name, while it keeps the original creation file date.*
    *So it keeps the original folder hierarchy and date for my archives, because to browse with the final cut server client is great, but sometimes you just want navigate in your file system to work with your videos.*
    *STEP 1* : Original Assets Cataloging (production scan)
    I have a Scheduled Production scan of my "capture scratch",
    (Capture scratch is on our SAN, so all Edit suites are capturing in the same "capture scratch" folder)
    *STEP 2*: Detect to which client the asset belongs to (thanks to the location name) and set the proper [Owner ]metadata asset
    NB: for that I ask all editors to put the name of the client at the beginning of the name of their FCP projects. ex CBS_snow in paris.fcp
    I have Subscriptions that filters created assets location to see if the location "begins with" the client name, then give a "response" that set the correct [Owner] metadata, and also change the "statut" to "WAITINGFORENCODE" (you have to create it into Lookup/Status)
    So I have as many Subscriptions/Reponse as actual Clients
    *STEP 3 :* I have a subscription that filters Modified Assets that have a status of "WAITINGFORENCODE"
    then gives 3 responses.
    +Response 1:+ Set Asset Metadate Status to "ENCODING" ( yeah, Status are made for collaborating tags.. but here we are...)
    +Response 2:+ Copy in H264 (that's where Matrox is great!) into a "transcode folder"
    +Response 3+ (the tough one): Copy the transcoded asset to the right archive location and keep original creation date, create an asset and put it in the same production as the original, and set the original Asset Metatadata Status as "ENCODED"
    Run Script
    Command Path: //path to the script.
    In the command parameters you'll need to enter: [File name] [Location] [Owner] [Asset ID]
    So here is the Script. It's a LOT inspired from Andy Sykes http://fcsvoodoo.blogspot.com/2009/07/add-newly-created-asset-to-originating.htm l
    A big thank to him for publishing it.
    #!/bin/bash
    FILENAME=$1
    PLACE=$2
    CLIENT=$3
    IDFILE=$4
    FILENAME_ESCAPED=$(echo -n "$FILENAME" | \
    perl -pe's/([^-_.~A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg');
    LOCATION_ESCAPED=$(echo -n "$PLACE" | \
    perl -pe's/([^-_.~A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg');
    # Set the location to the fcsvr_client binary
    PATH_TO_BINARIES="/Library/Application Support/Final Cut Server/Final Cut Server.bundle/Contents/MacOS/fcsvr_client"
    # Set the location of the Archives NAS Client Folder
    PATH_TO_TARGET="//Volumes/NASARCHIVES/""$CLIENT""/Footages"
    # Set the location of the Transcoding folder
    PATH_TO_TRANSCODE="//Volumes/EditSAN/Transcode"
    # Set the location of the Original File folder
    PATH_TO_ORIGINAL="//Volumes/EditSAN/Capture Scratch/"
    # Make a folder and move the file in it
    mkdir "$PATH_TO_TARGET""$PLACE"
    mv "$PATH_TO_TRANSCODE"/"$FILENAME" "$PATH_TO_TARGET""$PLACE"/
    #Set Copied File and Folder Date from original
    ORIGDATE=$(GetFileInfo -d "$PATH_TO_ORIGINAL""$PLACE"/"$FILENAME")
    ORIGDATEFOLDER=$(GetFileInfo -d "$PATH_TO_ORIGINAL""$PLACE")
    echo $ORIGDATE
    echo $ORIGDATEFOLDER
    Setfile -d "$ORIGDATE" "$PATH_TO_TARGET""$PLACE"/"$FILENAME"
    Setfile -d "$ORIGDATEFOLDER" "$PATH_TO_TARGET""$PLACE"
    # Determine original Production "address" by searching for the "location" (since this is the same as the Production name)
    PROJECTNAME=$("$PATH_TO_BINARIES" search --crit "$PLACE" /project | grep -i -o -e "/project/[0-9]*")
    echo $PROJECTNAME
    # Create asset and associate it with the project
    OUTPUT=$(sudo "$PATH_TO_BINARIES" createasset pa_asset_actua --projaddr $PROJECTNAME /dev/11/"$CLIENT""/Footages""$LOCATION_ESCAPED"/"$FILENAME_ESCAPED" CUST_ASSET_STATUS="INRAID6")
    echo $OUTPUT
    # Change Original metada asset status
    SETMETA=$(sudo "$PATH_TO_BINARIES" setmd /asset/$IDFILE CUST_ASSET_STATUS="TRANSCODED")
    echo $SETMETA
    Weekness of the script is when you're converting non .MOV files (or different extension in the H264 copy than the original), I could not figure out how Andy Skypes managed with the extensions in his script, so I just pass it.
    Now it's working like a charm after I had a lot of Issues due to the escape characters, but thanks the the perl command ,it's good now. But you will still need to ask editors to avoid / and & and () in file names...
    Well, I just make it work yesterday, so now I breath cause I couldn't figure out if investing if FCS would be more a sufferance than a relieve because lot of people saying that you have to totally rethink the way you work with assets, and forget about your folder hierarchy...but this, I couldn't hear It, especially when I saw the mess that was about to happen with thousands of P2 clips.
    My conclusion would be: Metadatata is great, but folder hierarchy can save you if you loose your DB or want to migrate ...
    au revoir.

    here we go
    #!/bin/bash
    FILENAME=$1
    PLACE=$2
    CLIENT=$3
    IDFILE=$4
    FILENAME_ESCAPED=$(echo -n "$FILENAME" |
    perl -pe's/([^-_.~A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg');
    LOCATION_ESCAPED=$(echo -n "$PLACE" |
    perl -pe's/([^-_.~A-Za-z0-9])/sprintf("%%%02X", ord($1))/seg');
    # Set the location to the fcsvr_client binary
    PATH_TO_BINARIES="/Library/Application Support/Final Cut Server/Final Cut Server.bundle/Contents/MacOS/fcsvr_client"
    # Set the location of the Archives NAS Client Folder
    PATH_TO_TARGET="//Volumes/ARCHIVES/""$CLIENT""/Footages"
    # Set the location of the Transcoding folder
    PATH_TO_TRANSCODE="//Volumes/EditSAN/Transcode"
    # Set the location of the Original File folder
    PATH_TO_ORIGINAL="//Volumes/EditSAN/Capture Scratch/"
    # Make a folder and move the file in it
    mkdir "$PATH_TO_TARGET""$PLACE"
    mv "$PATH_TO_TRANSCODE"/"$FILENAME" "$PATH_TO_TARGET""$PLACE"/
    #Set Copied File and Folder Date from original
    ORIGDATE=$(GetFileInfo -d "$PATH_TO_ORIGINAL""$PLACE"/"$FILENAME")
    ORIGDATEFOLDER=$(GetFileInfo -d "$PATH_TO_ORIGINAL""$PLACE")
    echo $ORIGDATE
    echo $ORIGDATEFOLDER
    Setfile -d "$ORIGDATE" "$PATH_TO_TARGET""$PLACE"/"$FILENAME"
    Setfile -d "$ORIGDATEFOLDER" "$PATH_TO_TARGET""$PLACE"
    # Determine original Production "address" by searching for the "location" (since this is the same as the Production name)
    PROJECTNAME=$("$PATH_TO_BINARIES" search --crit "$PLACE" /project | grep -i -o -e "/project/[0-9]*")
    echo $PROJECTNAME
    # Create asset and associate it with the project
    OUTPUT=$(sudo "$PATH_TO_BINARIES" createasset pa_asset_actua --projaddr $PROJECTNAME /dev/11/"$CLIENT""/Footages""$LOCATION_ESCAPED"/"$FILENAME_ESCAPED" CUST_ASSET_STATUS="INRAID6")
    echo $OUTPUT
    # Change Original metada asset status
    SETMETA=$(sudo "$PATH_TO_BINARIES" setmd /asset/$IDFILE CUST_ASSET_STATUS="TRANSCODED")
    echo $SETMETA

  • Get a files creation date with UTL_FILE or DBMS_BACKUP_RESTORE.SEARCHFILES

    Hello gurus!
    I have a number of files in the filesystem and i need to find out the names and creation dates of these files. Please do not suggest Java as that is not an option.
    So far i get the names of the files from the SYS side with a procedure that I can call from the user side. The procedure returns an XML string:
    create or replace procedure list_directory(directory varchar2, retResultSet OUT VARCHAR2) is
         ns          VARCHAR2(1024);
         v_directory VARCHAR2(1024);
    BEGIN
          v_directory := directory;
          SYS.DBMS_BACKUP_RESTORE.SEARCHFILES(v_directory, ns);
          retResultSet := '<list>';
          FOR each_file IN (SELECT fname_krbmsft AS name FROM x$krbmsft) LOOP
              --DBMS_OUTPUT.PUT_LINE(each_file.name);
              retResultSet := retResultSet  || '<file>' ||each_file.name|| '</file>';
          END LOOP;
          retResultSet := retResultSet || '</list>';
    end list_directory;Question 1:
    Something like each_file.creation_date would be perfect but it seems like the filename is the only attribute available here from x$krbmsft. Am i wrong? Any other way on the SYS side to get the date?
    Question 2:
    On the users side i could use UTL_FILE to get filesize but not much more valuable information. Can i get the creation date somehow with UTL_FILE or similar?
    Any help is appreciated!

    Anyone got any ideas?Maybe a method as described in Re: Read all file names from Directory. may help (Shows also FileCreationDate).

  • Naming for Export dmp file in Date and Time

    Dear All,
    Please advise me how to give the file name in date and time stamp for the export dmp file and it's log file.Suggest me in Oracle 9i version.
    for example the file name get like this 020420041155.dmp and 020420041155.log where date and time are 02/04/2004 11:55 respectively...
    Kindly let me know the syntax of filename to be given along with the EXP command..
    Thanking You,
    Ragesh

    Hello
    I don't think you can get the exp command to automatically name an export for you. The only way I think you would be able to do it is through a shell script or something where you format the file name yourself and pass it to exp. If you wanted to you could generate the command line through a SQL statement and then spool it out to a file i.e.
    spool runexp.bat
    select 'exp user/pwd@tns file='||TO_CHAR(SYSDATE,'DDMMYYYYHH24MI')||'.dmp tables=(table1,table2)' from dual;
    spool offThe second option isn't as flexible as the first but if it's just a couple of exports you have to do, it will probably prove to be less work
    HTH
    David

  • To get the file creation date

    Hi All,
            Can anyone tell me how to get the creation date of a file in SAP Directory.
      Is there any function module to do so.
    Thank You.

    I don't believe one exists. You may need to do a JNI call to get this.

  • Recommended distortion method for matching two images

    I have two images of North America as separate layers that I'm trying to line up as closely as possible. One is a color image of the earth's surface while the other is a grayscale image representing the topography of the terrain. There are many obvious visual features in the images to use for matching, but I'm not sure what is the best tool or workflow for distorting, scaling, skewing, etc. I have previously been using "Warp," but while I can line up certain areas easily, other areas appear quite difficult to line up. I'm wishing there was a way to define "features" that I want matched up and then let Photoshop do an automated process, but I think that may be asking a little much. Because the images may have been taken from different angles, it's not just a simple non-proportional scale problem. Some areas need to be squished while other areas need to be stretched. Any suggestions?

    If the two maps are from different sources or different times, or have been created using different map projections, or if the two maps have different levels of accuracy, you may not be able to get a perfect match-up.
    Neil

Maybe you are looking for

  • If you're having activation difficulties, ...

    So I just got off the phone with at&t support, and after a 5 minute conversation with first tier tech support, my phone is syncing and i've received several calls thus far. There are various things that can be causing problems with your iPhones, ther

  • RMAN backup restoring to new server help!

    I'm using Oracle 8.1.7. The production database was copied (datafiles, controlfile etc) to a NEW server that I'm trying to set up as a development DB. I take full database backups using RMAN from the production server, and I want to restore them on t

  • GPS problem with Curve

    My GPS sometime work and sometime doesn't with my BB curve Telus told me this was a know issue that the new release 4.5 would fix this problem¸ For Now telus are at 4.3, but I see BB web site is at 4.6 Does any telus user tried that ?  Will it upgrad

  • What's the function of runtime defined setting to process role?

    <h3>*Hi ladies and gentlements,* *I am new to guided procedure. I have meet a case that I should runtime allocate the roles or users to process action.* *But after I set it to runtime define, It seems nothing activated. I had initialized it and saw i

  • Header text not displayed in quotation

    Dear all , I am using standard form for quotation printing but the text i enter in quotation header it is not getting displayed in the standard layout of the quotaion . is there any settings i need to do . pls advise Ramar