I am being forced to use ms word for mac to collaborate in a project. I usually use Bear Markdown Notes, and I am used to using deep links to Bear Note headings (aka headers) in documents from other apps. From what I understand, this is not possible in ms word for mac and I was wondering if there is a workaround.
I used Hookmark quite a lot, backtracked and re-converted all my links. I don’t like the idea of proprietary links and don’t like the way the developers handled issues , but that ‘s just me. I know that many people use Hookmark. thank you for your reply.
tell application "Microsoft Word"
activate
-- Specify the full path to your document
set docPath to POSIX file "/Users/YourName/Documents/YourDocument.docx"
open docPath
tell active document
-- Replace "YourBookmarkName" with the actual name of your bookmark
set targetBookmark to "YourBookmarkName"
if (exists bookmark targetBookmark) then
-- Create a range based on the bookmark's start and end points
set bmRange to create range start (start of bookmark of bookmark targetBookmark) ¬
end (end of bookmark of bookmark targetBookmark)
-- Move the cursor to the bookmark and select it
select bmRange
else
display dialog "Bookmark '" & targetBookmark & "' not found."
end if
end tell
end tell