Re: Quark syntax error, no idea why
Re: Quark syntax error, no idea why
- Subject: Re: Quark syntax error, no idea why
- From: Ken Tozier <email@hidden>
- Date: Mon, 9 Mar 2009 01:34:22 -0400
Never mind. It's a bug in OSAScript. I'm calling the script from Cocoa
code and the mere act of loading a script wipes out the Quark
dictionary. I thought I had this problem licked when I switched from
NSAppleScript to OSAScript but apparently that too has this lovely
"load a script, delete the terminology resource" bug.
Now I have to ditch my entire Applescript palette because there is no
way I'm going to ship something that has the potential to wipe out an
application's scripting dictionary just by loading and running a
script. Lovely.
On Mar 9, 2009, at 12:33 AM, 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