• 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: Question on AppleScript w/ QuarkXPress 4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question on AppleScript w/ QuarkXPress 4


  • Subject: Re: Question on AppleScript w/ QuarkXPress 4
  • From: Autocat <email@hidden>
  • Date: Wed, 13 Apr 2005 12:37:30 +0200

Hello Hans,

Thanks ever so much for such a definitive answer!

Cheers;

Laurent


On 13 avr. 05, at 09:32, Hans Haesler wrote:

On Tue, 12 Apr 2005, Autocat wrote:

I am trying to get a script to work with XPress 4.11

The problem is that the line

     set thePictures to uniqueID of every picture box of page 1

returns incorrect lists, for example:

{-2.147483645E+9, -2.147483644E+9, -2.147483642E+9, -2.147483641E+9,
-2.14748364E+9, -2.147483638E+9, -2.147483636E+9, -2.147483632E+9,
-2.147483631E+9, -2.14748363E+9, -2.147483629E+9, -2.147483628E+9}

If I then try to do something like

set thePictPath to get file path of image 1 of picture box id theID

Then I get an error, unsurprisingly.

This is when I use existing documents (I don't know which version of
XPress was used to create them).

If I create a new document then everything is fine.

Any ideas , has anyone come across that one before ?

Laurent,

there has been a similar report more than five years ago (QXP 4.1).

And you can reproduce it right now when you create a new document.
Condition is that you _save_ the document _before_ making any boxes.

Then create some boxes and you've got the negative numbers.

To address boxes with such uniqueIDs you can try this:
---
set thePictPath to get file path of image 1 of picture box id (theID as string)
---
The number, e.g. -2.147483645E+9, is converted to "-2.147483645E+9"
and this can be used to address the box.


BTW 1, if you get only this uniqueID directly from the box and convert
it to a string, the result will be "-2147483645".

BTW 2, to get the version of XPress documents: Try my droplet which
you'll find here <http://www.fachhefte.ch> / Click the link "AppleScripts",
open the folders "mac_os_9_e" and "general" and select the file
"Which_XPressVersion_9.sit".


The French version is here: <http://www.bulletin-technique.ch> /
Link "AppleScripts", folders "mac_os_9_f" and "general" and the file
is called "Quelle_version_XPress_9.sit".


Regards, Hans

---
Hans Haesler <email@hidden>


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: Question on AppleScript w/ QuarkXPress 4 (From: Hans Haesler <email@hidden>)

  • Prev by Date: Re: Question on AppleScript w/ QuarkXPress 4
  • Next by Date: Image Events
  • Previous by thread: Re: Question on AppleScript w/ QuarkXPress 4
  • Next by thread: More AS Tiger stuff
  • Index(es):
    • Date
    • Thread