Safari and Chrome can execute JavaScript via AppleScript  Safari:   tell application "Safari"     open location "http://example.com"     activate     do JavaScript "alert('example');" in current tab of first window end...
I'm trying to figure out how to click on the button in a webpage. For example click on the "I'm Feeling Lucky" button in google web page.  This is what I have tried:  tell application "Safari"     make new document with proper...
In a Mac mail rule, I am trying to run a javascript instead of an applescript. This has been asked in Mail Rules using JavaScript for Automation instead of AppleScript but the answer is not working for me!  I have tried to simplify the code as much a...
I'm having a hard time extracting presentationNotes from a keynote presentation using JXA (Javascript for osx) I don't want to use applescript. There is way more to this script than extracting notes.  It seems rather simple. However when I ge...
I'm trying to figure out why my Applescript does nothing when the same javascript code typed into a Safari location bar works.  Go to a search results page, such as: http://www.google.com/search?q=test .  For the correct behavior, type this into...
In Yosemite it now is possible to use JavaScript for automation as well as Applescript. I am having trouble with certain StandardAdditions commands. E.g. from the Contacts application I can use displayAlert, but not displayNotification. Both are in t...
I haven't ever done much with AppleScript, but I'm trying to automate this process. I have a website with a Button that needs to be clicked. However the button is implemented with JavaScript/jQuery/AJAX like so:  <div id="divIdOfButton...
So, I have a simple problem which may not be possible in AppleScript. I'm attempting to return a variable from a javascript that doesn't have a return in the code. In other words, I'm trying to get the status of an element so that I can r...
Sorry for the possibly confusing title.  My problem is that I'd like to download Apple's Command Line Tools for XCode without the need to click on the single buttons. I want to use this for a faster setup of new developer workstations combine...
How can I remove each class on Safari, only for specific text ?  I know this script bellow would remove every class named  :     sortable itemDescription   tell application "Safari Technology Preview" to ¬     do JavaScript ¬         "d...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.