Dark006
March 8th, 2009, 10:18 PM
I've got a slight problem with a small script I wrote. What I'm trying to do is have a nautilus script that will save any video saved into memory and using zenity to change the name to what I want. Here is the script thus far
#!/bin/bash
name=$(zenity --entry --title="Rename your Video" --text="Please change to desired name ")
cp /tmp/Fla* ~/Desktop/Flash
mv ~/Desktop/Flash ~/Desktop/$name
It seems to work fine for one word names of the video(like "dog", "cat", etc..). But if I try to name it anything more than one word it just defaults to name it "Flash".
Does anyone have any ideas on what I could do to fix this?
#!/bin/bash
name=$(zenity --entry --title="Rename your Video" --text="Please change to desired name ")
cp /tmp/Fla* ~/Desktop/Flash
mv ~/Desktop/Flash ~/Desktop/$name
It seems to work fine for one word names of the video(like "dog", "cat", etc..). But if I try to name it anything more than one word it just defaults to name it "Flash".
Does anyone have any ideas on what I could do to fix this?