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...
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...
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...
Running open http://localhost:8080 in Terminal will open a new tab each time.  How does create-react-app re-use an existing Browser tab, when available?  Update  It looks like here is the place where the magic happens:  function startBrowserProcess(b...
The StandardAdditions.sdef indicates that particular data types can be retrieved from the clipboard using the key 'as'.    The clipboardInfo() function reveals what these keys are for Applescript, but is less eloquent in case of Yosemite Java...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.