• 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
Re: Quark syntax error, no idea why
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Quark syntax error, no idea why (From: Ken Tozier <email@hidden>)

  • Prev by Date: Quark syntax error, no idea why
  • Next by Date: Re: Quark syntax error, no idea why
  • Previous by thread: Quark syntax error, no idea why
  • Next by thread: Re: Quark syntax error, no idea why
  • Index(es):
    • Date
    • Thread