• 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
RE:QXP and Anchored Text Boxes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE:QXP and Anchored Text Boxes


  • Subject: RE:QXP and Anchored Text Boxes
  • From: email@hidden
  • Date: Wed, 17 Sep 2003 15:21:50 -0400
  • Priority: normal

Hi Ken,

Would something like this work for you?


-----------------
tell application "QuarkXPress 4.11"
activate
tell document 1
make picture box at beginning with properties
{bounds:{"0.0\"", "0.0\"", "0.5\"", "1.0\""}}
select picture box 1
set tool mode to drag mode
end tell

select menu "Edit"'s menu item "cut"

tell document 1
set tool mode to contents mode
repeat with i from 1 to count of paragraphs
repeat with stkNumberToCheck in {"256875", "184351",
"218205"}
if paragraph i of story 1 contains (stkNumberToCheck as
string) then
set selection to insertion point before character 1 of
paragraph i of story 1
paste
end if
end repeat
end repeat
end tell
end tell
-------------------------

Hope it helps.

Jay

============================

Subject: FW: QXP and Anchored Text Boxes
To: "'email@hidden'"
<email@hidden>
From: "Grimm, Kenneth" <email@hidden>
Date: Mon, 15 Sep 2003 20:52:47 -0400

> To all:
>
> I'm developing this script to search through the text and
if it finds the
> stock number, add an anchored picture box above the text.
>
> It goes finds the first stock number (sometimes the
second), inserts the
> correct anchored picture and then will not find any more.
No erros
> reported, it just compeltes the script and never finds any
other stock
> numbers.
>
> Can you see something wrong I'm missing?
>
> Thanks,
>
> Ken
_______________________________________________
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: AS in AppleExpo Paris.
  • Next by Date: Scriptable preflighter
  • Previous by thread: FW: QXP and Anchored Text Boxes
  • Next by thread: Scriptable preflighter
  • Index(es):
    • Date
    • Thread