View Single Post
  #8  
Old February 21st, 2009, 09:49 AM
Mikuro's Avatar
Mikuro Mikuro is offline
Crotchety UI Nitpicker
 
Join Date: Mar 2005
Posts: 2,682
Thanks: 6
Thanked 53 Times in 48 Posts
Mikuro will become famous soon enough
You can get the location of the script file with "the path to me". Then you just need to tell the Finder to duplicate it.
Code:
tell application "Finder"
	repeat with i from 1 to 100
		duplicate (the path to me)
		delay 1
	end repeat
end tell
That'll make 100 copies, pausing for 1 second between each copy.

(Note: If you run this in Script Editor, it might duplicate the Script Editor application. Save your file as an application and run it from the Finder for best results.)
__________________
Mac mini — 1.25GHz G4, 1GB RAM — OS 10.5.8

Useful programs: Privoxy, Butler, ffmpegX, VLC, Perian, Tofu, Wcalc
Reply With Quote