• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: script QXP
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: script QXP
      • From: Samuel Hargis <email@hidden>
  • Prev by Date: RE: script QXP
  • Next by Date: stuffit w/ replacing
  • Previous by thread: RE: script QXP
  • Next by thread: Re: script QXP
  • Index(es):
    • Date
    • Thread