[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(DTPtechNote:695) Re: do shell script



なんば。さんのご指摘どおり、ASの文字列の渡し方の問題なのか、と。
問題は\の扱い。

set aa to "tr \\\\r \\\\n < '/Library/Application Support/Adobe/TypeSpt/AdobeFnt05.lst' | perl -ne 'print if s/^(FontName:|WritingScript:)//;'"
set bb to text returned of (display dialog aa default answer aa)
do shell script bb

が通るんだもの。

で、system osax
system "tr \\\\r \\\\n < '/Library/Application Support/Adobe/TypeSpt/AdobeFnt05.lst' | perl -ne 'print if s/^(FontName:|WritingScript:)//;'"

これでOKなのか? のか?