RE: Repeated opening of a Quark document
RE: Repeated opening of a Quark document
- Subject: RE: Repeated opening of a Quark document
- From: "Wadson, David" <email@hidden>
- Date: Mon, 29 Nov 2004 20:41:06 -0500
Nevermind...now I think have run into a bug. :-) Even if the Xtension is
disabled using Quark's Xtensions manager, it still shows up in the list...
> ----------
> From: Wadson, David
> Sent: Monday, November 29, 2004 8:29 PM
> To: Applescript (E-mail)
> Subject: RE: Repeated opening of a Quark document
>
> Solved the problem...turns out it was an Xtension conflict with some
> software from Harris-Baseview. DragX seems to screw up scripting opening a
> template multiple times. Disabling it takes care of the problem, plus I
> added a quick check into the script to detect the offending Xtension:
>
> tell application "QuarkXPress(tm)"
> repeat with currentXtension in (xtensions as list)
> if name of currentXtension is "DragX (port)" then
> set dialogText to "Error! DragX xtension is loaded!"
> display dialog dialogText buttons {"Abort"} default
> button
> "Abort" giving up after 15
> return
> end if
> end repeat
> end tell
>
>
> > ----------
> > From: David Wadson
> > Sent: Monday, November 29, 2004 3:53 PM
> > To: AppleScript
> > Subject: Repeated opening of a Quark document
> >
> > <<File: ATT227161.txt>>
> > I've heavily simplified a script (which of course worked fine in Quark
> > 3/4/5 on OS 8/9) into this...
> >
> > ------- BEGIN SCRIPT
> >
> > property comicTemplate :"Path"To:The:Test Document" as alias
> >
> > repeat with i from 1 to 10
> > tell application "QuarkXPress"
> > activate
> > open comicTemplate remap fonts no use doc prefs yes
> > close front document saving no
> > end tell
> > end repeat
> >
> > ------ END SCRIPT
> >
> > QuarkXPress 6.5 and Mac OS 10.3.6.
> >
> > At best, the script will open the file on the first iteration of the
> loop.
> > However, on subsequent iterations, even though Script Editor's event log
> > shows Quark processing the open command with no errors, the document is
> > not actually opened. At worst, Quark throws up some message about
> > "connection failed" and quits only (semi-)unexpectedly.
> >
> > http://lists.apple.com/archives/applescript-users/2002/Nov/msg01020.html
> > points to a problem with OS X 10.2.x Finder and Quark communication. Is
> > that the case still? I don't think there's anything wrong with my syntax
> > of this script but you never know. New versions of Quark and the OS
> > sometimes are more particular about semi-correct code.
> >
> > If it is a bug, any ideas on how to work around it until Quark releases
> > their next update for Quark 6. I'll say it before anyone else has to -
> > hahahahahahahaha! :-)
> >
> >
> > David Wadson
> > IT Manager
> > The Chronicle-Journal
> > Thunder Bay, Ontario
> >
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> roniclejournal.com
>
> 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:
This email sent to email@hidden