~lidaobing/ubuntu-tweak/ubuntu-ubuntu-tweak

« back to all changes in this revision

Viewing changes to data/scripts/open-with-your-favourite-text-editor

  • Committer: LI Daobing
  • Date: 2010-07-31 10:10:26 UTC
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: lidaobing@gmail.com-20100731101026-9o3m59258q5perbo
Tags: upstream-0.5.5
ImportĀ upstreamĀ versionĀ 0.5.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
IFS='
 
3
'
 
4
i=1
 
5
for url in $NAUTILUS_SCRIPT_SELECTED_URIS
 
6
do
 
7
        if [ -n "`echo $url | grep 'file:///'`" ];then
 
8
                script-worker open `echo "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" | cut -f$i -d'
 
9
'` &
 
10
        else
 
11
                script-worker open "$url" &
 
12
        fi
 
13
        i=$(($i+1))
 
14
done