• 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
How to "remember" a disk alias
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to "remember" a disk alias


  • Subject: How to "remember" a disk alias
  • From: Irwin Poche <email@hidden>
  • Date: Wed, 18 Apr 2001 21:54:10 -0500

The first time the script below runs it prompts for a choice of mounted
disks. After that it just opens the disk. I would expect that, if the disk
were not mounted, a "Please insert the disk..." message would be produced
just as the Finder does when an alias of an unmounted disk is opened.
Instead I get a -1753 error from a classic application and a "Could not run
the script because of an AppleScript error" from the Script Editor.

Does anyone know how to do this correctly ?

-Irwin


property disk_alias : ""
tell application "Finder"
if disk_alias is "" then
set disk_name to (choose from list (list disks)) as string
set disk_alias to disk disk_name as alias
end if
open disk_alias
end tell


  • Prev by Date: Re: Random number generator without duplicates?
  • Next by Date: Re: Random number generator without duplicates?
  • Previous by thread: Re: [ot] best way to send an e-mail with Applescript
  • Next by thread: Re: How to "remember" a disk alias
  • Index(es):
    • Date
    • Thread