An AppleScript a day will eventually cause a visit to the doctor.
April 29, 2009 2:22 PM   RSS feed for this thread Subscribe

In Word 2008, how can I set up an AppleScript macro to move selected text so that it appears underneath a particular bookmark?

I have no problem cutting the selection or assigning the content of the text object of the selection to a variable. The question is, assuming I know the bookmark name, how can I jump through the document to a specific bookmark, insert a carriage return, and paste the cut object to appear directly below the bookmark?
posted by I EAT TAPAS to computers & internet (3 comments total)
Can you access the Find and Replace functionality, search for the bookmark text, and replace it with the bookmark text plus a carriage return, plus what you selected?
posted by odinsdream at 2:40 PM on April 29


odinsdream, bookmarks in Word 2008 are a named reference to a specific location in a document, rather than a text string that might be found by the Find/Replace functionality. In addition, I wouldn't want this operation to change the position of the bookmark.
posted by I EAT TAPAS at 2:53 PM on April 29


I figured it out.

navigate text object of selection to goto a bookmark item name bookmarkName
type paragraph selection
posted by I EAT TAPAS at 5:30 PM on April 29


« Older Echopic is shutting down June ...   |   Are there similar sites such a... Newer »

You are not logged in, either login or create an account to post comments