On Jan 23, 2015, at 18:40, Shane Stanley <sstan...@myriad-com.com.au> wrote:

>> On 24 Jan 2015, at 6:25 am, Jerry Krinock <je...@ieee.org> wrote:
>> 
>> NSString* source ;
>> source = [NSString stringWithFormat:
>>          @"tell application \"%@\"\n"
>>          @"activate\n"
>>          @"present last logged error\n"
>>          @"end tell",
>>          [[NSBundle mainAppBundle] bundlePath]
>>          ] ;
>> 
>> where [[NSBundle mainAppBundle] bundlePath] returns “com.mycompany.MyApp”.  
> 
> In that case, you should be using @"tell application id \"%@\"\n". (Oh, and 
> "activate" seems to have become asynchronous these days.)

Oh, that reminds me. I had to change it to mainBundle instead of mainAppBundle.

Steve via iPad
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to