Making a batch list with Automator..?

Joined
Aug 30, 2011
Messages
2
Reaction score
0
Points
1
Hi!

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

EDIT!:

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?
 
OP
F
Joined
Aug 30, 2011
Messages
2
Reaction score
0
Points
1
UPDATE!

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"
activate
set current pane to pane "com.apple.preference.universalaccess"
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."
return
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">

Attributes:
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"

Actions:
AXPress - press


What am I doing wrong?
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top