Why does this filter expression not work? Anyone have an idea?
Why does this filter expression not work? Anyone have an idea?
- Subject: Why does this filter expression not work? Anyone have an idea?
- From: Michael Johnston <email@hidden>
- Date: Wed, 2 Mar 2005 13:25:53 +0100
tell application "QuarkXPress Passport"
// Filter Expression one: works no problem
1: get every picture box of layout space 1 of project "bob" whose left
of bounds = "76.0mm" and top of bounds = "13.5mm" and width of bounds =
"142.0mm" and height of bounds = "1.5mm"
{picture box 7 of layout space "bob" of project
"HK_88_D_301_bis_301_ID_16035"}
2: set color of every picture box of layout space 1 of project "bob"
whose left of bounds = "76.0mm" and top of bounds = "13.5mm" and width
of bounds = "142.0mm" and height of bounds = "1.5mm" to "pink"
-- box changes color
// Filter Expression two: SEEMS to work
3: get every picture box of layout space 1 of project "bob" whose name
of color = "red"
{picture box 1 of layout space "bob" of project
"HK_88_D_301_bis_301_ID_16035"}
// Filter Expression two: actually does NOT work with a set. WHY???
any reason other than the usual reason (Applescript is the spawn of
satan).
4: set color of every picture box of layout space 1 of project "bob"
whose name of color = "red" to "pink"
"QuarkXPress Passport got an error: Can't set color of every picture
box of layout space 1 of project \"HK_88_D_301_bis_301_ID_16035\" whose
name of color = \"red\" to \"pink\"."
If I copy and paste the reference returned by 3: into a set color,
that works. It has nothing to do with the particular boxes, I've tested
on different documents with different boxes. It has nothing to do with
which properties I try to set, I've tried setting other properties in
statements 2 & 4. 2 always works, 4 always fails.
Michael Johnston
Planetactive
_______________________________________________
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