Re: flowing text with InData for InDesign
Re: flowing text with InData for InDesign
- Subject: Re: flowing text with InData for InDesign
- From: Emmanuel <email@hidden>
- Date: Sun, 22 May 2005 09:33:00 +0200
At 7:18 PM -0400 5/21/05, Avi Learner wrote:
I am trying to write a script to flow text from a text file with 100
or so records into an InDesign Template. I have the basic open
script working with one record (from a text file) and it saves with
it's original name. I want to import all the records creating
separate pages for each record, and then create a unique filename
for each save. It would be cool to parse the file name (to be saved
with the InDesign layout) from one of the text frames (columns) of
each record.
My scripting skills are primitive, and I cannot find anything on the
InData sight like any other sample scripts, that repeat. I cannot
figure out how to script a line copy from texedit.
tell application "TextEdit"
activate
set myText to paragraph of document "fmp.csv"
end tell
returns the entire file, when I only want to copy one "line" at a
time to the clipboard.
Maybe it will work better if you specify an index for the paragraph, such as:
set myText to paragraph 1 of document "fmp.csv"
Also, if what you want is to extract paragraphs from a string, maybe
you don't need any application for that: AppleScript can read files
by itself. Check the entry for "read" in Standard Additions'
dictionary.
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden