Re: Quark 4.04 : to copy a text doc from other program and paste it in new text box
Re: Quark 4.04 : to copy a text doc from other program and paste it in new text box
- Subject: Re: Quark 4.04 : to copy a text doc from other program and paste it in new text box
- From: Jay Young <email@hidden>
- Date: Sat, 23 Nov 2002 03:13:22 -0600
>
2) to copy a text doc from other program and paste it in new text box
I'm not sure what other program you want to work with, but you could
copy from that application and then use something like this to paste it
into a new text box in QuarkXPress:
--------------------------------------------------------------------
tell application "QuarkXPress"
tell document 1
make text box at beginning of current page with properties
{bounds:{"1\"", "1\"", "3\"", "4\""}}
select current page's text box 1
paste
end tell
end tell
--------------------------------------------------------------------
or if you set the other programs selection to a variable (like Txt) you
could do this:
--------------------------------------------------------------------
tell application "QuarkXPress"
tell document 1
make text box at beginning of current page with properties
{bounds:{"1\"", "1\"", "3\"", "4\""}}
set current page's text box 1's story 1 to Txt
end tell
end tell
--------------------------------------------------------------------
>
3) poking my way around this script i expanded on earlier today
>
from the errrors i get it seems par 2 ends up as a child of par 1
>
or iow : how do i generate the next paragraph ??
See if something like this might help:
--------------------------------------------------------------------
tell application "QuarkXPress"
tell document 1's current page's text box 1's story 1
set paragraph 1's properties to {contents:"test paragraph 1" & return,
justification:centered}
set paragraph 2's properties to {contents:"test paragraph 2" & return,
justification:right justified}
end tell
end tell
--------------------------------------------------------------------
I tested these on OS X with AS 1.9 with QuarkXPress 4.1
Jay
_______________________________________________
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.