Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Force Preview to reload a document' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Force Preview to reload a document
Authored by: Doc Drang on Jan 05, '06 08:18:06AM
Thanks, it's quite fast for an AppleScript. I've put my copy in my Library/Scripts folder and written this shell script
#!/bin/bash
osascript '/Users/me/Library/Scripts/Reload Preview Document.scpt' $1
which I call "repreview" and have put in my $PATH. Now I can call
repreview document.pdf
One other thing: since I already have the "Enable access for assistive devices" option checked, I commented out the "my UIscript_check()" line in the "on run" portion of the script.

---
Doc Drang
http://www.leancrew.com/all-this

[ Reply to This | # ]

Force Preview to reload a document
Authored by: hamarkus on Jan 05, '06 10:08:02AM

Can you now call this script from Matlab:
system('repreview document.pdf')

I had some trouble with that (see my comment further up).



[ Reply to This | # ]
Force Preview to reload a document
Authored by: hamarkus on Jan 05, '06 10:21:34AM

I removed the UI-scripting check (and modified the shell scripting part withing the OSA "open -a Preview" instead of "open"), it still opens Acrobat, Acrobat does not crash anymore but the scripteditor is still opened (and stays open).



[ Reply to This | # ]