Revision: 7132
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7132&view=rev
Author:   hofman
Date:     2011-02-27 11:24:11 +0000 (Sun, 27 Feb 2011)

Log Message:
-----------
make sure the line argument in displayline script is passed as an integer

Modified Paths:
--------------
    trunk/displayline

Modified: trunk/displayline
===================================================================
--- trunk/displayline   2011-02-27 11:18:37 UTC (rev 7131)
+++ trunk/displayline   2011-02-27 11:24:11 UTC (rev 7132)
@@ -37,15 +37,15 @@
 
 # pass file arguments as NULL-separated string to osascript
 # pass through cat to get them as raw bytes to preserve non-ASCII characters
-echo -ne "${file}\x00${source}" | \
+echo -ne "${line}\x00${file}\x00${source}" | \
 /usr/bin/osascript \
   -e "set theArgv to do shell script \"/bin/cat\"" \
   -e "set AppleScript's text item delimiters to ASCII character 0" \
-  -e "set {theFile, theSource} to text items of theArgv" \
+  -e "set {theLine, theFile, theSource} to text items of theArgv" \
+  -e "set theLine to theLine as integer" \
   -e "set theFile to POSIX file theFile" \
   -e "set theSource to POSIX file theSource" \
   -e "set thePath to POSIX path of (theFile as alias)" \
-  -e "set theLine to $line as integer" \
   -e "tell application \"Skim\"" \
   -e "  if $activate then activate" \
   -e "  if $revert then" \


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to