Results 1 to 2 of 2
  1. #1

    Member Since
    Aug 30, 2011
    Question Making a batch list with Automator..?

    I have a program called DNGImporter.

    It's a program that converts .dng files to whatever format, prores for example...

    My problem is that I can only convert one file each time.

    I have uploaded a screenshot of my desktop here:
    ImageShack® - Online Photo and Video Hosting

    I want to make a script in automator to do the following:

    Open dngimporter ( or if its already open) open a specified .dng file in a folder ( lets say open picture 00501603.DNG in folder AC005003) and then it should convert it to a specified folder.

    After it has been converted it should load the next .dng file in the next folder.

    So I want to make a batch script so I don't have to sit here all night and convert one file at the time.

    Any ideas?

    Thanks in advance!

    //Erik, Sweden


    Okay so i've made a watch me do command and it works.
    But I still want to make an applescript that tells DNGImporter to press the export button, how do I do that?

  2. #2

    Member Since
    Aug 30, 2011

    Trying this script:

    on run {input, parameters}

    tell application "System Events" to set isUIScriptingEnabled to UI elements enabled
    if isUIScriptingEnabled = false then
    tell application "System Preferences"
    set current pane to pane ""
    display dialog "Your system is not properly configured to run this script.
    Please select the \"Enable access for assistive devices\"
    checkbox and trigger the script again to proceed."
    end tell
    end if

    tell application "System Events" to return name of every process

    tell application "System Events" to set frontmost of process "DNGImporter" to true

    tell application "System Events"
    tell process "DNGImoprter"
    click button "Export" of window 1
    end tell
    end tell

    return input
    end run

    The thing is it doesnt press the export button.... all it does is bring DNGImporter to the front.

    When I put the cursor over the export button Accessibility Inspector says:

    <AXApplication: "DNGImoprter">
    <AXWindow: "DGImporter">
    <AXButton: "Export">

    AXRole: "AXButton"
    AXRoleDescription: "button"
    AXHelp: "(null)"
    AXEnabled: "0"
    AXFocused: "0"
    AXParent: "<AXWindow: "DNGImporter">"
    AXWindow: "<AXWindow: "DNGImporter">"
    AXTopLevelUIElement: "<AXWindow: "DNGImporter">"
    AXPosition: "x=220 y=444"
    AXSize: "w=463 h=64"
    AXTitle: "Export"

    AXPress - press

    What am I doing wrong?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Automator Q: Batch Edit image color
    By JoshJ in forum OS X - Apps and Games
    Replies: 2
    Last Post: 11-14-2012, 05:34 PM
  2. Making a maintenance script to run in automator
    By Gdog in forum OS X - Operating System
    Replies: 0
    Last Post: 02-19-2010, 01:33 PM
  3. Making Desktop Archives with Automator
    By Snipeye in forum OS X - Apps and Games
    Replies: 6
    Last Post: 09-07-2009, 10:58 PM
  4. Replies: 0
    Last Post: 04-24-2008, 05:40 PM
  5. Making an editable text list of files in a folder
    By Hardie in forum Switcher Hangout
    Replies: 3
    Last Post: 09-12-2007, 04:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts