• 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
Script works in OS 9 but not in OS X please help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Prev by Date: Re: monthNumber (was: Create a folder with today's date...)
  • Next by Date: Son of Y2.401K
  • Previous by thread: looking for testers
  • Next by thread: Re: Script works in OS 9 but not in OS X please help
  • Index(es):
    • Date
    • Thread