• 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
Scripting in Safari Privte windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scripting in Safari Privte windows


  • Subject: Scripting in Safari Privte windows
  • From: "@lbutlr via AppleScript-Users" <email@hidden>
  • Date: Sun, 6 Sep 2020 04:08:18 -0600

I can do the following to open a URL in Safari


tell application "Safari" to make new document with properties
{URL:"http://www.google.com"}

How do I do that with a private window? Everything I see requires using system
events to process shift-command N in the script.

What I am trying to do is open a set of urls in tabs all in private bwindows.

set urlList to {"http://google/";, "http://www.apple.com/";,
"http://www.macworld.com/";, "http://ethersite.tld/";,
"http://www.moresites.fake/"}
set numURLs to (count urlList)

Etc…




 _______________________________________________
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

  • Next by Date: Saving Safari window Ids to close windows
  • Next by thread: Saving Safari window Ids to close windows
  • Index(es):
    • Date
    • Thread