NSDictionary* errorDict;
NSAppleScript* scriptObject;
NSString* source;
source = @" \
tell Application \"CotEditor\"\n \
make new document\n \
activate\n \
end tell";
scriptObject = [[[NSAppleScript alloc] initWithSource: source]
autorelease];
[scriptObject executeAndReturnError: &errorDict];
0 件のコメント:
コメントを投稿