• 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: Using 'Repeat'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: get handler name
  • Next by Date: Re: get handler name
  • Previous by thread: Re: Using 'Repeat'
  • Next by thread: Re: re:Watched folder
  • Index(es):
    • Date
    • Thread