Re: Naming Quark boxes - screwed up!
Re: Naming Quark boxes - screwed up!
- Subject: Re: Naming Quark boxes - screwed up!
- From: Dave Balderstone <email@hidden>
- Date: Tue, 17 Apr 2001 11:05:07 -0600
This works for me (there's some debugging stuff in there):
tell application "QuarkXPress 4.11"
try
tell front document
try
set BoxName to name of current box
on error
display dialog "Select a box"
error number -128
end try
set name of current box to "Section Front"
end tell
on error
display dialog "An error occured. Check the script."
end try
end tell
Dave Balderstone
Director, Technical Services
Western Producer Publications, Saskatoon, Canada
At 11:13 AM -0500 4/17/01, Steve Kump wrote:
>
I should mention that I only switched to the code below after the even
>
simpler
>
>
tell app "Quark"
>
tell document 1
>
set the name of the current box to myName
>
end tell
>
end tell
>
>
didn't work either!
>
Steve Kump
>
>
> From: Steve Kump <email@hidden>
>
> Date: Tue, 17 Apr 2001 08:54:05 -0700
>
> To: AppleScript <email@hidden>
>
> Subject: Naming Quark boxes - screwed up!
>
>
>
> Hi List,
>
>
>
> I am doing this very simple operation in three steps to try and solve this
>
> strange behaviour:
>
>
>
> tell application "QuarkXPress"
>
> tell document 1
>
> set theBox to the object reference of the current box
>
> set theIndex to the index of theBox
>
> set name of generic box theIndex to "hello"
>
> end tell
>
> end tell
>
>
>
> When I select a single box and run this script, it always names SEVERAL
>
> different, unrelated boxes! WHY? I just want to name a few boxes by
>
> selecting them, and then running one of 10 scripts that names up to 10
>
> boxes, picture boxes really.
>
>
>
> I have been struggling with variations on this but have not been successful
>
> getting this to work, but I don't understand why it won't work! I can't rely
>
> on the stacking order and need to target these few "marked" boxes out of a
>
> slew of other boxes.
>
>
>
> I hope someone can explain what is happening here.
>
> Thanks,
>
> --
>
> Steve Kump
>
> _______________________________________________
>
> applescript-users mailing list
>
> email@hidden
>
> http://www.lists.apple.com/mailman/listinfo/applescript-users
>
_______________________________________________
>
applescript-users mailing list
>
email@hidden
>
http://www.lists.apple.com/mailman/listinfo/applescript-users