I have about 3500 fonts that I have sorted into about 13 different Font Sets (serif, san serif, etc)
I don’t currently have a text file that contains every font set and what font are in them, so i thought an apple script might be a good solution to the problem. The script seems to run fine, but It runs into the same error at the same plave every time.
“Extensis Suitcase X1 got an error: sh: line 1: Number: command not found”
I am not really sure what is causing it.
--set SetTestCat to "11_misc."
do shell script "touch ~/Desktop/FontList.txt"
tell application "Terminal"
activate
do script "tail -F ~/Desktop/FontList.txt"
end tell
on GetFontName(Catagory)
do shell script " echo \" LIST NAME = \" " & Catagory & " >> ~/Desktop/FontList.txt"
do shell script " echo \" \" >> ~/Desktop/FontList.txt"
tell application "Extensis Suitcase X1"
set theFontName to {}
set theFontName to the name of every Font in Font Set Catagory
repeat with i from 1 to the length of theFontName
do shell script " echo " & item i of theFontName & " >> ~/Desktop/FontList.txt"
end repeat
end tell
end GetFontName
do shell script " echo \"---------------------------------------- \" >> ~/Desktop/FontList.txt"
do shell script " echo \"Starting New Run \" >> ~/Desktop/FontList.txt"
do shell script " echo \" ---------------------------------------- \" >> ~/Desktop/FontList.txt"
do shell script " echo \" ---------------------------------------- \" >> ~/Desktop/FontList.txt"
tell application "Extensis Suitcase X1"
set theFontList to {} as list
set theName to {} as list
-- get name of all font sets
set theName to name of every Font Set
-- reverse the list to show as it is in extensis
set reverseList to {} as list
repeat with i1 from 1 to the length of theName
copy item i1 of theName to beginning of reverseList
end repeat
repeat with i2 from 1 to the length of reverseList
my GetFontName(item i2 of reverseList)
end repeat
end tell
it might be caused by the asian character set… so that would mean i would need to use quoted form of?
i got it to work, but now, I can’t get the asian character set to output correctly…
set SetCat to "11_misc."
do shell script "touch ~/Desktop/FontList.txt"
tell application "Terminal"
activate
do script "tail -F ~/Desktop/FontList.txt"
end tell
on GetFontName(Catagory)
do shell script " echo \" \" >> ~/Desktop/FontList.txt"
do shell script " echo \" LIST NAME = \" " & Catagory & " >> ~/Desktop/FontList.txt"
do shell script " echo \" \" >> ~/Desktop/FontList.txt"
tell application "Extensis Suitcase X1"
set theFontName to {} as string
set theCount to "0"
set theFontName to the name of every Font in Font Set Catagory
repeat with i from 1 to the length of theFontName
set theCount to theCount + 1
do shell script " echo " & theCount & " - " & quoted form of item i of theFontName & " >> ~/Desktop/FontList.txt"
end repeat
end tell
end GetFontName
do shell script " echo \"---------------------------------------- \" >> ~/Desktop/FontList.txt"
do shell script " echo \"Starting New Run \" >> ~/Desktop/FontList.txt"
do shell script " echo \" ---------------------------------------- \" >> ~/Desktop/FontList.txt"
do shell script " echo \" ---------------------------------------- \" >> ~/Desktop/FontList.txt"
tell application "Extensis Suitcase X1"
set theFontList to {} as list
set theName to {} as list
-- get name of all font sets
set theName to name of every Font Set
-- reverse the list to show as it is in extensis
set reverseList to {} as list
repeat with i1 from 1 to the length of theName
copy item i1 of theName to beginning of reverseList
end repeat
repeat with i2 from 1 to the length of reverseList
my GetFontName(item i2 of reverseList)
end repeat
end tell
do shell script " echo \"---------------------------------------- \" >> ~/Desktop/FontList.txt"
do shell script " echo \"Ending Run \" >> ~/Desktop/FontList.txt"
do shell script " echo \" ---------------------------------------- \" >> ~/Desktop/FontList.txt"
the asian character sets comes out like this
180 - Gotham-ThinItalic
181 - Gotham-XLightItalic
182 - Âπ≥Êà êËßÞÇ¥žÃ‡âˆ‘žÃ‰Ã‰žÃ‡Ã˜ Std W3
183 - Âπ≥Êà êËßÞÇ¥žÃ‡âˆ‘žÃ‰Ã‰žÃ‡Ã˜ Std W5
184 - Âπ≥Êà êËßÞÇ¥žÃ‡âˆ‘žÃ‰Ã‰žÃ‡Ã˜ Std W7
185 - Âπ≥Êà êËßÞÇ¥žÃ‡âˆ‘žÃ‰Ã‰žÃ‡Ã˜ Std W9
186 - Âπ≥Êà ê°âˆâˆžÃ‡¥žÃ‡âˆ‘žÃ‰Ã‰žÃ‡Ã˜ Std W4
187 - Âπ≥Êà ê°âˆâˆžÃ‡¥žÃ‡âˆ‘žÃ‰Ã‰žÃ‡Ã˜ Std W8
188 - Âπ≥Êà êÊòéÊúù Std W3
189 - Âπ≥Êà êÊòéÊúù Std W5
190 - Âπ≥Êà êÊòéÊúù Std W7
191 - Âπ≥Êà êÊòéÊúù Std W9
192 - Â∞è°öžÃ‡¥žÃ‡âˆ‘žÃ‰Ã‰žÃ‡Ã˜ Pro B
193 - Â∞è°öžÃ‡¥žÃ‡âˆ‘žÃ‰Ã‰žÃ‡Ã˜ Pro EL
194 - Â∞è°öžÃ‡¥žÃ‡âˆ‘žÃ‰Ã‰žÃ‡Ã˜ Pro H
195 - Â∞è°öžÃ‡¥žÃ‡âˆ‘žÃ‰Ã‰žÃ‡Ã˜ Pro L
196 - Â∞è°öžÃ‡¥žÃ‡âˆ‘žÃ‰Ã‰žÃ‡Ã˜ Pro M
197 - Â∞è°öžÃ‡¥žÃ‡âˆ‘žÃ‰Ã‰žÃ‡Ã˜ Pro R
198 - Â∞è°öÊòéÊúù Pro B
199 - Â∞è°öÊòéÊúù Pro EL
200 - Â∞è°öÊòéÊúù Pro H
201 - Â∞è°öÊòéÊúù Pro L
202 - Â∞è°öÊòéÊúù Pro M
203 - Â∞è°öÊòéÊúù Pro R
204 - žÃ‡Ã¤žÃ‡Ã¡žÃ…Ãœ Display Std B
205 - žÃ‡Ã¤žÃ‡Ã¡žÃ…Ãœ Display Std EB
206 - žÃ‡Ã¤žÃ‡Ã¡žÃ…Ãœ Display Std H
207 - žÃ‡Ã¤žÃ‡Ã¡žÃ…Ãœ Display Std M
208 - žÃ‡Ã¤žÃ‡Ã¡žÃ…Ãœ Display Std SB
209 - žÃ‡Ã¤žÃ‡Ã¡žÃ…Ãœ Text Std EL
210 - žÃ‡Ã¤žÃ‡Ã¡žÃ…Ãœ Text Std L
211 - žÃ‡Ã¤žÃ‡Ã¡žÃ…Ãœ Text Std M
212 - žÃ‡Ã¤žÃ‡Ã¡žÃ…Ãœ Text Std R
213 - ʢ∑°Î©Ã¬
214 - Â∞è°öžÃ‡¥žÃ‡âˆ‘žÃ‰Ã‰žÃ‡Ã˜ Std B
215 - Â∞è°öžÃ‡¥žÃ‡âˆ‘žÃ‰Ã‰žÃ‡Ã˜ Std EL
216 - Â∞è°öžÃ‡¥žÃ‡âˆ‘žÃ‰Ã‰žÃ‡Ã˜ Std H
217 - Â∞è°öžÃ‡¥žÃ‡âˆ‘žÃ‰Ã‰žÃ‡Ã˜ Std L
218 - Â∞è°öžÃ‡¥žÃ‡âˆ‘žÃ‰Ã‰žÃ‡Ã˜ Std M
219 - Â∞è°öžÃ‡¥žÃ‡âˆ‘žÃ‰Ã‰žÃ‡Ã˜ Std R
220 - Â∞è°öÊòéÊúù Std B
221 - Â∞è°öÊòéÊúù Std EL
222 - Â∞è°öÊòéÊúù Std H
223 - Â∞è°öÊòéÊúù Std L
224 - Â∞è°öÊòéÊúù Std M
225 - Â∞è°öÊòéÊúù Std R
226 - Astrology Pi LT Std 1
227 - Astrology Pi LT Std 2
not really what the font name is, any ideas?