• 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: Select desktop items for a specific volume
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Select desktop items for a specific volume


  • Subject: Re: Select desktop items for a specific volume
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 7 Aug 2001 13:36:42 -0700

On 8/7/01 1:12 PM, Jeremy Reichman <email@hidden> wrote:

>How do I got about taking the list of returned items and using that with the
>folder, given that the list contains only the file names of each file? The
>specific problem that I've hit is keeping the old selection, if I go the
>route of a repeat loop. (I can select each item in turn, really fast, but it
>doesn't do me a lick of good.)

choose from list (list disks) with prompt "Select a disk:" default items
"Macintosh HD" OK button name "Select" without multiple selections
allowed and empty selection allowed

--watch out for line wrapping in above line

set selected_disk to item 1 of the result
set desktop_folder to ((selected_disk as string) & ":Desktop Folder")
tell application "Finder"
set folder_content to contents of (alias desktop_folder) as alias list
end tell

--Michelle

----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------


  • Follow-Ups:
    • Re: Select desktop items for a specific volume
      • From: John W Baxter <email@hidden>
    • Re: Select desktop items for a specific volume
      • From: Jeremy Reichman <email@hidden>
  • Prev by Date: Re: archives-it can't be as bad as I think it is
  • Next by Date: Files in a Folder
  • Previous by thread: Re: Select desktop items for a specific volume
  • Next by thread: Re: Select desktop items for a specific volume
  • Index(es):
    • Date
    • Thread