| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
tell application "Adobe InDesign CS2"
set selRef to object reference of selection of document 1
end tell
try
get xyzzy of selRef
on error errText
-- always errors
end try
-- get character offset, story id, and document name from object reference
set oldTIDs to AppleScript's text item delimiters -- store current TIDs
set AppleScript's text item delimiters to " character "
set x to (word 1 of text item 3 of errText) as integer
set AppleScript's text item delimiters to "story id "
set storyID to (word 1 of text item 2 of errText) as integer
set AppleScript's text item delimiters to "of document \""
set docName to text 1 thru -3 of text item -1 of errText
set AppleScript's text item delimiters to oldTIDs -- restore TIDs
-- use acquired info to set insertion point
tell application "Adobe InDesign CS2"
set selection to object reference of insertion point (x + 2) of story id storyID of document docName
end tell
_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-users/email@hidden Archives: http://lists.apple.com/archives/applescript-users This email sent to email@hidden
| References: | |
| >InDesign: how to move cursor by one place? (From: "Charles Arthur, UKClimbing Editor" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.