Re: QuarkXPress vs Adobe InDesign [AGAIN]
Re: QuarkXPress vs Adobe InDesign [AGAIN]
- Subject: Re: QuarkXPress vs Adobe InDesign [AGAIN]
- From: Shane Stanley <email@hidden>
- Date: Thu, 16 Oct 2003 21:59:45 +1000
On 16/10/03 8:28 PM +1000, Luca BASSINI, email@hidden, wrote:
>
Same problems trying to convert some scripts from
>
QuarkXPress to Adobe InDesign...
>
>
The actual script is this one:
>
>
tell application "QuarkXPress"
>
tell document 1
>
set theBox to last text box whose name of story 1 is Story_Name
>
tell story 1 of theBox
>
-- Applico la riduzione di track solo agli stili di testo prestabiliti
>
set copyFittingStyleList to {"Style1", "Style2"}
>
repeat with aStyle in copyFittingStyleList
>
try
>
set actualTrack to (track of first paragraph where style sheet is
>
aStyle) as real
>
set (track of every paragraph where style sheet is aStyle) to
>
(actualTrack + 1)
>
end try
>
end repeat
>
end tell
>
end tell
Try something like this:
tell application "InDesign 2.0.2"
tell document 1
set label of story 1 to "X" -- for testing
set Story_Name to "X"
set theStory to (object reference of story 1 whose label is Story_Name)
set copyFittingStyleList to {"Style1", "Style2"}
repeat with aStyleName in copyFittingStyleList
set theStyle to paragraph style (contents of aStyleName)
try
tell theStory
set actualTrack to (tracking of first paragraph whose applied paragraph
style is theStyle)
set (tracking of every paragraph whose applied paragraph style is
theStyle) to (actualTrack + 1)
end tell
end try
end repeat
end tell
end tell
--
Shane Stanley, email@hidden
_______________________________________________
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.