Re: System Events vs Finder
Re: System Events vs Finder
- Subject: Re: System Events vs Finder
- From: Kristofer Szymanski <email@hidden>
- Date: Sun, 28 Nov 2004 23:11:37 +0100
Good question but hard to answer :-)
tell application "Finder"
eject disk "nourish"
end tell
will work, but
tell application "System Events"
eject disk "nourish"
end tell
will not even compile. This is why we probably should trust Finder.
However, if you run
do shell script "diskutil info /Volumes/nourish | grep Ejectable"
you will notice that diskutil treat the disk as not ejectable. I
definitely trust diskutil more than Finder... until now, because
do shell script "diskutil eject /Volumes/nourish"
wil eject the disk.
/ Kristofer
On 2004-11-28, at 20.26, Bill wrote:
Hi,
Today when I tried this script:
tell application "System Events"
set x to ejectable of disk "nourish"
end tell
tell application "Finder"
set y to ejectable of disk "nourish"
end tell
{x, y}
-- {false, true}
The disk "nourish" is a firewire harddisk, with only one partition.
So, who is right in this situation, my disk is ejectable or not?
TIA
bill
☠ 孤寂地
<http://homepage.mac.com/cherish/triste/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden