Expected class name but found identifier.

Discuss AppleScripting for QuarkXPress 10, 9 & 8 (and before)
Post Reply
MrSean
Posts: 0
Joined: 10 Jan 2013, 09:46

Expected class name but found identifier.

Post by MrSean » 09 May 2013, 22:39

A month ago I was working with Applescript for QXp almost daily, and while I'm new to this, everything was pretty 'normal'. Having just come back from vacation, I opened an old script and found that many commands and class identifiers that were formerly in natural language now look like this: event miscmvis for the 'show' command; class page for the 'page' class.
Whenever I run the script I had, which used to work and has not been changed, I now get the following error: "Expected class name but found identifier."This appears specifically for the 'page' class. If I replace 'page' with class page in the script, it will run fine, but I never needed to do that before and since I don't know any of the notations (and since they aren't generally contained in the dictionary), it would be nice to get this back to normal.
Applescript appears to want this sort of notation now for anything new I attempt to script, but that was never the case before. Additionally, it appears that some, but not all, of the natural language is not functioning. Any ideas about what can be done to get things back to normal?

StevenBlack
Posts: 0
Joined: 23 Apr 2013, 04:42

Expected class name but found identifier.

Post by StevenBlack » 10 May 2013, 02:07

This problem occurs if you open your script before opening Quark. To resolve, I restarted the system, then made sure that Quark was loaded before I opened AppleScript. Hope this helps!

MrSean
Posts: 0
Joined: 10 Jan 2013, 09:46

Expected class name but found identifier.

Post by MrSean » 10 May 2013, 02:44

Wow, I had no idea. Thanks for pointing that out.

Post Reply

Return to “QuarkXPress 8, 9 & 10: AppleScript”