RE: Why doesn't this work?
RE: Why doesn't this work?
- Subject: RE: Why doesn't this work?
- From: Ken McGregor <email@hidden>
- Date: Fri, 6 Dec 2002 09:18:12 -0000
You need to coerce the bounds result to a list to get item 1
set bunk to bounds of page 1 as list.
Regards Ken
Mac Systems Developer
M&C Saatchi
Registered Office:
36 Golden Square, London. W1F 9EE.
DD: +44 (0)20 7544 3613 / 07973 705980
Registered in England, No. 3003693
http://www.mcsaatchi.com
>
----------
>
From: Wallace, William
>
Sent: Thursday, December 5, 2002 17:52 PM
>
To: 'email@hidden'
>
Subject: Why doesn't this work?
>
>
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?
>
>
-whw
>
_______________________________________________
>
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.
>
>
This email transmission is confidential and intended solely
for the person or organisation to whom it is addressed. If you
are not the intended recipient, you must not copy, distribute
or disseminate the information, or take any action in relation
to it and please delete this e-mail. Any views expressed in
this message are those of the individual sender, except where
the sender specifically states them to be the views of any
organisation or employer. If you have received this message
in error, do not open any attachment but please notify the
sender (above). This message has been checked for all known
viruses powered by Messagelabs. For further information
visit www.messagelabs.com/stats.asp Please rely on your own
virus check as no responsibility is taken by the sender for
any damage rising out of any virus infection this communication
may contain.
_______________________________________________
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.