0
votes
0answers
16 views

Applescript automate to click button on Safari webpage

Trying to do some automation in safari here using applescript, keep getting error, please help! Here's the DOM Tree codes <div id="sc1789" class="tvb4 sc-view" style="left: 0px; right: 0px; top: ...
1
vote
0answers
23 views

Sync applescript calls.

I'm very new to applescripting and I have the following code: tell application "Safari" tell document 1 do JavaScript "document.getElementById(\"binaryFilePath\").click()" end tell ...
1
vote
0answers
36 views

Can I use AppleScript to upload a file to a webpage open in Safari using drag and drop?

I would like to create an AppleScript to open a specified URL in Safari, login automatically if that would be possible and then upload a file to a form that accepts drag and drop file upload. Would ...
1
vote
2answers
72 views

Open an new Safari window on the current space from the Termial shell with multiple tabs (URLs)

How to open an new Safari window from the Termial shell on the current space? Now when using the open http://example.com it got opened the URL as last TAB on my 1st safari window. I'm looking for ...
0
votes
2answers
111 views

In Applescript, how do I launch Safari “Silently” open url then close the unseen Safari window

I am new to Applescript and MACs although my first computer was an Apple II Plus and I programed in Apple Basic and Assembly. I am using it to create a "Silent" alarm button. We have a system in ...
0
votes
1answer
64 views

How to locate UI Button for AppleScript using Accessibility Inspector

There are several articles here that address this question, but none offer the help to connect-the-dots. The attached screen shot shot shows Accessibility Inspector for the button in question, which ...
1
vote
1answer
86 views

How to Identify Safari Javascript Alert Dialog using AppleScript?

In a particularly 'pesky' website, a dialog box pops up to block (or cover) automated entry of the userid input box. I have used the following code attempting to get a reference & to close this ...
0
votes
1answer
76 views

AppleScript to click buttons and close tabs

Im not really familiar with applescript (using C/Python/Pacsal atm). So far did the autoclicker for my WoW ore prospection. I would like to use the script on safari to click the link with name "1st ...
4
votes
2answers
562 views

Applescript: Open current Safari tab in Chrome (Troubleshoot of working script)

So, I decided a while ago to run a Flash-free install of Safari. It's been really great, Safari seems much more stable overall and I barely miss it. But every once in a while I stumble upon a site ...
1
vote
2answers
2k views

Using Javascript | Applescript to click button in Safari

I realize there are several threads about this and they are all very specific to certain website . My background is in Python, not Javascript or Applescript, and I'm confused on exactly how to achieve ...
1
vote
1answer
336 views

Applescript enable-disable wifi Safari

I figured out a command to enable/disable wifi. networksetup -setairportpower en0 on networksetup -setairportpower en0 off Now, I was wondering how to combine it in AppleScript in a way that when ...
0
votes
1answer
725 views

AppleScript - “Close tabs to right of current tab” in Safari 7

I have been using the AppleScript below as an Automator service in order to get Safari to close all tabs to the right of the current tab. However I have updated to Mavericks (10.9) and find that this ...
0
votes
1answer
75 views

Is there in AppleScript any way to use “X of every” to get multiple properties of each object to create a record?

It is possible to with the script: tell application "Safari" set urls to URL of every tab of every window end tell when execute, get all urls of every tab of every window (two dimensional list) ...
5
votes
1answer
856 views

How to click button with applescript using UI Element Inspector

I am new to applescript. I am trying to open a webpage, and click a button on that webpage. here is my script: tell application "Safari" to activate tell application "System Events" tell ...
2
votes
1answer
150 views

How can I script Preferences changes in an application?

I want to use applescript to change a checkbox in the preferences box of Safari. I can open the preference window, but how to code the check box change? Example: I'd like to toggle the check box for ...
1
vote
2answers
675 views

How to go to tab 5 in Safari? (AppleScript)

Is there any way to go to tab number 5 in Safari? tell application "Safari" to set current tab of document 1 to 5
2
votes
1answer
367 views

Can OS X automate creating a reminders from a page in a web browser?

I enjoy the feature of creating reminders from a web page with one click. similar to how Omnifocus does this. Can Apple's Reminders do the same by apple scripting or other addition/short cut?
2
votes
1answer
141 views

Safari - menu to show live tabs open in open windows

I often have five or six Safari (and Chrome) windows open, each containing several tabs. I often lose track of where a live tab is when I want to return to it. I can use the Safari window menu option ...
2
votes
3answers
603 views

How to add a Safari toolbar button that runs an AppleScript

How do I add a button to the Safari toolbar that, when clicked, executes a given AppleScript?
0
votes
1answer
123 views

How do I refresh Application metadata - URL handlers, Web browsers - after installing my own AppleScript?

I'm working on an Apple Script that handles URLs. There's a command one can give which re-creates the list that Safari shows to change the default web browser. Anyone know what this is?
6
votes
2answers
494 views

What's the easiest way to automate logging into a website?

There's this website I need to access about every ten minutes. And apparently it was designed in 1993, by sadists. There is no "remember me on this computer" checkbox. And if you don't interact with ...
5
votes
2answers
3k views

Is it possible to restart an application using AppleScript?

I want to restart Safari and reopen it with some tabs that I specify.