I open a lot of tabs which are important for me. Isn't there an easier way to install something that creates a TextEdit file on my desktop with all URLs open at the time?
In the past I used Eelee's SafariTabsListDs but this doesn't seem work anymore.
Can you help me with something that I can use to reopen the tabs I want after closing them?
Best Answer
The following example AppleScript code will write the URL of every tab of every window of Safari to a file named MyURLs.txt on your Desktop:
To open the URLs in, e.g., MyURLs.txt you can use, e.g.,:
Note: The example AppleScript code is just that and does not contain any additional error handling as may be appropriate. The onus is upon the user to add any error handling as may be appropriate, needed or wanted. Have a look at the try statement and error statement in the AppleScript Language Guide. See also, Working with Errors. Additionally, the use of the delay command may be necessary between events where appropriate, e.g.
delay 0.5
, with the value of the delay set appropriately.