• 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: Applescript-users Digest, Vol 2, Issue 298
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript-users Digest, Vol 2, Issue 298


  • Subject: Re: Applescript-users Digest, Vol 2, Issue 298
  • From: Stefan Eriksson <email@hidden>
  • Date: Sat, 7 May 2005 20:42:03 +0200

=)

I basically wonder about everything... why don´t you write a book and i´ll buy it one day one...!?

thanks for your help once again !

/ Ster


On May 7, 2005, at 2:01 AM, email@hidden wrote:


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


  • Prev by Date: Re: System Events showing "not scriptable" (Tiger)
  • Next by Date: Re: Nice Automator article on O'Reilly
  • Previous by thread: Re: System Events showing "not scriptable" (Tiger)
  • Next by thread: rotate jpeg lossless, wierd
  • Index(es):
    • Date
    • Thread