Re: Folder Action to create Archive
Re: Folder Action to create Archive
- Subject: Re: Folder Action to create Archive
- From: kai <email@hidden>
- Date: Sun, 13 Mar 2005 19:22:53 +0000
On Sunday, March 13, 2005, at 06:13 pm, Todd Geist wrote:
Thanks Kai,
I wonder what the issue is with the other script???
The site that I got in from indicated it might have been written by Sal
originally. If so it would surprise me if there was some thing wrong
with
it when it was written. But maybe something changed with OSX since the
script was written.
Well, I'd expect it to work on a fairly recent system, Todd - since
Eric Geoffroy (and now Yvan Koenig, I see) evidently ran it
successfully in OS 10.3.8. In my case, I'm long overdue for an upgrade
from 10.2.8 - so, at the moment, I'm rarely surprised if a piece of
code doesn't do what it says on the tin. ;-)
I checked 'man ditto' in Terminal and the syntax here is significantly
removed from the shell script contained in the script. (More
accurately, it bears hardly any resemblance at all.) I tried tweaking
the code to conform to my version of ditto, and got it to copy files
and append the "zip" extension. However, StuffIt Expander complained
bitterly (and justifiably) that the allegedly "zipped" files weren't
actually compressed in any way.
You might like to try checking ditto on your machine to see what you
get there. Oh yeah - in case it helps... since the script failed
silently when run in situ, I resorted to testing it in Script Editor.
To do this, I simply commented out the lines:
----------------
on adding folder items to this_folder after receiving these_items
end adding folder items to
----------------
... and added a couple up front something like:
----------------
set this_folder to alias "Path:to:archive folder:"
set these_items to {alias "Path:to:archive folder:target file.JPG"} (*
don't forget the braces *)
----------------
That at least allowed me to see some error messages (of which there
were several).
Anyway, I hope some of this helps...
Best wishes,
---
kai
_______________________________________________
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