2008-03-27から1日間の記事一覧

cocoaからのapplescriptの呼び出しについて

NSStringにapplescriptを書いて実行させる場合にはexecuteAndReturnErrorを用いる。このときの引数でNSDictionaryを渡すのだが、最初それをもちいてエラー処理をしていた。 NSString * script_str = [NSString stringWithFormat:@"do shell script \"echo %@…