Revision: 7654
          http://skim-app.svn.sourceforge.net/skim-app/?rev=7654&view=rev
Author:   hofman
Date:     2012-02-20 11:28:58 +0000 (Mon, 20 Feb 2012)
Log Message:
-----------
Don't pass arguments to applescript through stdin in displayline script as that 
does not work anymore on Lion. Unfortunately that means less support for 
special characters in file names.

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

Modified: trunk/displayline
===================================================================
--- trunk/displayline   2012-02-19 13:33:34 UTC (rev 7653)
+++ trunk/displayline   2012-02-20 11:28:58 UTC (rev 7654)
@@ -38,14 +38,10 @@
 
 # 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 "${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 {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 theLine to $line as integer" \
+  -e "set theFile to POSIX file \"$file\"" \
+  -e "set theSource to POSIX file \"$source\"" \
   -e "set thePath to POSIX path of (theFile as alias)" \
   -e "tell application \"Skim\"" \
   -e "  if $activate then activate" \
@@ -57,4 +53,4 @@
   -e "  end if" \
   -e "  open theFile" \
   -e "  tell front document to go to TeX line theLine from theSource showing 
reading bar $bar" \
-  -e "end tell" -
+  -e "end tell"

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


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to