Re: Reloading PDF-document in Preview using AppleScript
Re: Reloading PDF-document in Preview using AppleScript
- Subject: Re: Reloading PDF-document in Preview using AppleScript
- From: Emmanuel <email@hidden>
- Date: Thu, 3 Nov 2005 17:56:41 +0100
At 12:39 PM +0000 11/3/05, Stian Soiland wrote:
Hi, I'm using latex with a Makefile that does all the nasty work of
building my PDFs. I have added a makefile target "view" that depends
on the produced PDF and opens the PDF for viewing in Preview:
Not exactly the reply you are expecting, but if you were using Smile
instead of Preview you could easily do whatever PDF window management
by AppleScript, such as closing, re-opening etc. Actually what you
would define a specific handler in Smile, such as:
on reopen(thePDFFile)
-- warning! pseudo-code!
if thePDFFile is already open close then reload otherwise just open the file
end
and then you would just call the handler with osascript - that's how
debugging would be easy.
Smile is a free integrated AppleScript working environment that we
Satimage-software provide.
Emmanuel
_______________________________________________
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