Shell Scripts FMP 12 OSX
This works


create bash script to do conversion
perl -p -e 's/\r/\n/g' < newfilm.sh > newfilm2.sh
iconv -f utf-16le -t utf-8 < /Library/WebServer/Documents/newfilm2.sh > /Library/WebServer/Documents/newfilm3.sh
perl -p -e 's/\r/\n/g' < newfilm.sh > newfilm2.sh
Export filed contents to newfilm.sh
Convert to film.sh
iconv -f utf-16 -t utf-8 UTF-8-FILE
iconv -f iso-8859-1 -t utf-8 < /Library/WebServer/Documents/newfilm.sh > /Library/WebServer/Documents/newfilm.sh
iconv -f iso-8859-1 -t utf-8 < file > file.new
iconv -t UTF-8//TRANSLIT -c newfilm.sh > film.sh
to export utf-8
https://fmforums.com/topic/50201-text-export-in-utf-8-instead-of-utf-16/
iconv -f iso-8859-1 -t utf-8 < file > file.new
?
iconv -f utf-16 -t utf-8 < file > file.new
this supposedly works
tell terminal?
iconv -t UTF-8//TRANSLIT -c infile > outfile.txt
-- tell application "FileMaker Pro Advanced"
copy cell "filename" of current record to fileName
copy cell "Text_" of current record to exportMe
do shell script "echo -n " & quoted form of exportMe & " > ~/desktop/" & quoted form of fileName
-- -n prevents a final line feed from being added
-- end tell
film.sh
have filemaker make this file over with change in var1

Unknown functionality

