Help with flattening stamps

I did not have any problem with Acrobat 9 in the past. 
Recentlyh, Acrobat X was installed.  The only problem is flattening stamps on pdf files.
I copied "flattenPages.js" from from Acrobat 9 to Acrobat X  <<<c:\Users\UserName\AppData\Roaming\Adobe\Acrobat\11.0\JavaScripts\>>.
Flattening toolbar does not show up on the menu bar in Acrobat X.
Please advise me how to flatten stamps in Acrob at X. 
OS of my computer is Windows 7 Pro.

Its still a Typo don't feel bad I do that all the time sometimes I will need two to 5 tries before I get something right I usually end up introducing new typos.  It where my mind and my hands don't sync up correctly. 
you posted:
The correct line is :   Recentlyh, Acrobat XI was installed.
I copied javascript onto the correct folder.
and you meant:
The correct line is :   Recently, Acrobat XI was installed.
I copied javascript onto the correct folder.

Similar Messages

  • Help with flattening

    I have been using "flattening" after applying stamps wihtout any problems in the past.
    After recent update of Acrobat (9.2.0), the flattening menu bar disappeared.
    When I checked "c:\Program Files\Adobe\Acrobat 9.0\Acrobat\Javascripts\FlattenPages.js"
    Flattening Pages.js is still there but its menu bar is gone.
    Please help me how to revive Flattening menu bar.    Hummer

    Bernd,
    Thanks for reply. Installed the Javascript anyway and thus having the flatten option as a simple option available for both page & document. Works fine but ICT department is reluctant to enable the script for other users..
    Checked the preflight tool which turned out to be rather complicated. Tried to flatten layers to freeze remarks made manually. Afterwards I could still modify/move/delete the remarks.
    Most likely my mistake I'm afraid. My intention was to make simple instruction for my collegues how to flatten documenst but this will require some more time and study !
    Could you put me on track please ?
    Thanks in advance
    Eddie

  • Help with Dynamic Stamp

    Hello
    I have created a dynamic stamp that I swear was working great this morning, but now odd things are happening. I am very new to this. Heres what i have done so far....
    I created the PDF for the stamp.
    I created the custom stamp in Adobe
    I went to the file where the stamp is kept by adobe and added the form field.
    I added this text in custom Calculation:
    var cResponse = app.response({
    cQuestion: "Enter the number to appear in the stamp.",
    cTitle: "Number",
    cLabel: "Number:"
    if (cResponse == null) {
    event.value = "*NVALID*";
    else
    event.value = cResponse;
    I save and close file.
    I go to my pdf. Hit the stamp icon, go down to dynamic stamps and in stead of a list showing of all the dynamic stamps it takes me right to this
    I enter what info i want, and the stamp never stamps.
    Any suggestions?
    thanks!!

    To add more clarification to this super fun stamps game I've been trying to play for the better part of 2 or 3 days now, going to try to blurt this out quickly so I can get dinner.
    Here is a solution to adding all the stamps you used to have into new Acrobat (as the whole "just copy the file into the Roaming Acrobat Stamps folder" didn't do anything for me)
    in Acrobat, create a new custom stamp, with whatever, this results in the crazy file name in the user stamp folder.
    Take your old stamps file, rename it to this file name, (and put into the Title field of that acrobat properties the Name of the Stamps you'd like them to be contained under, this will be what shows up when you bring up the stamp tool.
    And the whole dynamic stamp gobblygook above with the #crapblahsputting name, do away with that to make java and forms easier by opening page templates and just going through and making sure the pages in your file are accounted for and if you have the #crazyname then change it to something like #KISS=Keep it Simple Stupid (the Keep it Simple Stupid, will be what shows up if you were to show Stamp Names in Acrobat) and now when you try to do other Forms Java scripting you can just say event.source.stampName == "#KISS" and life will be easier
    Also in the organize page menu drag the files around so they can be in a better order than just how you added them into Stamp originally.
    You can drag in new files to this stamp file as well in the future too, just be sure to go to the page templates and get that page a name, #KISS2=Keep it Simple Squared
    I hope this also saves someone the frustration of this Stamp world, I'm sure that now that I've FINALLY figured it out, Adobe will remove the feature.

  • Need Help with Clone stamp

    My clone stamp used to show me what I picked up before I would stamp it.  Now it won't.  Stopped working about a week ago.  It is hard to stamp down in the exact spot you want when you cannot see what is in the stamp.
    Am I doing something wrong?  Is there a button I need to click to get it back?
    Any help is appreciated.

    Make the Clone Source panel visible via the Window menu and check the [ ] Show Overlay setting.
    If that's not available to you, it may be that Photoshop has decided your OpenGL implementation in your display driver isn't up to the task.  You can check that by looking in Edit - Preferences - Performance and seeing if [ ] Enable OpenGL Drawing is set.  You may need to visit the web page of the maker of your video card and download/install an updated display driver to get your OpenGL working properly.
    -Noel

  • Need help with Time Stamps and saving Strings in Excel

    Hi, Am learing LabView now....and my task is
    Everytime start button is pressed, a Random number must be generated.
    The Random number is to be staroed in an Excel sheet such that the Random Number is in the first column and Time at which it was generated in the second column...
    I used to work with Agilent Vee before and am finding it hard to adjust to LabView
    Thanks
    Sanjay

    Am making the same mistake again......
    Here yougo in LV 8.5 version....
    The best solution is the one you find it by yourself
    Attachments:
    Time Number.vi ‏12 KB

  • TDMS viewer not showing data with time stamp

    Need help with time stamping data in a TDMS file generated by DAQ Assistant.
    When I use the TDMS Viewer, with the x-scale set to absolute time, the date starts at 1903. If I use Excel to look at the file the start time is correct (i.e. 2013).
    Solved!
    Go to Solution.

    Bo_Xie, I have simplifed my VI and now able to display the correct time stamp. Thank for your time!

  • Can someone help with a previous post labeled "Writing to a data file with time stamp - Help! "

    Can someone possibly help with a previous post labeled "Writing to a data file with time stamp - Help! "
    Thanks

    whats the problem?
    Aquaphire
    ---USING LABVIEW 6.1---

  • Need help with Dynamic Excel File Name please.

    I am try to output an excel file with dynamic date. 
    Here what I done.
    I am using SQL 2012.
    Create Execute SQL Task Connect Type: Excel
    Create Data Flow Task set to DelayValidation: True
    Create OLE DB Sourc
    Create Data Converstion
    Excel Destination
    Excel Connection, Expression, select ExcelFilePath
    @[User::sXLFilePath] +  @[User::sFileName] + RIGHT("0" + (DT_WSTR, 2) DATEPART("DD", GETDATE()), 2)+ RIGHT("0" + (DT_WSTR, 2) DATEPART("MM", GETDATE()), 2) + RIGHT((DT_WSTR,
    4) DATEPART("YYYY", GETDATE()), 2) +".csv"
    C:\ExcelOutPut\SOX_CAM_SQL_Report_010215.xls
    What I try to accomplish is output the file with each day append to it, date must be DDMMYY.
    I google it and found many samples, tested it, and none of them is work for me. 
    Any suggestions or some examples to share is greatly appreciate. 
    I am new to SSIS.  I found one poster have similar issue and inside the posted below, there was one suggestion to create variable and connection string but how do I bind that variable to Excel Connection manger.
    Please help.
    Thank you so much in advance.
    Ex: SOX_CAM_SQL_Report _020215.csv
           SOX_CAM_SQL_Report _030215.csv
    --Similar issue:
    https://social.msdn.microsoft.com/Forums/en-US/bda433aa-c8f8-47c9-9e56-efd20b8354ac/creating-a-dynamic-excel-file?forum=sqlintegrationservices
    Suggestion in the above posted but where can bind this to Excel Connection Manger. 
    Please help provide step by step.  Thanks.
    "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\temp\\" + "ExcelTarget" + (DT_WSTR,4)DATEPART("yyyy",GETDATE())  +
    ".xls" + ";Extended Properties=\"EXCEL 8.0;HDR=YES\";"
    And yes, as you were intimating, the delay validation on the dataflow should be set.

    Hi NguyenBL,
    According to your description, you created ssis package to export data from database to excel, when the package runs, you want to create new excel and name the file with time stamp. If that is the case, we can achieve the goal by following steps:
    Create a script task used to create excel files.
    Create a data flow task to export data from database to excel.
    Add OLE DB source to data flow task.
    Add Excel Destination to data flow task.
    Create connection manager for OLE DB and Excel.
    Click Excel Connection Manager, in Properties window, click (…) button next to Expressions, then set ExcelFilePath with expression like below:
    "C:\\ETL Lab\\CreateNewExcel\\ExportData_"+REPLACE((DT_STR, 20, 1252)(DT_DBTIMESTAMP)@[System::StartTime], ":", "")+".xls"
    For detail information, please refer to the document:
    https://sqljourney.wordpress.com/2013/01/12/ssis-create-new-excel-file-dynamically-to-export-data/
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • Is there anyone having problem with Clone Stamp in CS4?

    Good Morning, I am using Photoshop CS4 Extended with Windows Vista Ultimate 64 bit.  My computer is a Dell XPS 430, WITH 8GB of ram, 1.5TB of disk space,   ATI Radean HD 4800 Series adapter with 512MB memory.   When I bring up an image in Photoshop and click on Clone stamp I get the error message "could not use the clone stamp because of a program error."  I can still use Clone Stamp, but with some wied reults.  Sometime the middle of the brush turns bright white and do nothing.  Again it will clone the item clicked on, but would move the spot being cloned.  Other times when the brush is move from the spot being cloned it will clone other area without cliking on them.
    I have uninstalled and reinstalled Photoshop 4 times.  I have created a new account with administrative rights, which I unistalled and reinstalled Photoshop.  Two of the times that I uninstalled Photoshop I also used the Photoshop script to make sure all of Photoshop were uninstalled. I have also cleaned the register of Photoshop before reinstalling Photoshop.  Another item used to make sure there was no error with Vista was Windows cleanup installed tool.
    Yesterday I checked my laptop and I am getting the same results as my PC.  The most recent thing that has been updated on both the PC and Laptop was Windows updates and Camera Ram 5.4.  Attached is a copy of a wierd result using clone tool.  I just clicked on the image and the orange spot appeared.  Is there anyone else who is having similar problems with Clone Stamp?

    Have you applied the Photoshop 11.0.1 Patch?
    Have you updated the video drivers?
    If that doesn't help, try resetting your preferences as described in the FAQ.
    http://forums.adobe.com/thread/375776?tstart=0
    You either have to physically delete (or rename) the preference files or, if using the Alt, Ctrl, and Shift method, be sure that you get a confirmation dialog.
    This resets all settings in Photoshop to factory defaults.
    (A complete uninstall/re-install will not affect the preferences and a corrupt file there may be causing the problem.)

  • Mail attachment with time stamp

    Hi
    My scenario is Proxy to Mail.
    On receiver side I am getting the data as an attachment but i want that attachment with time stamp.
    How to add time stamp to the attachment in reciever mail adapter.
    Regards
    Sowmya
    Edited by: Sowmya on Aug 28, 2008 12:24 PM

    hi sowmya,
       The bellow link for MessageTransformBean..
      [http://help.sap.com/saphelp_nw70/helpdata/EN/57/0b2c4142aef623e10000000a155106/content.htm]
      In that ContentDisposition is used to fill the value for Attachment file name..
      Its allows the value accordingly "RFC1806" Note..
      RFC1806 allows accordingly RFC822 ..
      Check RFC822 ..
        5.  DATE AND TIME SPECIFICATION
    Regards,
    Prakasu

  • Can someone help with auto-size fields in forms?

    I created a form in Acrobat for my team members with auto-size text fields that allow to shrink the text when the field size is not large enough to show the entire text. When I then open the same form file with Adobe Reader on my machine with text that has shrunk in some field, I can see all the text and have also a scroll function when the text size has reached its lower limits and there is still more text to show.
    However, when I receive the filled out forms back from other team members' iPads (they use my template created with Acrobat), the text didn't shrink as on a PC version and the scroll function is disabled. I checked the template and the fields are correctly set to auto-size left and they do work on my PC's and laptop's Adobe Reader. But the iPad version of Adobe Reader may cause some issues.
    Can anybody help with solutions?
    Thank you!
    Klaus

    The filled version of your PDF document (20140722 Daily Meeting Report...pdf) is no longer a PDF form because it has been flattened.
    Once an interactive PDF form (such as your template version) is flattened, all form fields are replaced with images of filled data.  You can no longer interact with form fields, edit form data, or tap/click any buttons in the flattened PDF document.  That is the reason why the text in auto-size text fields did not shrink.
    When you email a PDF document (including a PDF form) in Adobe Reader for iOS, the E-mail Document dialog is displayed.
    In this particular case, your team member must have selected "Share Flattened Copy".
    If you would like to keep the interactivity of a PDF form, you can select "Share Original Document".  Please advise your team members to select the "Share Original Document" option when emailing filled forms.
    Unfortunately, once flattened, a PDF document cannot be reverted back to the original "unflattened" state.  However, if your team members still have the original filled forms, they can resend the forms with the "Share Original Document" option.
    Please let us know if you have further questions.

  • Need some URGENT help with 3 DVD mastering issues PLEASE! :

    Hi there,
    Firstly, I am running DVD SP 3.0.2 on Mac OS 10.4.7 on a G5 Dual 2 GHz 3Gb Ram plenty of HD space...
    I am creating a DVD with: An intro sequence, a main menu, 4 sub menus, and 4 sections with around 12 chapters each.
    I am having some big problems, and a pretty stuck. I will lest them separately below, numbered. If you are able to help, please refer clearly to which number you are helping with. Any help is MUCH appreciated! Many thanks!!
    1. Each of the 5 menus (1 main, 4 sub) have a background video, and a separate audio track. I added the background videos by simply dragging them to the assests panel, then from there onto the menu editor window. They are created in FCP and are properly encoded. However, when I click the motion button, or use the simulator, the videos do not show up. The music plays, but all i see is plain black.
    What is going on?!?!?!
    2. I am really struggling with rollover buttons. I have custom created buttons, and I wand them to have a soft red glow around them when hovered over. HOW ON EARTH DO I ACTUALLY DO THIS??
    The buttons are in photoshop so can be exported with/without background/glow in any format.
    3. Is it possible, once I have got the above rollover working, to have an image to the right hand side of my buttons which changes with the the button rollover. i.e. hover over button 1, see image 1. hover over button 2, image changes to image 2.
    PLEASE PLEASE give any help you can, I have a deadline coming up and am quite stumped. Thanks again!!

    I am still having problems regarding issue Number 1. PLEASE ANYONE HELP?!
    Sorry, I'm not sure about the motion menus. I avoid those whenever possible. But you might click on the menu in the storyline tab (whatever it's called -- the hierarchical view with the disc, tracks, slideshows, etc.) and look at the properties and see if there's anything you have to enable specifically for motion. And be sure the motion button is on on the main display/preview area, but it sounds like you already know how that works.
    For your information, here is a screen grab of the menu I am trying to create:
    http://www.redhavoc.co.uk/stuff/menu.jpg
    I think it is obvious that when a button is hovered over, I want it to glow red, and the image to the right will change to match the respective button.
    IS THIS GOING TO BE POSSIBLE????
    Yes.
    First, your menus have to be layered menus. Unfortunately, there's no way to convert non-layered menus to layered menus, so if you already have non-layered, you'll have to just delete them and create new layered menus. The button (and menu item) to create a layered menu should be right by the normal new-menu item.
    Next, the graphical work is all in Photoshop.
    Side tip: You may already know this, but I found it's best to use 640x480 for the Photoshop document. When I do text and leave it as a text object in the Photoshop file, it resizes poorly in DVDSP. So this ends up being another 720x480 vs. 640x480 square/rectangular pixel conversion thing. DVDSP plays in the 640x480 world, at least as far as the designer can see. So I keep my images at 640x480, and it doesn't have to resize, and everything looks right.
    Moving on... Set up your basic background, the part that won't change (or will have other things covering it, like for your square image).
    Then put in all the buttons and images you'll be using, each part in a separate layer. This could have fifteen buttons (you have five buttons, and there can be three versions for each -- inactive, selected, and activated versions) and five or six square images (you said one for each button, and you might want a blank default if, say, you want to add a "back" button on the menu and want some blank or default image for the square when they're on the "back" button).
    Sometimes people don't bother with a separate "active" button state, but you usually want some visual feedback that they clicked the button. Also, I usually just build the default (unselected) button into the background; that's less hassle later on, and it will just draw the selected or activated buttons over that when the user is on that button.
    Line up all your buttons and images. All the square images lined up perfectly on top of each other, all the buttons in the right places (so you'll have three buttons stacked on top of each other in each spot). Give each layer a short but quickly recognizable name, and line them up in a consistent order. (button1-default, button1-selected, button1-active, button1-squarepicture, then button2-default, ... etc.) Photoshop and DVDSP don't care, but it makes it easier for you later.
    Note that earlier versions of DVDSP won't show Photoshop layer effects. (They handle layers, just not the effects, like inner glow, outer bezel, etc.) I don't remember when they changed this, but I think it was version 4.something. So if you're using that method to make your buttons glow, you may have to flatten each selected or active button layer, and you may even need to create a dummy blank layer underneath it first to give it something to flatten onto.
    Save the file as a standard Photoshop file (.psd). Drag the file onto your DVDSP layered menu and set it as the background.
    Now, in DVDSP, create all your buttons. Just drag boxes over/around the button pictures you have. Feel free to make them extra-big; users won't see the actual area you've selected, and bigger areas makes it easier for people to hit them if they're using a mouse on a computer to watch the DVD. You can point the buttons to their targets now if you want, and set the end jumps on the tracks if you want. (I tend to set the end jumps on the tracks so they automatically select the button for the next track.)
    Now's the fun part, since it will actually hook everything up and should be easy if your naming layer order were consistent. Click on the layered menu (in that hierarchical view) and look at the properties window. (Sorry I can't remember the technical names for all these windows; I'm doing this all from memory. So feel free to ask more questions if you can't find what I'm talking about.) One of the properties tabs should have a grid of checkboxes with a list of your layers. Make sure the background is checked for all of the states. Then check the layers you want to show for each button state, as well as the corresponding square image to show for each.
    Again, I'm doing this from memory, and I can't remember exactly how things are listed in that grid. But I remember it keeps your layers in the same order you put them in the Photoshop file and shows you those names, so it should make it easy to go down the list and check the right boxes.
    And another side tip: You can update the Photoshop file, but once you've put it in DVDSP, if you change the layer order, it will screw up the check boxes you checked. It always shows you the layer names correctly, but it keeps the checkboxes in DVDSP simply assigned to the layer number, so the fifth layer will keep the same checkboxes even if you juggle them so some other layer is now the fifth layer. So if you do juggle the layers in Photoshop, go back and fix the checkbox list in DVDSP.
    I put a sample Photoshop file based on yours in
    http://dan.black.org/layered-menu-sample.psd
    It's quick and dirty, but shows the layer layout, and you should be able to drop it on DVDSP to play with. (I also won't leave it there forever, maybe a few weeks, so anybody reading this in a month or more probably will get a 404 for that url.)
    Again, doing this from memory, so feel free to ask if anything doesn't work or doesn't make sense.
    G4/dual867   Mac OS X (10.4.5)   2GB/0.8TB

  • Urgent!  Please HELP with EBCC sycn!!

    I recently upgraded to portal 4.0 sp2 and ebcc sp2.
    When I tried to sync to one of our production server, I got this error:
    Jul 22, 2002 10:53:14 AM CDT patientPortalServe Error Data Synchronizati
    Application: patientportal; No message available. Resource
    not found: transport.http.parameters.log Resource bundle: c
    om/bea/p13n/management/data/datasync
    java.lang.IllegalArgumentException: No message available. Resource not found:
    transport.http.parameters.no.message.id.log Resource bundle: com/bea/p13n/management/data/datasync
         at com.bea.p13n.management.data.transport.servlets.DataSyncServlet.doPost(DataSyncServlet.java:281)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    I read some previous messages while people had the same problme, it seems to be
    caused by out-of-date dataSync web application.
    I have updated our datasync application by copying the whole datasync directory
    from wlcs sample (most files are dated March 11, 2002). Is this the right way
    to do? Is there any other possible reason?
    My entire development and the production are all stopped at this point due to
    the EBCC sync problem. Ergent, please help!!
    Ellen

    Ellen,
    I just did a fresh install of WLP 4.0 SP2 to verify this.
    If you look in:
    C:\bea\wlportal4.0\applications\p13nApp\datasync\WEB-INF\lib
    You should see a single file (datasync_servlet.jar). If you open this file
    you should see a single class file of size 12,417 bytes and with time stamp
    4/19/2002 9:45 PM - this is the SP2 version of the data sync web
    application. You MUST ensure that you are using this version for all your
    application being synced from an SP2 EBCC.
    FYI:
    Release Size (bytes) Timestamp on
    DataSyncServlet.class
    WLP 4.0 GA 11,984 10/22/2001
    WLP 4.0 SP1 11,984 10/22/2001
    WLP 4.0 SP2 12,417 4/19/2002
    WLP 4.0 SP3 - - not yet released, but
    code has been patched
    WLP 7.0 GA 14,909 6/24/2002
    Note that we have now implemented version checking between the client and
    the server, so in the next (full) release you will get a decent error
    message if the client and the server versions are not compatible.
    Hope that helps.
    Sincerely.
    Daniel Selman
    "ellen" <[email protected]> wrote in message
    news:[email protected]...
    >
    I recently upgraded to portal 4.0 sp2 and ebcc sp2.
    When I tried to sync to one of our production server, I got this error:
    Jul 22, 2002 10:53:14 AM CDT patientPortalServe Error DataSynchronizati
    Application: patientportal; No message available. Resource
    not found: transport.http.parameters.log Resource bundle: c
    om/bea/p13n/management/data/datasync
    java.lang.IllegalArgumentException: No message available. Resource notfound:
    transport.http.parameters.no.message.id.log Resource bundle:com/bea/p13n/management/data/datasync
    atcom.bea.p13n.management.data.transport.servlets.DataSyncServlet.doPost(DataS
    yncServlet.java:281)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :265)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :200)
    atweblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:2495)
    atweblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2204)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    I read some previous messages while people had the same problme, it seemsto be
    caused by out-of-date dataSync web application.
    I have updated our datasync application by copying the whole datasyncdirectory
    from wlcs sample (most files are dated March 11, 2002). Is this the rightway
    to do? Is there any other possible reason?
    My entire development and the production are all stopped at this point dueto
    the EBCC sync problem. Ergent, please help!!
    Ellen

  • Advertisement Details of Specific Computer with Time Stamp

    Hello Guys,
    Could you please help me how to get Advertisement Details of Specific Computer with Time Stamp?
    Thanks in Advance.
    Mukhyaprana

    It's true that there is no reliable install date, but IMO last status time for an advertisement is usually close enough. 
    Select r.name0, adv.advertisementname, stat.laststatename, stat.lastexecutionresult, stat.lastStatusTime
    from v_r_system r
    inner join v_clientAdvertisementStatus stat on stat.resourceID = r.resourceID
    inner join v_advertisement adv on stat.AdvertisementID = adv.AdvertisementID
    where r.name0 = 'clientname'
    order by adv.advertisementname

  • Help with Automator

    Hello all I am new to the apply community Im playing with automator in mountain lion I have figured out how to do some basic tasks but now I have run into a snag which I can't seem to find an awser for... I remember in the dos days for microsoft you could create batch files to rename a whole directory but there where certain things you could do like   *.* to make it list everything etc... I want to rename files in my DLNA server DIRECTORY
    so if my file name is
    Criminal Minds 2.04 Psychodrama.avi
    Criminal Minds 2.05 Aftermath.avi
    I want automator to change it to
    S02E04 - Psychodrama.avi
    S02E05 - Aftermath.avi
    I can get automator to delete the Criminal Minds etc. but I can't figure out how to get it to remember the numbers etc and change it to the new file
    if anyone can help and maybe send me somewhere where I can get all the info on automator or maybe a script file would be a better soloution to begin with this but I don't know how to script either
    thanks
    Mike Dennison

    If you have gone with A Better Finder Renamer, then that's cool.
    I have rewritten and more thoroughly tested my Python script in Automator. If you use it as an Automator application on your Desktop, it will allow drag and drop folders or single files. It will now detect the folder and walk down through any sub-folders to ferret out your .avi files and (if they match the original filenaming format) rename the files in their present location, to your originally specified output format.
    Note: The script will rename your original files to the specified new naming convention.
    The last thing the script does is write a text logfile of processed files to your desktop. You can double-click this logfile and the OS X Console application will open and display it for you.
    Open Automator.
    Choose Application
    Select Library > Run shell script
    Drag this item to your right into the larger workflow window and release.
    Choose Python from the selection list of script tools.
    Choose Pass input: as arguments.
    Remove all content from this window.
    Copy the entire Python source from below, and paste into the open Automator window.
    Click File > Save...
    Select your Desktop as the save destination
    Name the Automator application moviefix (arbitrary)
    The automator application on your desktop is now enabled for drag and drop folders and files.
    #!/usr/bin/env python
    This program will convert files from one format to another.
    From: Criminal Minds 2.01 The Fisher King (Part 2).avi
    To:   S02E01 - The Fisher King (Part 2).avi
    Author: VikingOSX, Apple Support Community, 10/2013.
    import sys
    import os
    import re
    import time
    #test = "Criminal Minds 2.01 The Fisher King (Part 2).avi"
    LOGFILE = 'file-list.log'
    DESKTOP = "~/Desktop"
    # You can add to this list as comma-separated, single-quoted values.
    valid_extension = ( '.avi' )
    rename_list = []
    def log_files(filelist):
        Write processed files to logfile with time stamp.
        cwdlog = os.path.join(os.path.expanduser(DESKTOP), LOGFILE)
        with open(cwdlog, 'a+') as log:
            # if new logfile, place header text in it
            if os.stat(log.name).st_size == 0:
                log.write("Processed Files\n")
                log.flush()
            for item in filelist:
                log.write(logstamp(item))
    def logstamp(thefile):
        yyyy-mm-dd hh:mm:ss full path to filename.
        stamp = time.strftime('%Y-%m-%d %X ') + thefile + '\n'
        return stamp
    def rename_file(path, thefile):
        Renames files in their current directory location.
        m = re.match(u'(\D*)(\d)\.(\d{2})(\s+\D*\S*)', thefile)
        if m:
            #show = m.group(1)
            season = m.group(2)
            episode = m.group(3)
            title = m.group(4).lstrip()
            newfile = "S" + season.zfill(2) + "E" + episode + " - " + title
            rename_list.append(thefile)
            os.rename(thefile, os.path.join(path, newfile))
        return
    def main():
        for f in sys.argv[1:]:
            # recursively process folders or n-tuple dropped files
            if os.path.isdir(f):
                for root, dirs, files in os.walk(os.path.abspath(f)):
                    for each in files:
                        if each.endswith(valid_extension):
                            rename_file(root, os.path.join(root, each))
            else:
                frp = os.path.realpath(f)
                rename_file(frp)
        if len(rename_list):
            log_files(rename_list)
    sys.exit(main())

Maybe you are looking for

  • What's with underscores starting names?

    This has long baffled me. What is with variable names, file names, and method names (those in regards to programming) starting out with an underscore? Is it some scheme of which I'm unaware? _print() what's that all about?? why do files often start w

  • [solved] Tearing Problem / Refresh Rate

    Hey, i have a huge tearing problem. Watching movies is a real torture. I think it's the refresh rate. The recommended refresh rate for my display is 60Hz (@1920x1080p). But i can only choose 50Hz in the XFCE settings (link). Anyone can say how to cha

  • Apple Internal Modem not working since installing OS X 10.5.6

    http://discussions.apple.com/message.jspa?messageID=6979575 Same problem more or less. My mom has a Dual 1Ghz G4 Mirror Door Tower that runs great. However she lives in a very... remote, area so dial-up is her only option. With 10.4 on the machine ev

  • Script to rename files that have similar names?

    Hi, folks. I have my  RAW files in one folder and my derivative images (e.g., PSDs, TIFFs,  JPEGs) in another.  The derivative files only share the last four digits  of the RAW file names (e.g., the RAW file is named 100826-14278.CR2 but  the JPEG ve

  • Open and edit in Preview?

    Hi Guys, I have ALL my photo's stored on iPhoto 09. Sometimes I want to be able to change the size of a photo and the only way to do so seems to be in Preview. Is there anyway to open photo's stored in iPhoto in Preview? Also, I'd still like to keep