• 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: Scripting Preview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Preview


  • Subject: Re: Scripting Preview
  • From: Robert Poland <email@hidden>
  • Date: Sun, 14 Oct 2012 15:03:10 -0600


On Oct 14, 2012, at 1:55 PM, "koenig.yvan" <email@hidden> wrote:


Le 14/10/2012 à 20:56, Robert Poland <email@hidden> a écrit :

Hi,

I would like to, somehow, get the window in Preview to open in other than the stupid default little one.

Sent from my iPad
Bob Poland

Hello Robert

There is no AppleScript support for Preview.

Try to use an alternate application like the free Skim.app whose dictionary is huge :

Thanks Yvan,

Skim looks like a great alternate. Window bounds is scriptable and if you can find it the "preference" to set current location to default does as it says. Too bad Preview couldn't do that.

But since I'm doing a presentation on Preview it doesn't help.

A little more creative Googling and I found;
tell application "Preview"
activate
tell application "Preview" to activate
tell application "System Events" to tell process "Preview"
tell window 1
set position to {0, 22}
set size to {1500, 1440}
end tell
end tell
end tell

Robert Poland
2.7 GHz Intel Core I5, 27” iMac
  12 GB Ram, 1TB HD
  OS X 10.8.2 (12C54)
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Scripting Preview (From: Robert Poland <email@hidden>)
 >Re: Scripting Preview (From: "koenig.yvan" <email@hidden>)

  • Prev by Date: Re: Scripting Preview
  • Next by Date: Re: Scripting Preview
  • Previous by thread: Re: Scripting Preview
  • Next by thread: Re: Scripting Preview
  • Index(es):
    • Date
    • Thread