Script works in OS 9 but not in OS X please help
Script works in OS 9 but not in OS X please help
- Subject: Script works in OS 9 but not in OS X please help
- From: Lorenzo Thurman <email@hidden>
- Date: Tue, 12 Feb 2002 21:09:14 -0600
This script works just fine under OS 9 and prints out "Its here" when
theItem is set to a valid name, but fails under X with this message:
Finder got an error: Can't make {startup disk, disk "MacOS X} into a
text.
I believe its having trouble converting the names of my mounted disks
into text strings, but the bigger question for me as a novice AS user is
what are the differences in creating scripts under 9 and X. I've seen
nothing anywhere that suggests there are differences.
Thanks
tell application "Finder"
set disk_list to disks
set theItem to "Bondi:"
set i to 0
repeat with t_disk in disk_list
set i to i + 1
set t_offset to offset of theItem in disk_list
if t_offset is greater than 0 then
display dialog "Its here!"
return i
else
display dialog "Not here!"
end if
end repeat
end tell
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.