Re: Safari app scripting
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