Revision: 3015
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3015&view=rev
Author:   hofman
Date:     2007-10-03 10:46:58 -0700 (Wed, 03 Oct 2007)

Log Message:
-----------
Previous commit does not work as svn looses the resource fork. Pass the 
AppleScript as command strings to osascript.

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

Modified: trunk/displayline
===================================================================
--- trunk/displayline   2007-10-03 17:14:01 UTC (rev 3014)
+++ trunk/displayline   2007-10-03 17:46:58 UTC (rev 3015)
@@ -19,6 +19,15 @@
 [ "${file:0:1}" == "/" ] || file="${PWD}/${file}"
 [ "${source:0:1}" == "/" ] || source="${PWD}/${source}"
 
-# pass NULL-separated arguments as stdin to osascript
-# the resource fork of this file is the compiled AppleScript
-echo -ne "${line}\x00${file}\x00${source}" | /usr/bin/osascript -- "$0"
+# pass 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 argv 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 argv" \
+-e "tell application \"Skim\"" \
+-e "activate" \
+-e "open (my POSIX file theFile)" \
+-e "tell front document to go to TeX line (theLine as integer) from (my POSIX 
file theSource)" \
+-e "end tell" --


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to