Re: script QXP
Re: script QXP
- Subject: Re: script QXP
- From: Hans Haesler <email@hidden>
- Date: Wed, 27 Dec 2000 17:53:14 +0100
On Wed, 27 Nov 2000, Samuel P. Hargis wrote:
>
Neither of these examples of syntax works for me. I've
>
always had probs with getting pictures to import without an
>
extension to aid in that process.
Samuel,
I just moved all non-standard OSAXen to a folder on the desktop,
restarted my machine and run my solution again. It works fine.
I'm still with Mac OS 8.6, so I borrowed the machine of one of
my colleagues to run the script, using Mac OS 9.04. No problem.
The script expects an open XPress document with 16 pages, with
2 picture boxes on each page. In a folder on a server volume or
on the harddisk there must be 32 image files named from "Seite_01"
to "Seite_32".
The proposed path ("Bildserver:EPS_Ordner:") must be adapted to
your configuration.
Note that I didn't provide any error handling in order to keep
the message short and readable. I assume that Helmut will insert
the necessary tests.
>
I thought this was a read only property.
'file path' is a read only property. But you can change it by
loading an image. You must supply a valid file path, 'as alias'
or 'as text'. It doesn't matter, both work.
>
If this really does work without an extension, can you
>
supply an example tell block that is simple
Please, select a picture box and run this:
---
set imgPath to (choose file with prompt "Select the image file to load" of type {"EPSF", "TIFF", "PICT", "JPEG"})
tell document 1 of application "QuarkXPress 4.11"
tell current box
set image 1 to imgPath
end tell
end tell
---
Another example (please adapt the path, by changing it to
an image file which exists on your harddisk):
---
tell document 1 of application "QuarkXPress 4.11"
tell current box
set image 1 to "Macintosh HD:Folder:Image_file"
end tell
end tell
---
Regards,
Hans
---
Hans Haesler | email@hidden