• 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 XPress 6 OS X script problem when Quark 5.x is running - coercion handler?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Quark XPress 6 OS X script problem when Quark 5.x is running - coercion handler?


  • Subject: Quark XPress 6 OS X script problem when Quark 5.x is running - coercion handler?
  • From: Thomas Engelmeier <email@hidden>
  • Date: Wed, 23 Jun 2004 13:41:11 +0200

Now that the first half of my scripting problems are resolved I have one final problem:

As soon as the Classic version of Quark XPress 5 is running scripts executed in OS X can not convert some properties. (The appropriate handlers are installed AFAIK system-wide in XPress 5 but work only when the Event source is an Classic process - when the compiled Script is executed as an classic application it works.

Looking at the Event Log I see internally the event is sent to the correct target and then delegated to an target specified by the Creator-Code (and probably dispatched to the wrong one..).

The event log should and corresponding code snippet follows.

Has anyone an idea how to get that right?

TIA,
Tom_E
########
using terms from application "QuarkXPress Passport"
tell application (theApplication as string)
set thePage to page 1 of front document
set theLeft to (left of bounds of thePage as centimeter units as real)
#######

{ 1 } 'aevt': aevt/ansr (ppc ){
return id: 184680460 (0xb02000c)
transaction id: 0 (0x0)
interaction level: 112 (0x70)
reply required: 0 (0x0)
remote: 0 (0x0)
target:
{ 1 } 'psn ': 8 bytes {
{ 0x0, 0x1a80001 } (QuarkXPress)
}
optional attributes:
< empty record >
event data:
{ 1 } 'aevt': - 1 items {
key '----' -
{ 1 } 'FXHM': 4 bytes {
000: 0000 0000 ... }
}
}

------oo end of event oo------
AE2000 (2818): Sending an event:
------oo start of event oo------
{ 1 } 'aevt': core/kcrs (ppc ){
return id: 184680461 (0xb02000d)
transaction id: 0 (0x0)
interaction level: 112 (0x70)
reply required: 1 (0x1)
remote: 0 (0x0)
target:
{ 2 } 'sign': 4 bytes {
'XPR3' (QuarkXPress)
}
optional attributes:
< empty record >
event data:
{ 1 } 'aevt': - 7 items {
key 'argS' -
{ 1 } 'magn': 4 bytes {
4l (0x4)
}
key 'ftyp' -
{ 1 } 'long': 4 bytes {
1 (0x1)
}
key 'arg1' -
{ 1 } 'magn': 4 bytes {
1180190797l (0x4658484D)
}
key 'arg2' -
{ 1 } '****': 4 bytes {
000: 0000 0000 ... }
key 'arg3' -
{ 1 } 'long': 4 bytes {
4 (0x4)
}
key 'arg4' -
{ 1 } '****': 4 bytes {
000: 7265 636f reco }
key 'arg5' -
{ 1 } 'long': 4 bytes {
1634952050 (0x61736372)
}
}
}

------oo end of event oo------
AE2000 (2818): Received an event reply:
------oo start of event oo------
{ 1 } 'aevt': aevt/ansr (****){
return id: 184680461 (0xb02000d)
transaction id: 0 (0x0)
interaction level: 112 (0x70)
reply required: 0 (0x0)
remote: 0 (0x0)
target:
{ 1 } 'psn ': 8 bytes {
{ 0x0, 0x2 } (BarcodeHelper)
}
optional attributes:
< empty record >
event data:
{ 1 } 'aevt': - 1 items {
key 'errn' -
{ 1 } 'long': 4 bytes {
-1708 (0xfffff954)
}
}
}

--
Thomas Engelmeier * 0172/8186046
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: quit the dock - possible?
  • Next by Date: Re: CD drive opener -- OS 9
  • Previous by thread: Re: Code works in Scripteditor but not ASS
  • Next by thread: Read resource forks wit applescript
  • Index(es):
    • Date
    • Thread