Since macOS Mojave I cannot read bookmarks.plist file anymore. I think it's based on the new security roles in Mojave.
In the past, I did it with this AppleScript snippet:
--
-- read the bookmarks to an new object
--
tell application "System Events"
repeat with i in (property list items of property list item "Children" of property list file tfile)
tell i to try
if value of property list item "Title" = "BookmarksBar" or "Title" = "BookmarksMenu" or "Title" = "com.apple.ReadingList" then
repeat with thisDict in (get value of property list item "Children")
tell thisDict to set end of myRecord to {tURL:its URLString, tTitle:its |title| of URIDictionary}
end repeat
-- exit repeat
end if
end try
end repeat
end tell
It's a part of an AppleScript which gets all bookmarks of Safari and writes it to an HTML File.
How can I access the Safari Bookmarks inside my AppleScript now in Mojave, to get them into an Object/Array like my old snippet above?