• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Quark syntax error, no idea why
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Quark syntax error, no idea why


  • Subject: Quark syntax error, no idea why
  • From: Ken Tozier <email@hidden>
  • Date: Mon, 9 Mar 2009 00:33:47 -0400

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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden
  • Follow-Ups:
    • Re: Quark syntax error, no idea why
      • From: Ken Tozier <email@hidden>
    • Re: Quark syntax error, no idea why
      • From: Brian Christmas <email@hidden>
  • Prev by Date: Re: opening PowerPoint presentation without bringing to front?
  • Next by Date: Re: Quark syntax error, no idea why
  • Previous by thread: Re: opening PowerPoint presentation without bringing to front?
  • Next by thread: Re: Quark syntax error, no idea why
  • Index(es):
    • Date
    • Thread