It should not matter where the file is located. But your problem is probably
that LyX replaces the file rather than overwrites it (as tex normally does).
Skim won't be able to track fil changes when that happens, because Skim
tracks the actual file object rather than a path. This is also mentioned on
the Wiki.
Christiaan
On Thu, Aug 14, 2008 at 11:14 AM, Konrad Hofbauer
<[EMAIL PROTECTED]>wrote:
> Hello,
>
> could it be that Skim does not detect that a file has changed (i.e.
> "Revert" stays disabled) when the file is located in /tmp (which is
> sym-linked to /private/tmp)?
>
> The problem:
>
> I try to use the attached script (from the Wiki, a bit modified) to
> reload a PDF file (from LyX).
>
> This is what it looks like when it is executed (with set -x):
> + pdffile=/tmp/lyx_tmpdir9513sKm4au/lyx_tmpbuf0/ths_master.pdf
> + '[' / == / ']'
> + echo SkimReload:
> SkimReload:
> + echo /tmp/lyx_tmpdir9513sKm4au/lyx_tmpbuf0/ths_master.pdf
> /tmp/lyx_tmpdir9513sKm4au/lyx_tmpbuf0/ths_master.pdf
> + /usr/bin/osascript -e 'set theFile to
> "/tmp/lyx_tmpdir9513sKm4au/lyx_tmpbuf0/ths_master.pdf"' -e 'tell
> application "Skim"' -e activate -e 'set theDocs to get documents whose
> path is theFile' -e 'if (count of theDocs) > 0 then revert theDocs' -e
> 'open (my POSIX file theFile)' -e 'end tell' -
>
>
> The first time it is called, the PDF is opened. After the PDF was
> modified and the Script called again, it does NOT reload. Additionally,
> also in Skim the "Revert"-command stays inactive - even though the file
> is definitely modified (checked opening with Preview).
>
> HOWEVER:
> If I do EXACTLY the same thing in ~/tmp instead of /tmp all works just
> fine.
>
> Is this a bug somewhere? Maybe because /tmp is a symlink?
> $ ls /tmp
> lrwxr-xr-x 1 root admin 11 Jul 3 2007 /tmp -> private/tmp
> $ ls /private/tmp
> drwxrwxrwt 23 root wheel 782 Aug 14 11:08 .
> $ ls ~/tmp
> drwxr-xr-x 2 khofbaue khofbaue 68 Aug 14 11:03 .
>
> Best regards,
> /Konrad
>
> -------------------------------------------------------------------------
> 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