January 16, 200619 yr Hello, I am having trouble with writting an AppleScript to click on a button on a webpage to download data. So far, this is what I have: tell application "System Events" if exists process "Export Window" then tell process "Export Window" delay 2 set frontmost to true click button "Download" end tell end if end tell Can anyone please help. Thanks, tdogolf
January 17, 200619 yr You can try entering the key code for enter, i believe its like 75 or 79 (It depends on what type of keyboard you have). tell application "System Events" to keycode 79 That might work for ya. Or alternatley you can just use URLAccess scripting to download the file. Tell application "URL Access Scripting" download "http://www.google.com/image1.jpg" to "Macintosh HD:image1.jpg" end tell My syntax is probably off, but you get the idea.
February 1, 200619 yr well, in filemaker it would be like this: tell application "URL Access Scripting" to download "http://www.example.com/image1.jpg" to "Macintosh HD:image1.jpg"
March 6, 200619 yr I'd use curl and "do shell script" if you're just downloading something from a web site.
Create an account or sign in to comment