Re: Folder Action to create Archive
Re: Folder Action to create Archive
- Subject: Re: Folder Action to create Archive
- From: Todd Geist <email@hidden>
- Date: Sun, 13 Mar 2005 12:50:02 -0800
Title: Re: Folder Action to create Archive
Well still no luck!
I tried this script. It compiles correctly but still does not produce results.
property z : "Archived"
set s to alias "user:Desktop:test:"
set l to {alias "user:Desktop:test:zoning.doc"}
tell application "Finder" to tell folder s to if exists folder z then
set f to folder z as alias
else
set f to (make new folder at it with properties {name:z}) as alias
end if
if l is not {f} then tell application "DropZip" to zip l into f with individually
The first time it runs I get this error.
Can't make folder "Archived" of folder "test" of folder "Desktop" of item "user" into a alias.
The second time I get this error,
Finder got an error: The operation could not be completed because there is already an item with that name.
because the “Archived” Folder is already there. Shouldn’t the script be handling that?
I am clueless.
Todd
--
Todd Geist
______________________________________
G e i s t i n t e r a c t i v e
_______________________________________________
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