Skip to content

Instantly share code, notes, and snippets.

@adomasven
Last active March 9, 2018 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adomasven/4f798acb84afdf4803370f66f6d0f6ca to your computer and use it in GitHub Desktop.
Save adomasven/4f798acb84afdf4803370f66f6d0f6ca to your computer and use it in GitHub Desktop.
Test3
tell application "Microsoft Word"
set fn to make new footnote at active document
tell text object of fn to set content to ""
set noteRef to note reference of fn
#tell active document to select text object of fn
set sbWhere to text object of fn
create new field text range sbWhere field type field print date
tell active document to select note reference of fn
tell selection to set selection start to end of content of noteRef
tell selection to set selection end to end of content of noteRef
# Where is the cursor? What is on the page?
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment