Re: Why doesn't this work?
Re: Why doesn't this work?
- Subject: Re: Why doesn't this work?
- From: Helmut Fuchs <email@hidden>
- Date: Thu, 5 Dec 2002 19:06:48 +0100
At 11:52 Uhr -0600 05.12.2002, Wallace, William wrote:
I am baffled by this:
set sourceDoc to choose file with prompt "Select a file..."
tell application "QuarkXPress(tm) 4.11"
open sourceDoc use doc prefs yes remap fonts no do auto
picture import no
tell document 1
set bunk to bounds of page 1
--> {"36 pt", "576 pt", "756 pt", "1152 pt"}
end tell
end tell
display dialog item 1 of bunk
--> Can't get item 1 of {"36 pt", "576 pt", "756 pt",
"1152 pt"}.
Shouldn't this work? What am I doing wrong?
This fails because the "bounds of page 1" looks like a list but
isn't. Just add a coercion to a list and everything should be fine:
set bunk to bounds of page 1 as list
HTH,
Helmut
--
_______________________________________________
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.