The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - General (http://hintsforums.macworld.com/forumdisplay.php?f=16)
-   -   Tar and AFP copy a folder of random name? (http://hintsforums.macworld.com/showthread.php?t=124906)

saint.duo 06-26-2011 03:15 PM

That's a lot of good info. I haven't really used AppleScript since 10.5. I made a few adjustments to the script and am testing it again (unfortunately my test file is 300GB, so it takes a bit to fail).

saint.duo 06-26-2011 07:25 PM

And it works, finally.

Code:


        tell application "Finder"
                activate
                delay 5
                set isMounted to exists disk "Archive"
        end tell
        if not isMounted then mount volume whichServer

Ended up doing the trick for that AppleEvent error. I also added timeouts to the finder duplicate, and the shell script (which probably doesn't do anything, but it isn't hurting). Tested with a 200GB and a 350GB folder, one with a local copy and one with a remote copy.

Thanks everyone.

Now I get to learn how to do essentially the same thing on a Windows machine, as well as find a good way to make .tgz files on windows.

saint.duo 06-26-2011 07:34 PM

Ack! Just did a 1MB test file for a "how to" video for my co-workers, and it threw an error again. Back to the drawing board.


All times are GMT -5. The time now is 06:01 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.