One quick guess would be that foo is not in your path. If this is the case, and everything else is working right, then foo should do its thing if you enter its full path, eg, /Users/myusername/ Desktop/foo, if it's on the desktop.
then you can write in again and find out how to change your path if you want to, or else google it to find out for yourself. -Adam On Aug 19, 2008, at 11:13 PM, Ivan Werning wrote: > Wow, the hack works wonderfully. This would be good to add on the > wiki. > > As for the script, I am not very fluent with these things. I wasn't > sure where and how to save it, to make it executable, etc. I did some > googling, then I wrote the script using nano, saved it as foo.command, > then did a chmod +x foo.command, but all this to no avail. from Skim I > get no response. From teh command line foo or foo.command reports > "command not found". > > -Ivan > > On Aug 19, 2008, at 3:27 PM, Christiaan Hofman wrote: > >> Skim just tells the editor to display the line in the file (using the >> lyxeditor tool in the case of LyX). How it does that is their >> responsibility. >> >> A workaround could be to use a custom script to call lyx, something >> like the following: >> >> >> #!/usr/bash >> >> /usr/bin/osascript -e "tell application \"LyX\" to activate" >> /Applications/LyX.app/Contents/MacOS/lyxeditor "$1" $2 >> >> >> You can also do this directly in the Skim preferences (it's a bit >> hackish, but it should work). Set the command to: >> >> /Applications/LyX.app/Contents/MacOS/lyxeditor >> >> and the arguments to: >> >> "%file" %line; /usr/bin/osascript -e 'tell application "LyX" to >> activate' >> >> Christiaan >> >> On 19 Aug 2008, at 9:03 PM, Ivan Werning wrote: >> >>> From Skim if I have it set up to use the pdfynsc with LyX it seems >>> to >>> work, that is it moves the cursor approximately to the right spot in >>> the file. >>> >>> (aside: although, as mentioned in a previous thread of mine here, >>> once >>> in a while I have to delete a .lyxpipe.in and/or .lyxpipe.out file >>> in >>> the LyX's Library directory, with LyX closed, to get it all working >>> again...) >>> >>> However, the problem is that it does not raise the LyX application. >>> So >>> I have to CMD+TAB to it each time, which is annoying. In contrast, >>> when I use Aquamacs and I set Skim to pdfsync with it then the >>> reverse >>> search in Skim leads me to Aquamacs. >>> >>> Is this behavior with LyX what is expected or not? Any fix or >>> workaround to get it to raise LyX? >>> >>> >>> -Ivan >> >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win >> great prizes >> Grand prize is a trip for two to an Open Source event anywhere in >> the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> _______________________________________________ >> Skim-app-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/skim-app-users > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Skim-app-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/skim-app-users ------------------ Adam M. Goldstein PhD, MSLIS -- [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.iona.edu/faculty/agoldstein -- (914) 637-2717 -- Dept of Philosophy Iona College 715 North Avenue New Rochelle NY 10801 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Skim-app-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/skim-app-users
