Hey Guys,
Got a script that send files to a server. I need a script that will check if the directory I’m sending the files to exists. Any ideas?
Hey Guys,
Got a script that send files to a server. I need a script that will check if the directory I’m sending the files to exists. Any ideas?
Hi,
This might do the trick:
property destpath : "myserver:directory:"
tell application "Finder"
if (exists destpath) then
--copy files to destpath script
else
display dialog destpath & " not found" buttons {"Cancel"} default button 1
end if
end tell
–Peter–