RE: Changing case to lower case in QuarkXPress v5
RE: Changing case to lower case in QuarkXPress v5
- Subject: RE: Changing case to lower case in QuarkXPress v5
- From: Jay <email@hidden>
- Date: Sun, 26 Oct 2003 23:10:11 -0600
Hi Bob,
You could change the 'ASCII' characters accordingly to change all
uppercase to lowercase and keep the styles. At least this works in
Quark 4.11. If you've got a ton of text to change, this method
probably won't be very fast though (watch for wrapped lines -- I've put
a return space between each line of code):
-----------------------------
tell application "QuarkXPress"
tell document 1's current box
repeat with x from 65 to 90
if story 1 contains (ASCII character x) then set (every character where
it is (ASCII character x)) to (ASCII character (x + 32))
end repeat
end tell
end tell
-----------------------------
Hope this is somewhat helpful.
Jay
=============
>
I've been working on a script for QuarkXPress v5 that gets the
contents of
>
selected text from a document, runs it through a handler to change the
case
>
and then changes the selection to the revised text. It worked fine
but, if
>
any of the text in the selection was styled it got lost in translation.
>
(contents of selection returns plain text.)...
_______________________________________________
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.