FROM : Daniel Dickison
DATE : Sat May 24 22:53:47 2008
>> NSAppleScript * script = [[[NSAppleScript alloc]
>> initWithSource:@"tell application \"iTunes\" \n quit \nend tell"]
>> autoRelease];
>> [script executeAndReturnError: nil];
>
> That is slow because it has to compile. but if I can't get this
> apple event to work than I might do that
I would hope that the frequency with which you tell iTunes to quit is
low enough that the overhead of compiling the script would be
negligible :)
DATE : Sat May 24 22:53:47 2008
>> NSAppleScript * script = [[[NSAppleScript alloc]
>> initWithSource:@"tell application \"iTunes\" \n quit \nend tell"]
>> autoRelease];
>> [script executeAndReturnError: nil];
>
> That is slow because it has to compile. but if I can't get this
> apple event to work than I might do that
I would hope that the frequency with which you tell iTunes to quit is
low enough that the overhead of compiling the script would be
negligible :)
| Related mails | Author | Date |
|---|---|---|
| Mr. Gecko | May 24, 17:49 | |
| Tommy Nordgren | May 24, 18:13 | |
| Mr. Gecko | May 24, 18:33 | |
| I. Savant | May 24, 18:43 | |
| Tommy Nordgren | May 24, 21:23 | |
| has | May 24, 21:38 | |
| Mr. Gecko | May 24, 21:43 | |
| Mr. Gecko | May 24, 21:53 | |
| Daniel Dickison | May 24, 22:53 | |
| Gregory Weston | May 25, 01:45 | |
| Uli Kusterer | May 26, 00:26 |






Cocoa mail archive

