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

Select desktop items for a specific volume


  • Subject: Select desktop items for a specific volume
  • From: Jeremy Reichman <email@hidden>
  • Date: Tue, 07 Aug 2001 16:12:46 -0400

One thing that has annoyed me over the years is the difficulty in selecting
and doing anything with only those items on the desktop of a specific
volume. Now, my frustration has moved towards my inability to write a script
that does this for me.

I have had some recent success while taking a different track, because I
noticed the "select folder" command in Standard Additions. Now, I'm unable
to finish the script because I can't figure out how to select every item in
the list that's returned. Help, anyone?

Here's what I have, and what works:

***
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
set selected_disk to item 1 of the result

set desktop_folder to ((selected_disk as string) & ":Desktop Folder:")

list folder desktop_folder

set desktop_file_list to the result
***

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.)

Thanks!

--
Jeremy Reichman
Software Specialist III (Mac OS) / Instructor
Customer Support Services
Information and Technology Services
Rochester Institute of Technology
Rochester, New York, USA


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