Jump to content

fassbinder

Members
  • Content count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About fassbinder

  • Rank
    New Mac Geek
  1. Telling applescript in automator to press a button...

    yes i've tried but with no success.....buhu
  2. Telling applescript in automator to press a button...

    true. but I'm having problem with writing the script with keystroke that tells it to press cmd + e tell application "System Events" tell process "DNGImoprter" keystroke "E" using {command down} end tell end tell return input end run any ideas what im doing wrong? whole script looks like this: 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" activate tell process "DNGImporter" keystroke "E" using {command down} end tell end tell return input end run
  3. Telling applescript in automator to press a button...

    Thanks! I've read the article and have come up with the following script for telling it to press the export button: 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 Or I could do a keystroke to get it to export using cmd + e, but of course Im doing that wring to... tell application "System Events" tell process "DNGImoprter" keystroke "E" using {command down} end tell end tell return input end run
  4. Telling applescript in automator to press a button...

    thanks! i should have written that i have tried watch me do, thing is i want to send this to a client. I know that he wont be able to execute this command. So a script would be the best way for this situation. But yes watch me do is really a good tip! Thank you!
  5. Hi! So, I want applescript in automator to press the export button in a program. Here's what it looks like: http://imageshack.us/photo/my-images/402/screenshot20110830at175.png/ Is it possbile? Any help or ideas? Thanks in advance!
×