Re: OS X question about Apple's Preview

2006-12-08 Thread Jacob Rus
Arjan Bos wrote: tell application "Preview" repeat with i from 1 to number of windows set current_window to item i of windows set current_name to name of the document of the current_window if current_name is "AdemVanEeuwigheid.pdf" then close window i

Re: OS X question about Apple's Preview

2006-12-07 Thread Arjan Bos
On 7 dec 2006, at 22:11, Trevor Bača wrote: On 12/7/06, Trevor Bača <[EMAIL PROTECTED]> wrote: Christian was kind enough to provide a pointer an article that leads here. 1. go to http://vocaro.com/trevor/software/applescript/ (the maintainer of the page is some other Trevor, not me) 2. sc

Re: OS X question about Apple's Preview

2006-12-07 Thread Arjan Bos
On 7 dec 2006, at 21:33, Trevor Bača wrote: Hi, Not a direct Lily question, but useful nonetheless: Any OS X folks know how to tell Apple's Preview application -- from the commandline -- to close foo.pdf (but leave other pdfs open, ie, without actually killing the Preview process)? The most

Re: OS X question about Apple's Preview

2006-12-07 Thread Trevor Bača
On 12/7/06, Trevor Bača <[EMAIL PROTECTED]> wrote: Hi, Not a direct Lily question, but useful nonetheless: Any OS X folks know how to tell Apple's Preview application -- from the commandline -- to close foo.pdf (but leave other pdfs open, ie, without actually killing the Preview process)? Chr