Re: How do I get a script to ask me the number of times to repeat?
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