• 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
Re: How to choose a hard disk or volume?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to choose a hard disk or volume?


  • Subject: Re: How to choose a hard disk or volume?
  • From: Luca Pozzato <email@hidden>
  • Date: Thu, 14 Dec 2000 12:34:54 +0100

if you want select just local disks you can try this

--------
tell application "Finder"
set start_disk to startup disk as text
set localDiskList to every disk of folder (start_disk & "desktop
folder:")
set List_stuff to choose from list localDiskList with prompt "Select
Disk" without multiple selections allowed
set My_disk to the result
end tell
--------
Luca Pozzato
EuroGrafica
Italy

> From: Gary Hobish <email@hidden>
> Date: Wed, 13 Dec 2000 18:37:30 -0800
> To: email@hidden
> Subject: How to choose a hard disk or volume?
>
> I want the user to choose a volume within a script. I have tried:
>
> set localDisk to (choose disk with prompt "Choose your startup disk.")
>
> but I get an error when checking syntax on the word "disk" which says
> "Expected "," but found identifier."
>
> I tried the same thing with the word "volume" replacing "disk" but got the
> same error.
>
> Any ideas?
>
> Also, how would I go about telling a system to restart from a script?
>
> Thanks,
>
> Gary Hobish
> Armin Hammer Productions
> San Francisco
> _______________________________________________
> applescript-users mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/applescript-users


  • Follow-Ups:
    • Re: How to choose a hard disk or volume?
      • From: Gary Hobish <email@hidden>
References: 
 >How to choose a hard disk or volume? (From: Gary Hobish <email@hidden>)

  • Prev by Date: Activer Server Pages using AS
  • Next by Date: Re: How to choose a hard disk or volume?
  • Previous by thread: Re: How to choose a hard disk or volume?
  • Next by thread: Re: How to choose a hard disk or volume?
  • Index(es):
    • Date
    • Thread