ID CS book content
ID CS book content
- Subject: ID CS book content
- From: Götz Verdieck <email@hidden>
- Date: Thu, 20 May 2004 08:29:08 +0200
Hi,
I tried to run the following InDesgin script:
--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 CS"
set myBook to make book with data myBookFile
-- Errormessage: InDesign CS got an error: Can't make a book.
--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
The script is from the Indesign 2 scripting doc.
I always get the error message: InDesign CS got an error: Can't make a book.
Under ID 2.02 I could make the book content when I use an existing book
Under ID CS make book and make book content is not possible for me.
Any hint is welcome.
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.