1 Reply Latest reply: Dec 4, 2012 8:03 AM by DrJJWMac
Porrada Level 1 Level 1

I have batches of files that I need to rename sequentially - easy with an Automator Workflow...*BUT* my file batches have TWO of each item seqentially - they're images of the same item, so essentially I need to rename this way:

 

image001.jpg -> image001 A

image002.jpg -> image001 B

 

and xx002, xx003 and so on, each with two versions of the same number in the sequence.  Any tips?  Thanks!


MacBook Pro (15-inch 2.53 GHz), OS X Mountain Lion (10.8.2)
  • DrJJWMac Level 1 Level 1

    In an Applescript, parse the ending number after stripping the pre-zeros. Let's call that number N. Use this operation to complete the processing

     

    if ((N mod 2) equal 0) then

    -- process even names

    ...

    else

    -- process odd names

    ...

    end if

     

    --

    JJW