Revision: 3014
http://skim-app.svn.sourceforge.net/skim-app/?rev=3014&view=rev
Author: hofman
Date: 2007-10-03 10:14:01 -0700 (Wed, 03 Oct 2007)
Log Message:
-----------
Use a hack to allow passing file paths with non-ASCII characters to the
displayline script. Put the compiled AppleScript in the resource fork, and pass
the arguments from the shell script through osascript, which is read through
cat to get the raw bytes.
Modified Paths:
--------------
trunk/displayline
Modified: trunk/displayline
===================================================================
--- trunk/displayline 2007-10-03 11:25:58 UTC (rev 3013)
+++ trunk/displayline 2007-10-03 17:14:01 UTC (rev 3014)
@@ -19,10 +19,6 @@
[ "${file:0:1}" == "/" ] || file="${PWD}/${file}"
[ "${source:0:1}" == "/" ] || source="${PWD}/${source}"
-# call the AppleScript
-exec /usr/bin/osascript \
- -e "tell application \"Skim\"" \
- -e "activate" \
- -e "open POSIX file \"${file}\"" \
- -e "tell front document to go to TeX line ${line} from POSIX file
\"${source}\"" \
- -e "end tell"
+# 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"
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