• 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: Safari app scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Safari app scripting


  • Subject: Re: Safari app scripting
  • From: Christopher Stone <email@hidden>
  • Date: Mon, 13 Aug 2018 19:35:42 -0500

On 08/13/2018, at 09:52, Robert (PT Business Groups)
<email@hidden <mailto:email@hidden>> wrote:
> An Applescript novice here …..
>
> I use the Safari app in High Sierra and have several scripts that run nicely
> for it.
>
> One small issue that I can’t get past in my scripts is to be able to open a
> new window (make new document) without it accessing the default homepage.


Hey Robert,

Welcome to the world of Mac Automation.  :)

Here are a couple of examples of things you can do:

-----------------------------------------------------------------

tell application "Safari"
    make new document with properties {URL:"https://etrecheck.com
<https://etrecheck.com/>"}

    tell front window
        make new tab at end with properties {URL:"https://bombich.com
<https://bombich.com/>"}
        set current tab to last tab
    end tell

end tell

-----------------------------------------------------------------

--
Best Regards,
Chris

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Safari app scripting
      • From: "Robert (PTBG)" <email@hidden>
References: 
 >Safari app scripting (From: "Robert (PT Business Groups)" <email@hidden>)

  • Prev by Date: Safari app scripting
  • Next by Date: Re: Safari app scripting
  • Previous by thread: Safari app scripting
  • Next by thread: Re: Safari app scripting
  • Index(es):
    • Date
    • Thread