• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Folder Action to create Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Folder Action to create Archive
      • From: kai <email@hidden>
    • Re: Folder Action to create Archive [Solved]
      • From: Todd Geist <email@hidden>
References: 
 >Re: Folder Action to create Archive (From: kai <email@hidden>)

  • Prev by Date: Re: Folder Action to create Archive
  • Next by Date: Re: Scripting Energy Saver to Sleep Display Now?
  • Previous by thread: Re: Folder Action to create Archive
  • Next by thread: Re: Folder Action to create Archive [Solved]
  • Index(es):
    • Date
    • Thread