Skip to content
  • Categories
  • Recent
  • Tags
Collapse
  1. Home
  2. SessionRestore
  3. SessionRestore and Safari 17/17.1 on Ventura

SessionRestore and Safari 17/17.1 on Ventura

Scheduled Pinned Locked Moved SessionRestore
1 Posts 1 Posters 453 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Phil_S
    wrote on last edited by
    #1

    I found the same issue as SessionRestore and Safari 17/17.1 on Sonoma .

    I did the test of using Safari 17/17.1 recent history restore of all tabs and SessonRestore 2.7.7 only records one tab per window. As noted, if one manually reloads every tab in every window, then SessonRestore 2.7.7 can record them all.

    All tabs were recorded with Safari 16.6 - I don’t know what change Apple made to Safari 17/17.1 (still Ventura 13.6.1) to cause the difference.

    Prior to SessionRestore, I used a Script, based on postings on various forums many years ago, to record the name and url of every tab open in Safari. The script records all of the tabs without having to reload each tab manually. The script then saves the name and url of every tab in Safari to a text file in TextEdit which can be used to manually reload every tab.

    Use Script Editor in the Utilities folder to copy the code into Script Editor and create the script application.

    I don’t know how to modify the script to create a file that SessionRestore can use with Safari. There are many internet sites that discuss using the Script Editor if help is needed. I have only used the script through MacOS Ventura, but not Sonoma.

    
    tell application "Safari"
    	
    	--Variables
    	set windowCount to number of windows
    	set docText to ""
    	
    	--Repeat for Every Window
    	repeat with x from 1 to windowCount
    		set tabcount to number of tabs in window x
    		
    		--Repeat for Every Tab in Current Window
    		repeat with y from 1 to tabcount
    			
    			--Get Tab Name & URL
    			set tabName to name of tab y of window x
    			set tabURL to URL of tab y of window x
    			
    			set docText to docText & "<a href=" & "\"" & tabURL & "\">" & tabName & "</a>" & linefeed as string
    		end repeat
    		
    	end repeat
    end tell
    
    --Write Document Text
    tell application "TextEdit"
    	activate
    	make new document
    	set the text of the front document to docText
    end tell
    

    Phil

    1 Reply Last reply
    0

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags