• 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: Trying to mount a list of images in quark...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to mount a list of images in quark...


  • Subject: Re: Trying to mount a list of images in quark...
  • From: Hans Haesler <email@hidden>
  • Date: Sat, 7 May 2005 00:34:49 +0200

On Fri, 6 May 2005, Stefan Eriksson wrote:

>Trying to figuring out how to mount a series of images (as a list)
>into Quark 6.1, got a bit on the way but can figure out why this
>script fails...

Stefan,

your script doesn't work because the second picture box is created
at the beginning of the _document_ and then it is adressed as being
on the last page.

You dont need to count the pages. Just show the last page (= 'page -1')
and then address it as 'current page'.

The size of the document mustn't be defined using 'bounds'. Although
this works, haven't you asked yourself why there isn't a 'close'
button of the window anymore? ;-) You must change the properties of
the default document and use 'page width', 'page height'.

No need for passing the value of the counter 'i'. Just move the
beginning of the repeat loop after the making of the document.
Then show the last page, make the picture box and so on. No need,
too, for a handler.
---
set completepath to {"PB G4 Ster:Users:stefan:Pictures:050502:IMG_6965.JPG", ¬
 "PB G4 Ster:Users:stefan:Pictures:050502:IMG_6966.JPG"}

tell application "QuarkXPress 6.1"
 activate
 tell default document 1
  set properties to {page width:210, page height:297}
 end tell
 make document at beginning
 repeat with i from 1 to (count of completepath)
  tell document 1
   show page -1
   tell current page
    make picture box at beginning with properties {bounds:{12.7, 12.7, 136, 195}}
    tell picture box 1
     set image 1 to (item i of completepath) as alias
     set bounds of image 1 to proportional fit
    end tell
   end tell
   make page at end
  end tell
 end repeat
end tell
---
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:

This email sent to email@hidden

References: 
 >Trying to mount a list of images in quark... (From: Stefan Eriksson <email@hidden>)

  • Prev by Date: Any way to get iChat to execute a script?
  • Next by Date: Signatures, Mail.app and Tiger
  • Previous by thread: Trying to mount a list of images in quark...
  • Next by thread: Non-character keystrokes
  • Index(es):
    • Date
    • Thread