• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Newbie scripting question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie scripting question


  • Subject: Re: Newbie scripting question
  • From: Christopher Stone <email@hidden>
  • Date: Mon, 12 Jan 2004 22:40:33 -0600

At 22:45 -0500 01/12/2004, Gary Lists wrought:

You can do all of that more easily like this (using your property/variable
names):

tell application "Internet Explorer"
GetURL target_URL
GetURL target1_URL
GetURL target2_URL
end tell

Now, depending on your browser settings, the window may or may not be
re-used. In my settings for IE, new windows open for each, so I don't have
to create new windows before the next "GetURL" command (or else the window
URL would be replaced with the next one, and so on.)

Internet Explorer's OpenURL event is more flexible. It permits you to specify the window you send the url to:

Open in new window:

set aUrl to "http://www.macintouch.com";

tell application "Internet Explorer"
OpenURL aUrl toWindow -0
end tell

Open in front window:

tell application "Internet Explorer"
OpenURL aUrl toWindow -1
end tell


Chris
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Newbie scripting question (From: Gary Lists <email@hidden>)

  • Prev by Date: Re: Newbie scripting question
  • Next by Date: When even UI Scripting doesn't do it...
  • Previous by thread: Re: Newbie scripting question
  • Next by thread: Re: Newbie scripting question
  • Index(es):
    • Date
    • Thread