I've seen this problem mentioned before, on a TextMate list. "Switch"  
is clearly commented out, due to the # before it, so it should be  
ignored. If it is not (and it seems that it is not in your case),  
then there is a problem with the way the script is executed. So this  
is a TextMate problem, nothing to do with Skim.

You should file a bug report with TextMate about this. In the  
meantime you can just delete the "# Switch to the right directory" line.

Christiaan

On 15 Jun 2007, at 11:13 PM, Bastian Philipps wrote:

> Ciao Folks,
>
> at first I would like to say how much I love Skim, it quickly  
> replaced PDFView
> or Preview as my default viewer.
>
> Lately though PDFSync seems not to work anymore using Skim and  
> TextMate. I
> followed the instructions in the wiki and created a command in the  
> LaTeX-Bundle
> containing:
>
>   FILE="${TM_LATEX_MASTER:-$TM_FILEPATH}"
>   SCRIPT="$(find_app Skim.app)/Contents/SharedSupport/displayline"
>
>   # Switch to the right directory
>   cd "${TM_PROJECT_DIRECTORY:-$TM_DIRECTORY}"
>   cd "$(dirname "$TM_LATEX_MASTER")"
>   if [[ -x "$SCRIPT" ]]; then
>       "$SCRIPT" &>/dev/console $TM_LINE_NUMBER "${FILE%.tex}.pdf" "$ 
> {TM_FILEPATH}"
>   else
>       echo "Unable to locate Skim."
>   fi
>
> Sadly I only receive /bin/bash: line 1: Switch: command not found!
> Any ideas or recommendations?
>
> I also seem not to be the only one encountering this, as I have  
> been asked the
> same question in a german forum, where I recommended Skim.
>
> Greetz
>
>
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Skim-app-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/skim-app-users


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Skim-app-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-users

Reply via email to