Re: Name to PSN
Re: Name to PSN
- Subject: Re: Name to PSN
- From: Pierce Freeman <email@hidden>
- Date: Sat, 28 Feb 2009 13:32:22 -0800
- Thread-topic: Name to PSN
I thought that based on the info, you couldn't do it using Apple Events...
Apparently I misinterpreted. I'll try this in a little bit and I'll post
back my results.
On 2/28/09 1:22 PM, "Scott Ribe" <email@hidden> wrote:
>> Then would there be some way to either "trick" the system into quitting it
>> in Cocoa, or simply using another way other then Apple Events?
>
> What's wrong with Apple Events?
>
> NSDictionary *err = nil;
> NSAppleEventDescriptor *desc =
> [[[[NSAppleScript alloc] initWithSource: @"tell application \"System
> Events\"\r..."] autorelease] executeAndReturnError: &err];
>
> OK, yeah, I wouldn't (don't) actually try to jam it all on one line like
> that, but it's just to give you the idea...
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden