• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Indesign make book
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Indesign make book


  • Subject: Indesign make book
  • From: Götz Verdieck <email@hidden>
  • Date: Thu, 23 Oct 2003 07:18:06 +0200

Can anybody give me a hint how I can make a new book in Indesign 2.0.2.

The following script from the Indesign Scripting help pdf always brings up
an error message: "InDesign 2.0.2 got an error: Can't make a book."

Thanks for any hint

Gvtz




--Add all of the InDesign files in a folder to
--the book content list of a new book file.
set myFolder to choose folder with prompt "Select the folder containing the
book files."
set myFileList to {}
tell application "Finder"
set myFiles to files of myFolder
repeat with myFileCounter from 1 to (count myFiles)
if file type of item myFileCounter of myFiles is "InDd" then
copy (item myFileCounter of myFiles) as string to end of
myFileList
end if
end repeat
end tell
if (count myFileList) > 0 then
set myBookFile to choose file name with prompt "Save book file as"
tell application "InDesign 2.0.2"
set myBook to make new book with data myBookFile
--Add the files to the book content list in the reverse of the
--order in which they appear in the folder.
repeat with myFileCounter from (count myFileList) to 1 by -1
tell myBook
make book content with data (item myFileCounter of
myFileList)
end tell
end repeat
end tell
else
display dialog "No InDesign files were found in the selected folder."
end if
_______________________________________________
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.

  • Prev by Date: Re: Print PDF page by page
  • Next by Date: [ABSTRACT] Styled Text to HTML (or RTF, or...)
  • Previous by thread: Re: Print PDF page by page
  • Next by thread: [ABSTRACT] Styled Text to HTML (or RTF, or...)
  • Index(es):
    • Date
    • Thread