Revision: 5544
http://skim-app.svn.sourceforge.net/skim-app/?rev=5544&view=rev
Author: hofman
Date: 2009-08-12 12:25:31 +0000 (Wed, 12 Aug 2009)
Log Message:
-----------
revert inside a try block, because it may fail
Modified Paths:
--------------
trunk/displayline
Modified: trunk/displayline
===================================================================
--- trunk/displayline 2009-08-12 11:39:42 UTC (rev 5543)
+++ trunk/displayline 2009-08-12 12:25:31 UTC (rev 5544)
@@ -40,11 +40,14 @@
-e "set theSource to POSIX file theSource" \
-e "set shouldRevert to (shouldRevert as integer) as boolean" \
-e "set shouldShowBar to (shouldShowBar as integer) as boolean" \
+ -e "set thePath to POSIX path of (theFile as alias)" \
-e "tell application \"Skim\"" \
-e " activate" \
-e " if shouldRevert then" \
- -e " set theDocs to get documents whose path is (get POSIX path of
(theFile as alias))" \
- -e " if (count of theDocs) > 0 then revert theDocs" \
+ -e " try" \
+ -e " set theDocs to get documents whose path is thePath" \
+ -e " if (count of theDocs) > 0 then revert theDocs" \
+ -e " end try" \
-e " end if" \
-e " open theFile" \
-e " tell front document to go to TeX line theLine from theSource showing
reading bar shouldShowBar" \
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit