• 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: Eric Geoffroy <email@hidden>
  • Date: Fri, 11 Mar 2005 10:43:12 -0800

Starting with one of the vanilla folder action scripts provided by Apple "Add new item alert", add a few lines like this:

on adding folder items to this_folder after receiving added_items
blah, blah
added_items
set pf to POSIX path of added_items
do shell script ("zip " & (quoted form of pf)

Do something with the results.
blah, blah

I'm sorry that's a little sloppy. I'm not all that great at scripting, but I didn't see any other replies so I figured I'd try to help.




On Mar 10, 2005, at 11:30 PM, Todd Geist wrote:

Hello,

I would like to create a Folder Action Script that takes what ever Folder or
file is dropped into the folder and creates a zip archive from it.

Can anybody point me at some examples of how this might be done?

Thanks

Todd
 _______________________________________________
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: Todd Geist <email@hidden>
References: 
 >Folder Action to create Archive (From: Todd Geist <email@hidden>)

  • Prev by Date: Illustrator Scripting
  • Next by Date: Re: Illustrator Scripting
  • Previous by thread: Folder Action to create Archive
  • Next by thread: Re: Folder Action to create Archive
  • Index(es):
    • Date
    • Thread