• 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 speed and the Finder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSAppleScript speed and the Finder


  • Subject: NSAppleScript speed and the Finder
  • From: Renaud Boisjoly <email@hidden>
  • Date: Wed, 1 Oct 2003 07:18:57 -0400

Hi All!

I'm trying to use an NSAppleScript object in Cocoa to run a compiled Applescript.

When I run the script through Script Editor, its very fast, but when I use it through Cocoa, it seems very slow in a specific case.

The script talks to the Finder and tries to eject mounted disks and servers. But when it tries to do it through creating an NSAppleScript object, the script runs but when it actually tries to tell the finder to eject the volumes, things become slow as molasses...

Actually, things are really slow if the volume to be ejected is a server on a medium speed link (cable).

Why would NSAppleScript objects be any slower than the Script Editor or a standalone applet?

My only other option is to unmount the volume using command-line tools, does anyone have a clean way to unmount servers from the command-line? It would have to be able to run without an admin password. the umount cl tool is not reliable.

Thanks for any clues...

- Renaud
_______________________________________________
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.

  • Prev by Date: Re: Getting the User/Owner of another process
  • Next by Date: Re: NSTableView text color question
  • Previous by thread: Re: Getting the User/Owner of another process
  • Next by thread: Re: NSTableView text color question
  • Index(es):
    • Date
    • Thread