Re: Quark syntax error, no idea why
Re: Quark syntax error, no idea why
- Subject: Re: Quark syntax error, no idea why
- From: Brian Christmas <email@hidden>
- Date: Mon, 9 Mar 2009 16:09:39 +1100
G'day
Might just be because you don't have a comma after FOLIOMONTH
Regards
Santa
On 09/03/2009, at 3:33 PM, Ken Tozier wrote:
Hi
I have a very simple script I wrote a few months ago to replace the
dates in newspaper page folios. It worked perfectly then, but now,
using the exact same version of Quark on the same machine with no
upgrades, I'm getting compile errors and have no clue why. I've
tried every combination of syntax that seemed to make sense, but the
thing just won't compile. It keeps spitting out the error "Syntax
error: Expected end of line but found class name."
Here's the script. Any help figuring out where I'm screwing up
greatly appreciated.
property dummyString : "FOLIODAY, FOLIOMONTH FOLIODATE, FOLIOYEAR"
ReplaceFolioDates("Thursday, February 12, 2009")
on ReplaceFolioDates(inDate)
using terms from application "QuarkXPress"
tell application "QuarkXPress"
tell master document 1
set every text of text boxes of spreads where it is dummyString
to inDate
end tell
end tell
end
end ReplaceFolioDates
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden