Re: Can anyone here do paid Grip work? (profiles)
Dave M <DaveM-TKu7O/[email protected]> Thu, 31 May 2007 10:18:04 +0000
| Newsgroups | gmane.comp.multimedia.grip.user |
|---|---|
| Message-ID | <[email protected]> |
At 09:33 PM 5/30/2007 , Cory K. wrote: >I would like to have the ability to: > * Store and name more encoder profiles. > * "Encode file format" should also be tied to individual profiles. > ie: I want a different file format for .FLAC vs. .mp3 or .ogg. I did this with a script. I create a desktop menu entry for each profile and use the menu to run the script. The script recalls and saves the parameters for the profile named in the menu entry. To create a new profile, just create a new menu entry with a different profile name. -Begin script GRip.sh-------------------------------- #!/bin/bash # # Copyright 2007, Dave Markus (Davem at Mich Dot Com) # If you fix bugs, or make improvements, I would # appreciate seeing a copy. I am sure there is much room for improvement :) # Be sure to put "Grip.sh" in your subject line so I get your message. # # This script is free software, and you are welcome to redistribute it and/or modify # it under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 3 (draft-2) of the License, # or (at your option) any later version. http://gplv3.fsf.org/ # # Release: # 2007.02.06 alpha - Dave Markus, first release # Tested with: # - Ubuntu 6.06 (dapper) # - Grip version V3.3.1 (c Mike Oliphant) # # Using the Alacart menu editor, add a # menu entry for each configuration profile. # For example: # # ./Scripts/Grip.sh Books_32_mp3 # ./Scripts/Grip.sh Music_V0_mp3 # ./Scripts/Grip.sh Music_V2_mp3 # ./Scripts/Grip.sh Music_V3_mp3 # ./Scripts/Grip.sh Music_V6_mp3 # # Each time you run GRip (by running the script from the menu) # GRips settings will be preserved. # if ! [ -d ~/Apps/ ]; then echo "Grip.sh - Making new directory: ~/Apps/" mkdir ~/Apps fi if ! [ -d ~/Apps/Grip/ ]; then echo "Grip.sh - Making new directory: ~/Apps/Grip/" mkdir ~/Apps/Grip exit fi echo "Grip.sh - "$(date +%x" "%X" - ")"Grip Start." > ~/Apps/Grip/Grip.log 2>&1 if ! [ -d ~/Apps/Grip/$1/ ]; then echo "Grip.sh - Making new directory: ~/Apps/Grip/"$1 >> ~/Apps/Grip/Grip.log 2>&1 mkdir ~/Apps/Grip/$1 >> ~/Apps/Grip/Grip.log 2>&1 fi if [ -e ~/Apps/Grip/$1/.grip ]; then echo "Grip.sh - "$(date +%x" "%X" - ")"Getting Config Files." >> ~/Apps/Grip/Grip.log 2>&1 cp -v ~/Apps/Grip/$1/.grip* ~/ >> ~/Apps/Grip/Grip.log 2>&1 else echo "Grip.sh - No config files in ~/Apps/Grip/"$1"/ Useing existing config!" >> ~/Apps/Grip/Grip.log 2>&1 fi echo "Grip.sh - "$(date +%x" "%X" - ")"Starting Grip." >> ~/Apps/Grip/Grip.log 2>&1 grip echo "Grip.sh - "$(date +%x" "%X" - ")"Saveing Config Files." >> ~/Apps/Grip/Grip.log 2>&1 cp -v ~/.grip* ~/Apps/Grip/$1/ >> ~/Apps/Grip/Grip.log 2>&1 echo "Grip.sh - "$(date +%x" "%X" - ")"Grip Done." >> ~/Apps/Grip/Grip.log 2>&1 echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -=-=" >> ~/Apps/Grip/Grip.log 2>&1 -End script-------------------------------- ------------------------------- Dave M Davem (at) Mich (dot) Com Ann Arbor, Mich. USA Protect your digital rights: http://www.eff.org "The 'Analog Holes' they want to stop up are our eyes, ears and mouths." ------------------------------------------------------------------------- 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/ _______________________________________________ Grip-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/grip-users
Grip.sh
(application/octet-stream, 2.3 KB)
#!/bin/bash # # Copyright 2007, Dave Markus (Davem at Mich Dot Com) # If you fix bugs, or make improvements, I would # appreciate seeing a copy. I am sure there is much room for improvement :) # Be sure to put "Grip.sh" in your subject line so I get your message. # # This script is free software, and you are welcome to redistribute it and/or modify # it under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 3 (draft-2) of the License, # or (at your option) any later version. http://gplv3.fsf.org/ # # Release: # 2007.02.06 alpha - Dave Markus, first release # Tested with: # - Ubuntu 6.06 (dapper) # - Grip version V3.3.1 (c Mike Oliphant) # # Using the Alacart menu editor, add a # menu entry for each configuration profile. # For example: # # ./Scripts/Grip.sh Books_32_mp3 # ./Scripts/Grip.sh Music_V0-320_mp3 # ./Scripts/Grip.sh Music_V2-256_mp3 # ./Scripts/Grip.sh Music_V3-190_mp3 # ./Scripts/Grip.sh Music_V6-128_mp3 # # Each time you run GRip (by running the script from the menu) # GRips settings will be preserved. # if ! [ -d ~/Apps/ ]; then echo "Grip.sh - Making new directory: ~/Apps/" mkdir ~/Apps fi if ! [ -d ~/Apps/Grip/ ]; then echo "Grip.sh - Making new directory: ~/Apps/Grip/" mkdir ~/Apps/Grip exit fi echo "Grip.sh - "$(date +%x" "%X" - ")"Grip Start." > ~/Apps/Grip/Grip.log 2>&1 if ! [ -d ~/Apps/Grip/$1/ ]; then echo "Grip.sh - Making new directory: ~/Apps/Grip/"$1 >> ~/Apps/Grip/Grip.log 2>&1 mkdir ~/Apps/Grip/$1 >> ~/Apps/Grip/Grip.log 2>&1 fi if [ -e ~/Apps/Grip/$1/.grip ]; then echo "Grip.sh - "$(date +%x" "%X" - ")"Getting Config Files." >> ~/Apps/Grip/Grip.log 2>&1 cp -v ~/Apps/Grip/$1/.grip* ~/ >> ~/Apps/Grip/Grip.log 2>&1 else echo "Grip.sh - No config files in ~/Apps/Grip/"$1"/ Useing existing config!" >> ~/Apps/Grip/Grip.log 2>&1 fi echo "Grip.sh - "$(date +%x" "%X" - ")"Starting Grip." >> ~/Apps/Grip/Grip.log 2>&1 grip echo "Grip.sh - "$(date +%x" "%X" - ")"Saveing Config Files." >> ~/Apps/Grip/Grip.log 2>&1 cp -v ~/.grip* ~/Apps/Grip/$1/ >> ~/Apps/Grip/Grip.log 2>&1 echo "Grip.sh - "$(date +%x" "%X" - ")"Grip Done." >> ~/Apps/Grip/Grip.log 2>&1 echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" >> ~/Apps/Grip/Grip.log 2>&1