Hi buddies, I want to ask for help.
I’m so new to that applescript, so only you guys can help me.
I need a script, which could copy needed file from needed location (for example y.jpg in Documents folder) to needed location (for example to Desktop) with file overwting, with repeat with 180 seconds.
anyone can help? :rolleyes:
You could modify this:
tell application "Finder"
set x to (choose file) as alias
set dsktp to (path to desktop folder)
set thedelay to 5
repeat 2 times
set destination to quoted form of ((POSIX path of dsktp) & name of x)
set source to quoted form of POSIX path of x
set command to "cp " & source & " " & destination
do shell script command
delay thedelay
end repeat
end tell
Hi,
save the script as stay open application bundle
property fileName : "y.jpg"
on idle
set src to quoted form of ((POSIX path of (path to documents folder)) & fileName)
set dst to quoted form of ((POSIX path of (path to desktop)) & fileName)
try
do shell script "/bin/cp " & src & space & dst
end try
return 180
end idle