Re: NSAppleScript - "Tell Finder to Eject Disk 'Foo' " - strange Log messages
Re: NSAppleScript - "Tell Finder to Eject Disk 'Foo' " - strange Log messages
- Subject: Re: NSAppleScript - "Tell Finder to Eject Disk 'Foo' " - strange Log messages
- From: Tom Sutcliffe <email@hidden>
- Date: Fri, 18 Jul 2003 18:52:51 +0100
Is pid 2456 by any chance your application? It looks like an app that
is registered to get unmount notifications isn't responding, and most
likely that is your app, because it's busy running the applescript in
its main thread. So, try putting the applescript call in a separate
thread. Just a thought, and it might be completely wrong depending on
how the NSWorkspace notifications work, but it's worth a try.
Regards,
Tom
On Friday, July 18, 2003, at 11:11 am, Diggory Laycock wrote:
Hi,
I have a snippet of AppleScript in my App - I use it to eject
AppleShare Volumes that NSWorkspace cannot.
it looks like this:
scriptSource = [NSString stringWithFormat:
@"tell application \"Finder\" to eject disk named \"%@\" "
, [vol displayName] ];
NSAppleScript *script=[[NSAppleScript alloc] initWithSource:
scriptSource];
foo = [self doScript: script];
NSLog(@"result: %@", foo);
The script works - however the first time a volume is ejected I get a
couple of seconds spinning-Wheel of death - and some odd console
messages:
Jul 18 11:04:13 DiggorysWideBook /sbin/autodiskmount[200]: Someone
(pid = (2456)) isn't responding to a sent disk acknowledgement
request. That client has been disconnected.
Jul 18 11:04:13 DiggorysWideBook /sbin/autodiskmount[200]:
(autodiskmount.tproj/DiskArbitrationServerMain.c:4450) mach_msg
failed: {0x10004003} (ipc/rcv) timed out
Jul 18 11:04:13 DiggorysWideBook /sbin/autodiskmount[200]:
(autodiskmount.tproj/DiskArbitrationServerMain.c:410) received
unrecognized message (id=0x41) on notify port
Jul 18 11:04:13 DiggorysWideBook /sbin/autodiskmount[200]:
DiskArbUnmountPreNotifyAck_async_rpc(pid = 2456, diskIdentifier =
'afp_0UZj5k0UZ22i0TSyN80ZytNr-2.2e000009', errorCode = 0): no known
client with this pid.
I don't get the delay/messages after the first ejection , and I don't
get them when I use Script Editor to execute the Script.
Should I file a bug report?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.