Re: Quark style and character sheets -- is "normal" always spec number 1?
Re: Quark style and character sheets -- is "normal" always spec number 1?
- Subject: Re: Quark style and character sheets -- is "normal" always spec number 1?
- From: email@hidden
- Date: Sat, 3 Aug 2002 02:04:34 EDT
In a message dated 8/2/02 Dan Feather writes:
>
I'm in the midst of head-scratching as I work with QuarkXPress (4)'s
>
style and character specs.
>
>
Let me begin with an easy question:
>
>
Is it ALWAYS the case that the default (and un-deletable) "Normal" specs
>
>
have an index of 1?
>
>
I have checked a lot of random XDOCs, mostly generated here, but some
>
from external sources, and, so far, this generalization has held true.
>
I
>
just want to make sure I can count on it as a rule.
>
>
In deleting style and character sheets, I could loop through, checking
>
>
for the name "Normal," but it would be so much handier if I could simply
>
>
delete all whose index is not 1.
I was gonna make a couple of suggestions:
tell document 1 of application "QuarkXpress"
delete every style spec whose name is not "Normal"
end tell
but it crashed my Mac.
then I tried
tell document 1 of application "QuarkXpress"
set x to index of style spec named "Normal:
delete every style spec whose index is not x
end tell
that crashed my Mac too. So I'm curious, does:
delete every style spec whose index is not 1
actually work? I'd try it but I'm too scared....
_______________________________________________
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.