• 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: Can I script Safari?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I script Safari?


  • Subject: Re: Can I script Safari?
  • From: Andrew Oliver <email@hidden>
  • Date: Thu, 13 Mar 2003 10:33:28 -0800

Assuming Safari is your default browser in System preferences, you can:

open location "http://www.apple.com/";

This uses the standard System addition to use your preferred browser.

If you want to specifically target Safari:

tell application "Safari"
set URL of document 1 to "http://www.apple.com/";
end tell

Andrew
:)

On 3/13/03 9:55 AM, "Emmanuel" <email@hidden> wrote:

> I just want to have it open a standard URL.
>
> Emmanuel
> _______________________________________________
> 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.
_______________________________________________
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: 
 >Can I script Safari? (From: Emmanuel <email@hidden>)

  • Prev by Date: re: Can I script Safari?
  • Next by Date: Code for a circle
  • Previous by thread: Can I script Safari?
  • Next by thread: Re: Can I script Safari?
  • Index(es):
    • Date
    • Thread