Re: Using 'Repeat'
Re: Using 'Repeat'
- Subject: Re: Using 'Repeat'
- From: "Arthur J Knapp" <email@hidden>
- Date: Mon, 26 Mar 2001 10:19:48 -0500
>
Subject: Using 'Repeat'
>
From: email@hidden
>
Date: Sun, 25 Mar 2001 17:12:55 +1000
>
tell application "Finder"
>
set test_folder to "Macintosh HD:test folder:"
>
set test_folder2 to "Macintosh HD:test folder2:"
>
set file_list to list folder test_folder
The above returns the *names* of every item in the folder,
not paths, not aliases, etc...
>
set search_term to "376"
>
repeat with an_item in file_list
>
if an_item contains search_term then
>
move file an_item to test_folder2
move file (test_folder & an_item) to test_folder2
>
end if
>
end repeat
>
end tell
Arthur J. Knapp
http://www.stellarvisions.com
mailto:email@hidden
Hey, check out:
http://www.LateNightSW.com