MLVFS_workflow(download in first post)
Lately I,ve been trying to figure out how to make good use of the
command line options in MLVFS(dmilligan) and to find a fast way to develop my MLV files into folders with dng files. Needles to say MLVFS works with dfort pixel focus lists as well as with 10/12-bit files and is by far the fastest way to get into dng editing.
In the other script program
MLP I simply leech on the the automator created partition folders but in cr2hdr.app I have been porting most of the command line options into a bash menu selector. I choose to default into resolve folder setting.
Also different is that cr2hdr.app creates symlinks of the dng folders which is then put into your root folder. This makes it work seemlessly with the other functionalities in the program. This idea I had for a long time and after some discussion with so-rose, author of
convmlv I decided to give it a go. It seems to work well.
What cr2hdr.app does it creates two folders, name/of/your/root/folder_mount and name/of/your/root/folder _storage inside A_ORIGINALS folder and then goes from there creating the mlvfs mount and copies/creates the symlink folders. You can check the menu and the movie for further understanding.
Treat this workflow as bleeding edge and test it a lot with back up files before doing any important stuff with it.If you get any ideas feel free to share them here.
MLVFS workflow menu
The MLVFS_workflow menu is based around this script.
#root folder name
root=$(grep -o '[^/]*$' /tmp/DUALISO/"path_1")
kill $(cat /tmp/"$root"_pid) 1> /dev/null 2>&1 &
rm "$(cat /tmp/DUALISO/path_1)"/A_ORIGINALS/"$root"_storage/*.IDX &>/dev/null
find "$(cat /tmp/DUALISO/path_1)"/ -maxdepth 1 -type l -delete
mkdir -p "$(cat /tmp/DUALISO/path_1)"/A_ORIGINALS 1> /dev/null 2>&1 &
mkdir -p "$(cat /tmp/DUALISO/path_1)"/A_ORIGINALS/"$root"_storage 1> /dev/null 2>&1 &
mkdir -p "$(cat /tmp/DUALISO/path_1)"/A_ORIGINALS/"$root"_mount 1> /dev/null 2>&1 &
if ! ls "$(cat /tmp/DUALISO/path_1)"/*.MLV &>/dev/null
then
if ! ls "$(cat /tmp/DUALISO/path_1)"/A_ORIGINALS/"$root"_storage/*.MLV &>/dev/null
then
echo > /tmp/no_files
fi
fi
if ! ls /tmp/no_files
then
mv -i "$(cat /tmp/DUALISO/path_1)"/*.M* "$(cat /tmp/DUALISO/path_1)"/A_ORIGINALS/"$root"_storage &>/dev/null
cd ~/Library/Services/MLVFS.workflow/Contents/
./mlvfs "$(cat /tmp/DUALISO/path_1)"/A_ORIGINALS/"$root"_mount --mlv-dir="$(cat /tmp/DUALISO/path_1)"/A_ORIGINALS/"$root"_storage -f -o local -o volname=""$root"_mount" -o allow_other --resolve-naming $(cat "/tmp/"$root"_settings.txt" | sed -e 's/^[ \t]*//') &
echo $(ps aux | pgrep mlvfs) > /tmp/"$root"_pid
cd "$(cat /tmp/DUALISO/path_1)"/A_ORIGINALS/"$root"_storage/
check=$(ls -r *.MLV | head -1 | cut -d "." -f1) &>/dev/null
cd "$(cat /tmp/DUALISO/path_1)"/
while ! ls -d "$(cat /tmp/DUALISO/path_1)"/A_ORIGINALS/"$root"_mount/"$check"MLV_* &>/dev/null
do sleep 1
done
ln -s "$(cat /tmp/DUALISO/path_1)"/A_ORIGINALS/"$root"_mount/* "$(cat /tmp/DUALISO/path_1)"/ 1> /dev/null 2>&1 &
open "$(cat /tmp/DUALISO/path_1)"/
else
rm /tmp/no_files 1> /dev/null 2>&1 &
fi