Charlie,

Just to be on the safe side, you might want to set up test source and target folders as you're developing and testing the AppleScript, in addition to setting the dryrun option to TRUE.

In the script editor, try the following (assuming you are NOT using the SFTP protocol for transfer):

set theSourceFolder to (choose folder)

tell application "Interarchy"

set resultNumber to mirrorupload theSourceFolder host "ftp.myplace.com" path "/home/myname/folder1/folder2/folder3/" user "myname" password "fakepassword" with dryrun

end tell


Lee.
=================
Binary Assist
220 Gaines Oak Way
Suwanee, GA 30024
Voice: (678) 313-5604
Internet: [email protected]
Website: www.binaryassist.com

FileMaker Certified Developer






On Feb 19, 2010, at 9:40 AM, Charles Hartley wrote:

Lee, (and anyone else who wants to jump in here)

I appreciate your help, but I'm still confused. To repeat what you
indicated earlier, the Interarchy dictionary gives this information
for mirrorupload:

mirrorupload v : mirror a local folder to an FTP site, destroying all
remote contents.
mirrorupload [alias] : Folder to mirror from
[host text] : ftp server (defaults to this mac)
[path text] : path to remote folder
[user text] : user name (defaults to “anonymous”)
[password text] : user password (defaults to your Email address)
[url text] : URL to remote folder
[sftp boolean] : use sftp
[protocol FTPProtocol/SFTPProtocol/FileProtocol/HTTPProtocol/ HTTPSProtocol/WebDAVProtocol/WebDAVSProtocol/AmazonS3Protocol/ AmazonS3SProtocol/SSHProtocol/SCPProtocol]
: protocol to use
[dryrun boolean] : execute mirror in dry run simulation mode
→ integer : Error code

Now, when I do a manual mirror upload Interarchy asks for the
following for which I have given fake info to use for our purposes:

Server: ftp.myplace.com
Path: /home/myname/folder1/folder2/folder3/
Username: myname
Password: fakepassword
Local: "Macintosh HD:Users:myname:Desktop:folder1:folder2"
dryrun: yes

I just don't understand how to write the script to do this. I tried a
couple of things, but the script editor quickly told me I didn't know
what I was doing. Can someone help an old dog learn a new trick?

Thanks,
Charlie

Reply via email to