MACSCRPT Archives

October 2011

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Lively <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Wed, 12 Oct 2011 04:43:30 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (25 lines)
On Oct 11, 2011, at 11:51 PM, Ed Graf wrote:

> A simple question, I hope.
> 
> I am trying to log onto a mainframe using Applescript and Safari.  The keepers of the gateway will not help.(not a security issue).
> 
> Their required steps consist of logging onto their gateway using Safari, then a java applet is downloaded where, using Applescript I can blindly type commands using system events to complete the download.
> 
> I noticed the process can be sped up if "pop-up window blocking" is disabled.  Any way to do this in Applescript?
> 
> Thanks in advance for any help, especially with resources I can read up on what is happening.
> 
> Ed

This toggles it 

tell application "System Events"
	tell process "Safari"
		click menu item "Block Pop-up Windows" of menu "Safari" of menu bar 1
	end tell
end tell

But I am having issues finding a way to read it.  

-Mark

ATOM RSS1 RSS2