• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSAppleScript - "Tell Finder to Eject Disk 'Foo' " - strange Log messages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSAppleScript - "Tell Finder to Eject Disk 'Foo' " - strange Log messages
      • From: Tom Sutcliffe <email@hidden>
  • Prev by Date: _NSDrawWindowBackgroundRegion bombs
  • Next by Date: Re: now it really gets weird
  • Previous by thread: _NSDrawWindowBackgroundRegion bombs
  • Next by thread: Re: NSAppleScript - "Tell Finder to Eject Disk 'Foo' " - strange Log messages
  • Index(es):
    • Date
    • Thread