Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Apps and Programs
Making a batch list with Automator..?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="fassbinder" data-source="post: 1290921" data-attributes="member: 213463"><p>UPDATE!</p><p></p><p>Trying this script:</p><p></p><p></p><p>on run {input, parameters}</p><p></p><p>tell application "System Events" to set isUIScriptingEnabled to UI elements enabled</p><p>if isUIScriptingEnabled = false then</p><p>tell application "System Preferences"</p><p>activate</p><p>set current pane to pane "com.apple.preference.universalaccess"</p><p>display dialog "Your system is not properly configured to run this script.</p><p>Please select the \"Enable access for assistive devices\"</p><p>checkbox and trigger the script again to proceed."</p><p>return</p><p>end tell</p><p>end if</p><p></p><p>tell application "System Events" to return name of every process</p><p></p><p>tell application "System Events" to set frontmost of process "DNGImporter" to true</p><p></p><p>tell application "System Events"</p><p>tell process "DNGImoprter"</p><p>click button "Export" of window 1</p><p>end tell</p><p>end tell</p><p></p><p>return input</p><p>end run</p><p></p><p></p><p></p><p>The thing is it doesnt press the export button.... all it does is bring DNGImporter to the front.</p><p></p><p>When I put the cursor over the export button Accessibility Inspector says:</p><p></p><p><AXApplication: "DNGImoprter"></p><p><AXWindow: "DGImporter"></p><p><AXButton: "Export"></p><p></p><p>Attributes:</p><p>AXRole: "AXButton"</p><p>AXRoleDescription: "button"</p><p>AXHelp: "(null)"</p><p>AXEnabled: "0"</p><p>AXFocused: "0"</p><p>AXParent: "<AXWindow: "DNGImporter">"</p><p>AXWindow: "<AXWindow: "DNGImporter">"</p><p>AXTopLevelUIElement: "<AXWindow: "DNGImporter">"</p><p>AXPosition: "x=220 y=444"</p><p>AXSize: "w=463 h=64"</p><p>AXTitle: "Export"</p><p></p><p>Actions:</p><p>AXPress - press</p><p></p><p></p><p>What am I doing wrong?</p></blockquote><p></p>
[QUOTE="fassbinder, post: 1290921, member: 213463"] 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? [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Apps and Programs
Making a batch list with Automator..?
Top