• 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: How do I get a script to ask me the number of times to repeat?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I get a script to ask me the number of times to repeat?


  • Subject: Re: How do I get a script to ask me the number of times to repeat?
  • From: Christopher Stone <email@hidden>
  • Date: Thu, 24 Feb 2005 13:24:48 -0600

At 13:44 -0500 02/24/2005, Simon Kidd wrought:

many times it is to repeat and in what phase it is to select items. So my question is what is the command I need to script to have the script ask me these questions?

*I* sure wouldn't use GUI scripting to do this.

set srcFl to alias "Lao-Tzu:Users:chris:Documents:Test_Folder_1:"
set destFl to alias "Lao-Tzu:Users:chris:Documents:Test_Folder_2:"
set n to text returned of (display dialog "Please enter \"n\":" default answer "")


 tell application "Finder"
   set fList to items of srcFl
   repeat with ndx from 1 to count of fList by n
     move item ndx of fList to destFl
   end repeat
 end tell


Chris


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: How do I get a script to ask me the number of times to repeat?
      • From: Simon Kidd <email@hidden>
    • Re: How do I get a script to ask me the number of times to repeat?
      • From: John Stewart <email@hidden>
References: 
 >How do I get a script to ask me the number of times to repeat? (From: Simon Kidd <email@hidden>)

  • Prev by Date: A question on System prefs
  • Next by Date: Re: A question on System prefs
  • Previous by thread: How do I get a script to ask me the number of times to repeat?
  • Next by thread: Re: How do I get a script to ask me the number of times to repeat?
  • Index(es):
    • Date
    • Thread