MACSCRPT Archives

June 2007

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
john darnell <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Mon, 25 Jun 2007 12:06:09 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (59 lines)
Ladies and Gentlemen:

   I tried sending this message out earlier but from my end it looks like the email webserver lost the message.  If it did not, I apologize for the double message.

   I am trying to write an Applescript that uses Stuffit to back up projects.  I have this code:

code starts here****************************************

	tell application "StuffIt Deluxe"
		activate
		--if not (exists file "Macintosh HD:Users:PRG03:Desktop:ABC Archive.sitx") then
		if ArchiveExists is false then
			make new archive with properties {location:file FileNameToUse}
		end if
		
		set TheFolder to POSIX path of "Macintosh HD:ABC Folder:"
		--set TheFolder to POSIX path of "/Volumes/Macintosh HD/ABC Folder/"
		--set TheFolder to "/Volumes/Macintosh HD/ABC Folder"
		--set TheFolder to "Volumes/Macintosh HD/ABC Folder/"
		--set TheFolder to "Volumes/Macintosh HD/ABC Folder"
		--set TheFolder to "//ABC Folder/"
		--set TheFolder to "//ABC Folder"
		--set TheFolder to "/ABC Folder/"
		--set TheFolder to "/ABC Folder"
		--set TheFolder to "Macintosh HD/ABC Folder/"
		--set TheFolder to "Macintosh HD/ABC Folder"
		--set TheFolder to "Macintosh HD:ABC Folder:"
		--set TheFolder to "Macintosh HD:ABC Folder"		
		
		--stuff {alias TheFolder} into archive ArchiveName compression level maximum with replacing
		stuff {TheFolder} into archive ArchiveName compression level maximum with replacing
		close window "ABC Archive.sitx"
		
	end tell

code ends here**************************************

Please note that all the commented-out lines are variations I tried using to get this script running.

Macintosh HD:ABC Folder exists.  I added these line to the script and ran it, to verify my path:

set myfolder to choose folder
display dialog myfolder.

The message I am getting from Stuffit is as follows:

Stuffit Deluxe got an error: Can't get {path}

where path is the appropriate variation commented out above.

What am I doing wrong?

TIA!

John
Trivia Question:  What is the significance of the title, "Fahrenheit 451?"

 

ATOM RSS1 RSS2