RE: Repeated opening of a Quark document
RE: Repeated opening of a Quark document
- Subject: RE: Repeated opening of a Quark document
- From: Hans Haesler <email@hidden>
- Date: Tue, 30 Nov 2004 10:08:26 +0100
Mon, 29 Nov 2004, Wadson, David wrote:
>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...
David,
this ...
---
tell application "QuarkXPress 6.5"
name of xtensions
end tell
---
... returns the names of all XTensions. Disabled or not.
A better approach would be to test if the XTension is in the
XTension folder ...
---
tell application "QuarkXPress 6.5"
set QXPapp to (path to) as string
set AppleScript's text item delimiters to {":"}
set QXPfolder to (text items 1 thru -3 of QXPapp) as string
set AppleScript's text item delimiters to {""}
end tell
try
alias (QXPfolder & ":XTension:DragX (port)")
tell application "QuarkXPress 6.5"
display dialog "Error! DragX xtension is loaded!" buttons ¬
"Abort" default button 1 with icon 0 giving up after 15
end tell
error number -128
on error
-- the offending XTension is not in the XTension folder
end try
---
... but there is no attribute which would directly tell us
if the XTension is disabled or not.
BTW 1, the same technique is used in the Script Menu script
"To or From XPress Tags".
BTW 2, maybe you know that you can get an optimized and
speeded up version of the Script Menu scripts here:
<http://www.fachhefte.ch> / click the link "AppleScripts",
open the folders "mac_os_x_e" and "min_qxp_6_1" and select
the file "Quark_6.x_scripts_e". This Stuffit archive is 420KB.
---
Hans Haesler <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