A more elegant file delete via AppleScript and FTP?
A more elegant file delete via AppleScript and FTP?
- Subject: A more elegant file delete via AppleScript and FTP?
- From: Jeremy <email@hidden>
- Date: Tue, 19 Sep 2006 00:54:11 -0700
In attempting to remove temporary files created on my webserver by a
script, I have been struggling with the inelegance of my solution. I
have a username with an @ in it so I'm not sure if I can create one of
the more elegant shell scripts to remove the files and I do not have
direct terminal access to the server (nor would I want the script to
have it as it will be distributed to my family members).
tell application "Terminal"
activate window
do script "ncftp -u email@hidden -p password ftp.mydomain.com" in
window 1
delay 10
tell application "System Events"
tell process "Terminal"
set frontmost to true
keystroke "cd temporarydirectory" & return & "rm *.*" & return &
"quit" & return & "n" & return
end tell
end tell
delay 10
quit
end tell
Is there a more straightforward solution than what I have above?
Thanks,
Jeremy
_______________________________________________
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