Re: Introduction and procmail test
Re: Introduction and procmail test
- Subject: Re: Introduction and procmail test
- From: Graff <email@hidden>
- Date: Sat, 19 Jun 2004 15:28:30 -0400
On Jun 19, 2004, at 12:51 PM, Joe Klemmer wrote:
On Sat, 2004-06-19 at 11:31, Graff wrote:
Finally, view the dictionaries of the scriptable applications. It's
the dictionaries that really give you the syntax to control each
application.
Thanks for the links. I think I have some of these but it's good to
get as many as possible.
I looked through the dictionaries in Script Debugger but didn't find
anything with specific commands for the Finder. Apparently there's
some
kind of built-in archiving/compression, zip-like capabilities in Finder
that I need to use. Time to start some major digging.
The Finder doesn't have anything in its AppleScript dictionary about
archiving files but you can easily do it via the shell in AppleScript:
----
set theFolder to choose folder "Choose the folder to archive."
set theSource to quoted form of POSIX path of theFolder
set theFolder to choose folder "Choose where the archive should be
placed."
set theDest to quoted form of ((POSIX path of theFolder) &
"archive.zip")
do shell script "/usr/bin/ditto -c -k --sequesterRsrc " & theSource & "
" & theDest
----
This is pretty close to what the Finder does but it uses an application
called BOMArchiveHelper to do the dirty work. BOMArchiveHelper doesn't
have any obvious way to script it but the shell tool ditto works just
as well. You could also use hdituil if you wanted to create disk
images, compressed or uncompressed.
- Ken
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.