Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: InDesign CS2 Library Asset on specific page



Hi Dan,
you can always position your asset afterwards



tell application "Adobe InDesign CS2"
set placedAsset to place asset asset 1 of library 1 on document 1
move placedAsset to beginning of page 2 of document 1
end tell



Luca



On Nov 27, 2006, at 8:43 PM, Dan Doughtie wrote:

I’ve got the basic place asset script to work but can’t find the syntax to specify which page. The script uses a slightly different syntax in referring to  “on document x” instead of “of document x” etc.

So, using a line from Shirley’s book

Set placedAsset to place asset asset “AssetName” of library “LibraryName” on document 1

Works great and places the asset on the active page. But I need to be able to specify a certain page based on certain criteria.

Tried

Set placedAsset to place asset asset “AssetName” of library “LibraryName” on page 1 of  document 1

Set placedAsset to place asset asset “AssetName” of library “LibraryName” on page 1 on  document 1

Set placedAsset to place asset asset “AssetName” of library “LibraryName” on page 1

None worked. The error basically says it was expecting back text or a document and got page.

Any suggestions

Dan
--

Dan Doughtie
Augusta, GA

 _______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden

References: 
 >InDesign CS2 Library Asset on specific page (From: Dan Doughtie <email@hidden>)



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.