Re: QuarkXPress 6.5 Scripting Strategy Question
Re: QuarkXPress 6.5 Scripting Strategy Question
- Subject: Re: QuarkXPress 6.5 Scripting Strategy Question
- From: Luca Pozzato <email@hidden>
- Date: Fri, 04 Feb 2005 16:05:48 +0100
Title: Re: QuarkXPress 6.5 Scripting Strategy Question
Hi Jason,
Supposing that code number and price are in the same text box as two different paragraphs,
you can start by naming every text box with the item code (get paragraph 1 and set name)
So you end up with some text boxes with the same name.
---first part
Then supposing that you are getting the updated prices as list of records {{item_1,price_1,},{item_2,price_2},}
you can run a script that would say something like
---secon part
tell application "QuarkXPress Passport 4.11"
activate
---first part
tell document 1
repeat with k from 1 to count of text boxes
tell text box k
set mp to paragraph 1
set name to mp
end tell
end repeat
end tell
---secon part you can loop in the list or start from a selection
tell document 1
set new_price to "Price 1000"
set REF_CODE to "code 1"
set paragraph 2 of (every text box whose name is REF_CODE) to new_price
end tell
end tell
let me know
ciao
Luca
From: Jason Bourque <email@hidden>
Date: Thu, 03 Feb 2005 11:57:14 -0500
To: <email@hidden>
Subject: QuarkXPress 6.5 Scripting Strategy Question
Hello,
I have project that got the best of me last time. This time I want to change that.
We have a 120+ page catalog. Sometimes we will list a single product twice. So the pricing is listed twice.
When the pricing changes the updated process is tough. So I can do two things.
Run a text finding script that will find every location of each product item number. This list will only show item numbers that are in more than one location. I am not sure how I will get quark to do this.
Write a script that grabs each text box and put it in a FileMaker Pro database. Capture the page number and text. Then run each item number against the database. If returned more than once put it in a list.
Any ideas.
Thanks,
Jason Bourque
_______________________________________________
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