You didn't tell me that you were using this script, you only talked about Skim's reloading.
If that's the script you're using that could explain it, because Apple's documents automatically resolve symlinks (as you can see by cmd-clicking the proxy icon), and you probably pass the unresolved path to the script. I think you can fix that by resolving the AppleScript variable "theFile" as well by adding a line like: set theFile to POSIX path of (POSIX file theFile as alias) Christiaan On 14 Aug 2008, at 1:51 PM, Konrad Hofbauer wrote: > Christian, > > I can reproduce the symlink-issue outside LyX. > > I don't know AppleScript well enough, but could it be that the > reload script of the Wiki with > -e "set theDocs to get documents whose path is theFile" \ > -e "if (count of theDocs) > 0 then revert theDocs" \ > uses the wrong path (sym-linked vs. real path) to select the file? > > If I run twice the (now really) attached script in /private/tmp > (with the pdf file in there, too) it reloads. If I run it in /tmp > (which is a symlink) it does not work/reload. > > Christiaan Hofman wrote: >> About loading twice, I guess that LyX is actually running tex twice. > > You are (probably) right. I can reproduce the "Unable to load file" > error described before on Terminal without LyX with a simple > "pdflatex ths_master; pdflatex ths_master" > >> There is no way for Skim to know about this and it will almost >> certainly lead to problems for reloading. Skim does everything >> possible that it can to make sure that the file is completed before >> it reloads, there's absolutely nothing more that it can do. If tex >> is run twice, the only way to do that properly is for the process >> that runs tex to reload the file in Skim. > > Makes sense. I guess Skim tries to reload the file after the first > latex run while the file is rewritten by the second latex run. > > At the point when Skim comes up with the "Unable to load file." > error (or before or after), could Skim not try to re-read the file > again? > But enough. I am sure you have spent some thought on this already > and know what you do. > > Anyhow: It was a tiny little feature (Book Mode) that initially > brought me to Skim (something that both TeXShop and Preview can't > do), but now I really like everything else I see. :-) > > /Konrad > < > SkimReload > .sh > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________ > Skim-app-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/skim-app-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Skim-app-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/skim-app-users
