Script for automator to names jpegs with incorrect metadata date

I use Automator to name my images YYYYMMDDHHMMSSname.jpg. Some images have the incorrect time stamp because I forgot to change the camera time while traveling in a different time zone. How do I write a script to correct this?
G5, dual 2 GHz   Mac OS X (10.4.8)  

If your camera records EXIF data with each jpeg, then try using EXIF Renamer rather than Automator.
20 iMac G5, 1.25Gb RAM, 20Gb iPod, iSight   Mac OS X (10.4.8)   Newton 2100, 2000 (upgraded).

Similar Messages

  • Create ecatt script for one sales order creation with multiple line items

    Hi ,
    I want to create a ecatt script for one sales order creation with multiple line items. Preferably SAP GUI.
    This selection of data will be from an external file/ variants which will have only one row of data in it.
    Firstly: I have to sort the external file having same PO Numbers in an order.Group them together.
    Second: I have to create sales order for those many line items having same PO Number.
    Best Regard
    Taranum

    Hi Micky
    Firstl you should upload the Line items for a particular sales Order in an Internal table
    and then pass that internal table to your BAPI during your coding corresponding to a particu;lar sales order
    In case of any issues pls revert back
    Reward points if helpful
    Regards
    Hitesh

  • Standard  report(for open PO order items) with estimated Delivery dates

    hi friends
    i would like to know if there is any standard  report(for open PO order items) with estimated Delivery dates on it.
    thanks
    alahari

    ME2M (by material)
    ME2L (by vendor)
    ME2N (by number)
    Use selection parameter WE101 for open GR
    and scope of list EINT (scheduling lines)

  • I am having problems importing my Iphoto pics into new Photo programme. I am inporting approx 11,000 pics that all seem fine in Iphoto but the iport rejects around 7,000 of them with incorrect mete data. What can I do to import these?

    I am having problems importing my I photo pics into new Photo programme. I am importing approx 11,000 pics that all seem fine in I photo but the import rejects around 7,000 of them with incorrect mete data. What can I do to import these?

    I have the same problem.
    Thread here: Import fails - "Unable to get metadata"

  • Script for Automator to reorder text in file/folder name.

    I have a folder full of pictures named by their first and last names. I need them to be renamed by listing them by last name first, first name last in order to get them alphabatized properly. Anybody out there have a nice Automator script for me to make this happen? I'm new.
    Looking for it to look like this:
    Brown, John

    Try this (should work for "John H Smith" --> "Smith John H" as well):
    The Run Shell Script Action is:
    for f in "$@"
    do
        basename=${f##*/}
        path=${f%/*}
        ext=${f##*.}
        name=${basename%.*}
        if [[ "$name" =~ \  ]]; then
            fname=${name% *}
            lname=${name##* }
            name="$lname $fname"
            mv "$f" "$path/$name.$ext"
        fi
    done
    If you want a comma, then change: name="$lname $fname" to name="$lname, $fname"
    As with all scripts, back-up the files before running

  • Using System::StartTime in variable for external file name comes out incorrect sometimes

    Hi All,
    I have an interesting dilemma.  I'm using SQL Server 2005 with Visual Studios 2005 (9.00.4035.00).
    I'm writing records from my database table out to an external flat file, nothing fancy other than in the naming of the file being dynamic and using system time.  So I have a couple of variables set:
    CR_Dir = \\host\directory\
    CR_Outfile = "AP_" +  (DT_WSTR, 4)  YEAR( @[System::StartTime] ) + RIGHT("0" + (DT_WSTR, 2) MONTH(@[System::StartTime] ),2) + RIGHT("0" + (DT_WSTR,2) DAY( @[System::StartTime] ),2) + RIGHT("0"
    + (DT_WSTR,2) DATEPART("Hh", @[System::StartTime] ), 2) + RIGHT("0" + (DT_WSTR,2) DATEPART("mi", @[System::StartTime] ),2) + RIGHT("0" + (DT_WSTR,2) DATEPART("ss", @[System::StartTime] ),2)
    + "_chref"
    And then in my Connection Manager properties I have an expression that brings them all together with a file extension:
    @[User::CR_Dir] +  @[User::CR_Outfile] + ".ctl"
    So what I should get for example is something like AP_20140309214502_chref.ctl  (if the job was run on 03/09/2014 @ 9:45pm) When executed properly.  I do this for two flat files one with an extension of .txt and the other with .ctl. 
    These steps are working fine the majority of the time.
    However, my problem is that occasionally, the portion of the filename that contains the datetime stamp is completely incorrect for one of the two files that are created during the same time frame.  And I'm not talking about a few seconds or even a minute
    or two, the date is off by weeks.  Here's an example:
    AP_20140309214502_chref.txt
    AP_20140213152253_chref.ctl
    This has happened twice since starting to run this job over the past four months, once on 12/15/2013 and again 03/09/2014.  This job is run every night at 9:45pm, and all the other days that this job runs the two filenames come out perfectly. 
    So I'm leaning towards something in the system that may be corrupting my variable every once in a while?  But because it happens intermittently how can I verify this?  Or is there a better way to perform what I'm trying to do that would be more accurate
    and consistent?
    Any help would be appreciated.
    Thanks
    Sawyer

    Hi All,
    I haven't found a solution to this issue.  I'm not actually able to reproduce it at will, so it's hard to troubleshoot.  What I've decided to do is rewrite my variable expression and make one system call for date and time and place it into
    a variable and then use the variable to build the file name.  Also I changed from using the System::Startime to using the GFETDATE() function (Don't know if this helps but it was easier to use in my substring when I parsed out the different time elements:
    v_DATETIME   STRING   SUBSTRING((DT_STR,30, 1252)GETDATE(), 1, 19)
    CR_Outfile      STRING   "AP_" + SUBSTRING(@[User::v_DateTime],1 ,4 ) + SUBSTRING(@[User::v_DateTime],6 ,2) + SUBSTRING(@[User::v_DateTime],9 ,2) + SUBSTRING(@[User::v_DateTime],12, 2) + (@[User::v_DateTime],15 ,2) + SUBSTRING(@[User::v_DateTime],18,2)
    + "_chref"
    I don't want to leave this thread as unanswered for too long so I'll give it another day or two and then close it.  I'll report back in a few months to let you all know if this problem has reoccurred or not.
    Thanks for the assistance.
    Sawyer

  • Batch script for automating process

    Hi all, not sure if this is the right area asking about batch scripts, but this has to do with the back-end system in Hyperion.
    I was wondering if there is a way to run a batch script on the transaction log that will give a list of any new GL accounts that have been added in the prior month or within the last 30 days? Can it also show which users are added to the account?
    The purpose of this is to automate the process periodically and eliminate the Outline Maintenance Log or import to the Outline Maintenance Log. It would be helpful for adding more new cost centers.
    Lastly, can I also run a batch script to see how often our end-users are in Hyperion reports?
    thank you.

    +...give a list of any new GL accounts that have been added in the prior month...+
    Correct me if i'm wrong:
    You want to know new members added in the account dimension recently. Is that right?
    If so, you could do a select command like that:
    SELECT O.OBJECT_NAME -- Just the member name. For alias, you need another join
    FROM HSP_ACCOUNT A -- For performance, i put the smallest table here
    INNER JOIN HSP_OBJECT O ON A.ACCOUNT_ID = O.OBJECT_ID -- Join to get the member name
    WHERE O.CREATED >= (SYSDATE-(30)) -- last 30 days
    Note this specific select you can only get the account dimension. Entity has his own table too.
    For custom dimention it gets a little more complicated.

  • Is there a script for changing layer names in ID CS4?

    I have multiple documents with an average of 20 layers in each. Each of the layers is named for the expiration date of the coupon in the ads. When a new order comes in I retrieve the previous files and change the dates via scripts and the Find/Change option. I have looked but cannot find a way to rename the dates in the layers as well.
    Does anyone know of a script for this?
    Thanks in advance!

    E-mail, eh? You're missing out a lot of fun stuff, as there is
    - editing your own posts
    - using bold and italics to highlight important stuff
    - finally being able to shout (some posters think it's necessary to use a large bold font to make their post stand out in the crowd. They are correct, it does. In the Bad way.)
    - inserting images
    - uh, Jive (-- sorry, couldn't think of any more fun stuff to add)
    Visit the scripting forum (using a web browser, s'il vous plait) by clicking here.

  • Script for automation.

    Rhel 5.
    11.2.0.3
    Any body have idea how to write a scripts to fullfill below requirments.
    script 1) Change Partition name and subpartition name ( Range Hash). First List and then change.
    script 2) Estimate Size and then purge data of selected partition by exchanging into a separate table.
    any help will be highly appreciated!!
    My workaround is
    *1) script 1*
    i) partition and sub partition listening.
    select table_name, PARTITION_NAME,TABLESPACE_NAME from user_tab_partitions where table_name='XXXX';
    select partition_name,TABLESPACE_NAME from user_segments where segment_name='XXXX';
    partition and subparition renaming
    ii) partition and sub parition renaming.
    alter table <tablename> rename partition <old parition name> to <new parition name>;
    ALTER TABLE <tablename> RENAME SUBPARTITION <old-partition-name> TO <new-partition-name>;
    *2) scrpit 2*
    I) Estimate size of sub parition
    select substr(partition_name,1,7) p_name,sum(bytes)/1024/1024 "MB" from user_segments where segment_name='INFO' group by substr(partition_name,1,7);
    ii) Exchange parition.
    a) create a table with sub parition type i.e hash parition table
    b) create new table rang hash.
    c) first exchange partition with sub partition type table than exchange sub partition type table with new rang hash partition.
    alter table <old range hash table> exchange partition <partition name> with table <sub type hash table>;
    alter table <sub type hash table> exchange partition <partition name> with table <new range hash table>;
    Now my question is how can i read partition and sub parition names in script and than rename and exchange it dynamically??.
    Edited by: Kh$n on Apr 25, 2013 5:20 AM

    1) day wise not month wise.what? dont understand sorry, plase elaborate it.
    2) i dn.t want to truncate it directly before truncating i want to save that data to another table thats why am exchanging it.with an example:
    SQL> CREATE TABLE my_table
      2  (id  NUMBER(5),
      3  name VARCHAR2(30),
      4  mydate    DATE)
      5  PARTITION BY RANGE(mydate)
      6  (
      7  PARTITION january2013 VALUES LESS THAN(TO_DATE('01/02/2013','DD/MM/YYYY')),
      8  PARTITION february2013 VALUES LESS THAN(TO_DATE('01/03/2013','DD/MM/YYYY')),
      9  PARTITION march2013 VALUES LESS THAN(TO_DATE('01/04/2013','DD/MM/YYYY')),
    10  PARTITION april2013 VALUES LESS THAN(TO_DATE('01/05/2013','DD/MM/YYYY'))
    11  );
    Tabla creada.
    SQL> insert into my_table values (1, 'Fran', '01/01/2013');
    1 fila creada.
    SQL> insert into my_table values (1, 'Mike', '11/02/2013');
    1 fila creada.
    SQL> insert into my_table values (1, 'Donald', '11/03/2013');
    1 fila creada.
    SQL> insert into my_table values (1, 'Anna', '11/03/2011');
    1 fila creada.
    SQL> commit;
    Confirmaci¾n terminada.
    SQL>
    SQL> select * from my_table;
            ID NAME                           MYDATE
             1 Fran                           01/01/13
             1 Anna                           11/03/11
             1 Mike                           11/02/13
             1 Donald                         11/03/13
    SQL> create table my_new_table(id number(5), name varchar2(30), my_date date);
    Tabla creada.
    SQL> select * from my_new_table;
    ninguna fila seleccionada
    SQL> ALTER TABLE my_table
      2  EXCHANGE PARTITION march2013
      3  WITH TABLE my_new_table;
    Tabla modificada.
    SQL> select * from my_new_table;
            ID NAME                           MY_DATE
             1 Donald                         11/03/13
    SQL> select * from my_table;
            ID NAME                           MYDATE
             1 Fran                           01/01/13
             1 Anna                           11/03/11
             1 Mike                           11/02/13With this you directly exchange data from partition to a table, don't need to purge the partition.

  • Apple Script For Opening External EML File With Apple Mail

    Hi folks,
    

 I am working with Apple Script for implementing numerous function related to Mail App.
    

I am using the following Apple Script lines for opening the mails which are in Mail app for each modes.
    

View Mode : open theMsg

    Reply View Mode : reply theMsg opening window yes

    Reply All Mode : reply theMsg opening window yes reply to all yes

    Forward Mode : forward theMsg opening window yes



    I want to know how we can open external eml file in different view modes (View, Reply, Reply All and Forward) using Apple Script or Apple Event programmatically with a similar mechanism available through script in Mail App.

    
Thanks in advance.

Regards
    
Nisar

    I'm not sure what you're doing here, but this isn't anything I recognize as compilable applescript. what is this 'mode' thing you're talking about.
    at any rate, if you have a loose emlx file sitting around somewhere you can simply open it in mail (use the 'open' command and the file specification for the emlx file) and work with it appropriately. if you're talking about an actual eml file (e.g. from Outlook Express) you'd have to GUI script Mail's 'import mailbox' command (the applescript handler for importing mail only works with Mail.app mailboxes)

  • Query for retreiving table names that have the same data

    Hi,
    Does anybody know how to retreive all the table names that have the same data in their respective tables but i dont know the table names or its fields. Is there any possible query to perform this action???
    Thanks in Advance,
    Balaji.

    What about...
    WITH manager_list AS
    SELECT name,
            LTRIM(MAX(SYS_CONNECT_BY_PATH(id,','))
            KEEP (DENSE_RANK LAST ORDER BY curr),',') AS employees
    FROM   (SELECT m.name,
                    e.id,
                    ROW_NUMBER() OVER (PARTITION BY m.name ORDER BY e.id) AS curr,
                    ROW_NUMBER() OVER (PARTITION BY m.name ORDER BY e.id) -1 AS prev
             FROM   manager m,
                    join_table jt,
                    employee e
      WHERE m.id           = jt.manager_id
      AND   jt.employee_id = e.id
      AND   m.name = :P_MANAGER)
      GROUP BY name
      CONNECT BY prev = PRIOR curr AND name = PRIOR name
      START WITH curr = 1
    ), all_list AS
    SELECT name,
            LTRIM(MAX(SYS_CONNECT_BY_PATH(id,','))
            KEEP (DENSE_RANK LAST ORDER BY curr),',') AS employees
    FROM   (SELECT m.name,
                    e.id,
                    ROW_NUMBER() OVER (PARTITION BY m.name ORDER BY e.id) AS curr,
                    ROW_NUMBER() OVER (PARTITION BY m.name ORDER BY e.id) -1 AS prev
             FROM   manager m,
                    join_table jt,
                    employee e
      WHERE m.id           = jt.manager_id
      AND   jt.employee_id = e.id)
      GROUP BY name
      CONNECT BY prev = PRIOR curr AND name = PRIOR name
      START WITH curr = 1
    SELECT a.*
    FROM   manager_list m,
           all_list a
    WHERE  m.employees = a.employeesWould be easier in 11g, but I don't have an installation here so this is based on 10g.
    Cheers
    Ben

  • CRM - Bapi for creating relationship between BPs with sales area data

    Hi
    I am looking for BAPI for creating relationship between business partners with sales area data in CRM 5.0.
    Example - I would like to create relationship type CRMH03.
    Bapi BUPR_RELATIONSHIP_CREATE does not allow for maintaining sales area data (Sales org, distribution channel, division).
    Does anybody know such a bapi?
    Regards
    Radek

    Hey Radek,
    I am actually looking for the same functionality. Were you able to find a solution although no one replied to your question in this thread? If so, it would be very helpful for me to know. Maybe you have to combine more BAPIs in order to add the organization information to the relationship. But I have no idea how.
    Best Regards
    Mirko

  • Need Help with scripting for Automator/AppleScript.

    Hi everybody,
    I am building a small app for my mac, What I need is a script that can rename a file that I drop on it.
    and example being:
    example.jpg
    (when I drop it on the app, I want the app to change the filename of the document to "Image.jpg"
    I have tried this with Automator, but it requires that I specify the file to be changed, what I need is something that will change the name of any file I drag onto it.
    I am using it for application specific files.
    Kind regards,
    Pete.
    iBook G4; 60GB Hard Drive, 512MB RAM, Airport Extreme    

    Open the Script Editor in the
    /Applications/AppleScript/ folder and enter the
    following:
    on open(the_file)
    tell application "Finder"
    set name of the_file to "Image"
    end tell
    end open
    Save this script as an application.
    (11347)
    this script compiled correctly; however when run it returned the following error "Can't set name of (the_file) to "Image.jpg"
    I am also given the option of editing the script or just quitting.
    thanks for your help

  • Need Help with script For Bulk Users Name & Description Updation

    Hi Guys,
    I have below requirement :
    We are having one windows 2008 stand alone server with 200+ local users (No Active Directory Account).
    1. Requirement is to update each account's "Full name" and "Description field" with same text. Which means , Full name and Description field will be same with same text. No other changes are required. )Attached the screenshot)
    Can you guys pls help me out with any scripting (vbs , powershell , DOS .etc etc) method to accomplish this task quickly as manual process is very troublesome and take long time.
    Any help will be highly appreciated,
    Thanks,
    Suvajit Basu

    Hi,
    I dont have any script but seeking for a help.
    Thanks,
    Suvajit Basu
    In that case you should read this first:
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/a0def745-4831-4de0-a040-63b63e7be7ae/posting-guidelines?forum=ITCG
    Prewritten scripts can be found in the repository (Brent has already suggested one for you):
    https://gallery.technet.microsoft.com/scriptcenter
    If you can't find what you need and you can't write your own, you can request a script here:
    https://gallery.technet.microsoft.com/scriptcenter/site/requests
    Let us know if you have any specific questions.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Script for using layer name in Save for Web command

    I am using the Save for Web  command (Illustrator CS2) to export layers to CSS so that each layer is  saved as a different jpg.  The only issue I have is that I want the  layer name to be part of the file name, but layer name is not an option  when I look at the "Edit Output settings" dialog for saving files.  Is  there anyway I can do this? I do not have experience writing or working with scripts.
    For example. My fiel name is flower.ai.  I will have 20  different layers (each containing a different color of the same image)  and want the exported file to be flower-scarlet.jpg,  flower-cranberry,jpg, etc. Right now I am looking at renaming all the  files manually, but as I am creating 40 images per product on my website, this will be very time consuming.
    Thanks in advance
    Christine

    Btw.. to make it work for JPGs, change the PNG options to the following:
    var options = new ExportOptionsJPEG();
            options.antiAliasing = false;
            options.optimization = false;
            options.artBoardClipping = true;
            options.qualitySetting = 100; // value of 0 to 100, 60 is medium, 100 is perfect
            options.blurAmount = 0;
            options.verticalScale = 100;
            options.horizontalScale = 100;

Maybe you are looking for

  • Web Template Nav Block char issue.

    Hi folks, We have an issue with one of our web templates.  In one of the navigation blocks there are some characteristics, for example, some are like as below. G/L Account Asset Cost Center Order Network WBS Element Cost Center (Accoung string -corre

  • Printing specific pages in a PDF

    What is the java code to create a print button to print specific pages in a multiple page PDF file? Help please!

  • Connecting a power meter to PC via GPIB

    I'm trying to use LabVIEW to control an E4419B power meter using GPIB. When I connect it using the cable and bring up MAX, should the connection appear straight away or does further action need to be taken?

  • App Crash - just started

    Because I already have a lot of things I like very much about PV2012, I've been processing a weekend event's pictures and publishing to my smugmug with no issues whatsoever the past 3 days (almost 3000 images published so far, and yes, I have the ori

  • Neither Flash Player nor Java working on Windows 8.1 with IE 11

    I have a new sony laptop with Windows 8 and IE 11.  I have upgraded to Windows 8.1.  Neither Flash Player nor Java are working despite having made all the recommended settings. Adobe recommends upgrading to Flash Player 12.00.38, but I can seem to ge