Re: Quark 5.01 scripting syntax
Re: Quark 5.01 scripting syntax
- Subject: Re: Quark 5.01 scripting syntax
- From: Hans Haesler <email@hidden>
- Date: Fri, 24 Oct 2003 18:13:30 +0200
On Fri, 24 Oct 2003, Shane Stanley wrote:
>
On 24/10/03 4:28 AM +1000, K.Schreckengost, email@hidden,
>
wrote:
>
>
> To make things simple I started with a new script for a test.
>
>
>
> tell application "QuarkXPress"
>
> activate
>
> make new document at beginning
>
> open file path_to_esixting_file
>
> duplicate generic boxes of page 1 of document 1 to end of page 1 of
>
>document 2
>
> end tell
>
>
>
> Running the above script generates the error "Can't make or move that
>
>element
>
> into that container."
>
>
That works fine in 4.11, so I assume that's something that got broken in v5.
>
Looks like you're stuck with copy and paste.
Using QXP 5.01, it worked (almost) for me with a simple test document,
i.e. two boxes were copied, before the error message was displayed.
I modified the script like this and it doesn't error anymore...
---
set path_to_existing_file to (choose file of type "XDOC") as string
tell application "QuarkXPress 5.01"
activate
make document at beginning
open file path_to_existing_file
select every generic box of page 1 of document 1
duplicate current box to beginning of page 1 of document 2
end tell
---
... but the copied boxes end up grouped...
BTW, you don't have to worry about the Item tool. It works even with
the Content tool selected.
---
Hans Haesler <email@hidden>
_______________________________________________
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.