Charlie,

I'm an experienced AppleScript developer, and I've created SFTP- related code for clients using YummyFTP. However, I have not had any hands-on experience with Interarchy.

With that preface, I took a closer look at the Interarchy AppleScript dictionary; the following command is what you will need:

mirrorupload
mirrorupload (verb) mirror a local folder to an FTP site, destroying all remote contents. (from Interarchy Suite)

 function syntax
        set theResult to mirrorupload (alias) ¬
        host (unicode text) ¬
        path (unicode text) ¬
        user (unicode text) ¬
        password (unicode text) ¬
        url (unicode text) ¬
        sftp (boolean) ¬
        protocol (Prot) ¬
        dryrun (boolean)


 result
        integer: Error code

In addition, I did a Google search on the "dryrun" parameter for the command and found the following from a MacWorld review:

"One of the potential dangers of mirroring folders between your Mac and a remote server is the possibility of unintentionally deleting important files. Interarchy’s new Mirror Dry Run function gives you the opportunity to test a mirror without making any changes to the files on your FTP server or your hard drive, lessening the likelihood that you’ll accidentally destroy important data. It’s a welcome addition to the program."

So, it looks like you should be able to test your scripts with the "dryrun" option enabled to make sure things are working correctly before going live with the final script.

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 17, 2010, at 4:49 PM, Charles Hartley wrote:

Lee,

I've used a bit of appleScript, mostly with the help of others. I've
looked at the Interarchy appleScript dictionary, but with something as
potential dangerous as doing a mirror upload, I want to be sure I
understand what I am doing before I do something stupid.

Any help you can offer will be greatly appreciated.

Charlie

On Wed, Feb 17, 2010 at 4:18 PM, Lee Hoong <[email protected]> wrote:
Charles,

A quick look at the Interarchy AppleScript dictionary suggests that you
should be able to do the mirror upload from within FileMaker using
AppleScript. Your AppleScript should be able to check if Interarchy is already running, launching it if necessary before doing the upload. Are you
familiar with AppleScript at all?

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

FileMaker 10 Certified Developer






On Feb 17, 2010, at 9:59 AM, Charles Hartley wrote:

I have a mirror upload established in Interarchy, and I need to
activate it from within a FileMaker Pro script, presumably by using
appleScript, but have no clue on how to do it. It is likely that
Interarchy would not be open when this happens. Any ideas?



Reply via email to