InDesign CS external page destination
InDesign CS external page destination
- Subject: InDesign CS external page destination
- From: Götz Verdieck <email@hidden>
- Date: Wed, 02 Jun 2004 11:53:28 +0200
Hi,
I posted this on the Adobe InDesign Scripting list, but nobody helped me.
I trie to make a bookmark to a external document.
Text bookmark works fine. Maybe someone can help?
This is my test script:
tell application "InDesign CS"
--Set up two example documents.
set myDocumentA to make document
tell myDocumentA
set myTextFrame to make text frame with properties {geometric bounds:{"6p",
"6p", "20p", "20p"}, contents:"Destination for Bookmark in Doc A"}
-- set hyperlink text destination
set myHyperLinkTextDestination to make hyperlink text destination with
properties {destination text:paragraph 1 of parent story of myTextFrame}
-- set hyperlink external page destination
set myHyperLinkExternalPageDestination to make hyperlink external page
destination with properties {destination text:paragraph 1 of parent story of
myTextFrame}
-- make bookmark is ok
set myParentBookmark to make bookmark with properties
{destination:myHyperLinkTextDestination, name:"Bookmark in A target A"}
end tell
set myDocumentB to make document
tell myDocumentB
set myTextFrame to make text frame with properties {geometric bounds:{"6p",
"6p", "20p", "20p"}, contents:"Destination for Bookmark in Doc B"}
set myParentBookmark to make bookmark with properties
{destination:myHyperLinkExternalPageDestination, name:"Bookmark in B mit
Ziel A"}
-- InDesign CS got an error: Diese Eigenschaft kann nicht f|r ein Objekt in
einem anderen Dokument eingerichtet werden.
--Translation: this property cannot be created for an object in another
document
end tell
end tell
Thanks in advance
Gvtz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.