FW: [sd-talk] SD4 returning incorrect results
FW: [sd-talk] SD4 returning incorrect results
- Subject: FW: [sd-talk] SD4 returning incorrect results
- From: Levon Spradlin <email@hidden>
- Date: Tue, 18 Dec 2007 12:51:43 -0600
- Thread-topic: [sd-talk] SD4 returning incorrect results
Title: FW: [sd-talk] SD4 returning incorrect results
Hey everyone. I have been having some difficulties getting results to return correctly in ScriptDebugger 4. The issue has been limited to returning results of font pseudo styles in Quark.6.5. I have been working with Mark Alldritt hoping to find a solution. He has come up with nothing after much effort. He suggested that I submit a bug report to Apple. Just sent it off, probably won’t hear about it soon, if at all.
Here is what I have been seeing. The issue is only in Quark Xpress 6.5 so far.
> I tested something out and found an inconsistency.
>
> tell application "QuarkXPress"
> tell front document
> tell every text box
> tell every character
> set xFont to font
> set xStyle to style
> if style is not plain then
> display dialog "Not Plain."
> end if
> if style is plain then
> display dialog "Plain."
> end if
> end tell
> end tell
> end tell
> end tell
>
> Returns this as a result in Script Editor:
> {class:text style info, on styles:{bold, all caps}, off styles:{plain,
> italic, underline, outline, shadow, superscript, subscript, superior,
> strikethrough, small caps, word underline}}
>
> But it returns this as a result from Script Debugger 4, regardless of the file
> contents:
> {class:text style info, on styles:{italic, shadow, superscript, superior,
> all caps}, off styles:{plain, bold, underline, outline, subscript,
> strikethrough, small caps, word underline}}
Thanks,
Levon Spradlin
Technology Manager, Desktop Publishing Support Services
Pearson | Assessment & Information
512-989-5300 x 3989
email@hidden
------ Forwarded Message
From: Mark Alldritt <email@hidden>
Reply-To: <email@hidden>
Date: Tue, 18 Dec 2007 09:55:10 -0800
To: sd-talk <email@hidden>
Conversation: [sd-talk] SD4 returning incorrect results
Subject: Re: [sd-talk] SD4 returning incorrect results
Hello,
> Any update on my issue? I have since installed SD4 on my test Mac, a dual
> G4 that I keep simple and clean for things like this. It is also returning the
> same ‘on styles’ results that my primary Mac does. I have created new, clean
> Quark files for testing as well. I am always getting the same ‘on styles’
> results regardless of the actual values. SD4 seems to work fine for me
> usually, but I am a novice and only scraping the surface of AS’s capabilities.
> I am mostly modifying the existing library that was built before I took over.
> I am at a bit of a standstill on the script that this relates to, since
> the results are incorrect. I am thinking about upgrading to Quark Xpress 7 to
> see if that helps to alleviate the issue.
I apologize for taking so long to respond. Sorting this one out has taken
quite a bit of doing.
It turns out that you have uncovered a bug in AppleScript. Its subtle bug
that impacts both Script Debugger and Apple's Script Editor.
I've come up with a test case which I'm going to submit to Apple. The
problem is that Apple's response to bugs is not terribly swift. As a
customer, I encourage you to file a bug also as customer submitted bugs tend
to carry more weight than developer submitted bugs.
tell application "QuarkXPress"
tell front document
tell every text box
tell word 2
set xxx to get style
end tell
end tell
end tell
log xxx
end tell
If you run this in Apple's Script Editor with its Event Log panel showing,
you'll see that the 'get style' statement retrieves the correct data from
Quark, but the 'log xxx' statement shows that AppleScript has altered the
data:
tell application "QuarkXPress"
get style of word 2 of every text box of document 1
{{class:text style info, on styles:{italic}, off styles:{plain,
bold, underline, outline, shadow, superscript, subscript, superior,
strikethrough, all caps, small caps, word underline}}, {class:text style
info, on styles:{bold}, off styles:{plain, italic, underline, outline,
shadow, superscript, subscript, superior, strikethrough, all caps, small
caps, word underline}}}
(*class:text style info, on styles:underline, superscript, subscript,
all caps, small caps, off styles:plain, bold, italic, outline, shadow,
superior, strikethrough, word underline, class:text style info, on
styles:underline, superscript, subscript, all caps, small caps, off
styles:plain, bold, italic, outline, shadow, superior, strikethrough, word
underline*)
end tell
I've spent quite a bit of time trying to figure out a workaround and I keep
coming up empty. I've tried reading the style info from Quark in various
ways without much success. All I can suggest is hat you take this problem
to the AppleScript-Users mailing list and see if other Quark users have any
ideas.
-Mark
****************************************************************************
This email may contain confidential
material. If you were not
an intended recipient,
Please notify the sender and delete all copies.
We may monitor email to and from our network.
***************************************************************************
_______________________________________________
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