Hi! Has
Thanks a lot for your help. You may email me the
binary version if possible.
It makes sense to use new code for mytextFrame. I will
try that too.
regards
Zhi
--- has <[EMAIL PROTECTED]> wrote:
> Zhi Peng wrote:
>
> >I use Tiger Mac 10.4. Could I ask you, is it
> possible
> >fo
Zhi Peng wrote:
>I use Tiger Mac 10.4. Could I ask you, is it possible
>for me to get new version or binary version?
I can email you the binary files direct if you want. Save you having to built
it yourself, which is a bit of a chore.
>As I run
>the MacPython script, it now can make new docum
Has, thanks a lot for your help.
I use Tiger Mac 10.4. Could I ask you, is it possible
for me to get new version or binary version? As I run
the MacPython script, it now can make new document and
make new textframe which place a small rectangle on
the left coner of the document created. It might
Zhi Peng wrote:
>Traceback (most recent call last):
>
>appscript.specifier.CommandError: Too many direct
>arguments.
>Failed command: app(u'/Applications/Adobe
>InDesign CS2/Adobe InDesign
>CS2.app').documents[u'Untitled-1'].spreads.ID(146).pages.ID(151).text_frames.ID(179).geometric_boun
Hi! "Has"
I run the MacPython script, the only error is in the
set geometric_bounds as following where I used
appscript 1.1. It seems better than previous version.
Thanks
zhi-pengs-power-mac-g5:~/Documents/projects zpeng$
pythonw has.py >error.txt
Traceback (most recent call last):
File "has
Zhi Peng wrote:
>But Corresponding MacPython code does not work well
>where I used appscript 1.1 (3.7 MB). Should I use
>other version of Appscript?
Probably would be a good idea. If you're on Panther you'll need to build it
from scratch, I'm afraid, though I can supply binaries for Jaguar and T
Hi! 'Has"
First of all, thank you very much for your help.
tell application "Adobe InDesign CS2"
set contents of text frame 1 of page 1 of document
1 to "Hello"
end tell
works well. (textframe -> text frame in adobe)
But Corresponding MacPython code does not work well
where I used appscr
Zhi Peng wrote:
>But with app('Adobe InDesign CS2'), it
>does not work well. All application can accept the
>commands but not the reference such as
>
>cs = app("Adobe InDesign CS2")
>cs.activate() - works
>cs.open("filepath_with_name") --- works
>doc = cs.documents[0]
Yes. When I run TextEdit, it works with following code
from appscript import *
textedit=app('TextEdit')
textedit.activate()
textedit.documents.end.make(new=k.document)
textedit.documents[1].text.set("TEXT STRING")
print textedit.documents[1].text.get()
It works well. But with app('Adobe InDesi
Zhi Peng wrote:
>page = app("Adobe InDesign
>CS2").open("filename").pages[0]
>
>This 'page' is not a reference,
It is, although it's an invalid one as elements must be 1-indexed, not
0-indexed.
has
--
http://freespace.virgin.net/hamish.sanderson/
___
10 matches
Mail list logo