NSAppleScript speed and the Finder
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.