• 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
Script to open PDF file, resize and position on screen
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Script to open PDF file, resize and position on screen


  • Subject: Script to open PDF file, resize and position on screen
  • From: David Crowe <email@hidden>
  • Date: Fri, 9 Aug 2002 08:52:44 -0700

Some people may find this script useful. It requires "Jon's commands"
(http://www.seanet.com/~jonpugh/software) to be installed.

It calculates the size of the (first) screen, opens the finder
selection (all PDF files, hopefully), zooms the PDF file to 100% and
moves the window to the right hand side of the screen.

I find it annoying when PDF files open on my entire screen at a
higher resolution than necessary. You can tweak the zoom and position
to suit your own needs.

This could be configured to run as a droplet or (what I do) as a
QuicKeys macro.

- David Crowe


set {ScreenX, ScreenY} to screen size of item 1 of (screen list)

tell application "Finder"
try
set TheSelection to (the selection as alias list)
on error
set TheSelection to {the selection as alias}
end try
end tell

tell application "Acrobat 5.0"
activate
repeat with AnItem in TheSelection
open {AnItem as alias}
tell PDF Window 1
zoom to 100
set TheWindow to window of it
end tell
tell TheWindow
set bounds to {650, 75, ScreenX - 10, ScreenY - 50}
end tell
end repeat
end tell
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Time/Date stamping
  • Next by Date: Re: Eudora: Generate html email
  • Previous by thread: Re: Time/Date stamping
  • Next by thread: Open file in Quark 4.11
  • Index(es):
    • Date
    • Thread