Re: Set Selection with a list of items
Re: Set Selection with a list of items
- Subject: Re: Set Selection with a list of items
- From: Michelle Steiner <email@hidden>
- Date: Sat, 6 Oct 2001 13:07:34 -0700
On 10/6/01 12:37 PM, Irwin Poche <email@hidden> wrote:
>
A few weeks ago I got my first laptop so now I have to keep up with what I
>
have where: laptop or desktop. The same thing that the File Synchronization
>
control panel is supposed to do. All indications I have (even from Apple)
>
is that it is not very reliable. Even if it were, it does not tell you what
>
it's about to do or what it has done.
>
>
So my AS goal is to simply automate what I already do: present folders,
>
side by side, and look at the modification date/time stamps. I then decide
>
what to copy where.
>
>
My thinking is to tell the script the names of the disks, the folders, and
>
items I want to examine and it presents to me what I want to see. Where I
>
am now stuck is figuring out how to get AS to select more than one item at a
>
time.
It sounds like you're making it way too complicated than it needs to be.
Try this
tell application "Finder"
set vol1 to "dora:"
set vol2 to "postop:"
set sysFol1 to vol1 & "system folder:"
set sysFol2 to vol2 & "system folder:"
set the FileList to {"scrapbook file", "MacTCP DNR"}
repeat with loop from 1 to count of FileList
set item1 to (file (item loop of FileList) of folder sysFol1) as alias
set item2 to (file (item loop of FileList) of folder sysFol1) as alias
set date1 to modification date of item1
set date2 to modification date of item2
set the selectedVolume to the button returned of (display dialog
(("Move which file?" & return & item1 as string) & ": " & date1) &
return & item2 & ": " & date2 as string ,
buttons {vol1, vol2})
--insert code to move file here
end repeat
end tell
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------