An AppleScript a day will eventually cause a visit to the doctor.
April 29, 2009 2:22 PM   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 (2 answers total)
 
Response by poster: 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, 2009


Response by poster: 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, 2009


« Older Looking for an alternative to Echopic that shows...   |   How to discover new books, movies or other media... Newer »
This thread is closed to new comments.