NSAppleScript - "Tell Finder to Eject Disk 'Foo' " - strange Log messages
NSAppleScript - "Tell Finder to Eject Disk 'Foo' " - strange Log messages
- Subject: NSAppleScript - "Tell Finder to Eject Disk 'Foo' " - strange Log messages
- From: Diggory Laycock <email@hidden>
- Date: Fri, 18 Jul 2003 11:11:14 +0100
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.