Re: Finder Zip scriptable
Re: Finder Zip scriptable
- Subject: Re: Finder Zip scriptable
- From: Stevan Reese <email@hidden>
- Date: Sun, 14 Dec 2003 09:50:32 -0800
Gzip in included with OSX. /usr/bin/gzip also see "man gzip" from the
terminal.
To use it with AppleScript, do shell script "gzip ......."
stevan
On Dec 14, 2003, at 5:31 AM, VRic wrote:
12/12/03 Walter Ian Kaye :
Or for non-wonky Zip archives, I just found out that ZipIt
(shareware) has been updated for OS X:
http://www.maczipit.com/
I didn't try with OSX yet, but I found major bugs in ZipIt's
scriptability under OS 9. Most importantly there's no way to guess
where the archive will go =:-O
It's not totally random, though. It seems to go near the destination
you assign, or in recently used folder, but I couldn't find a clear
pattern. Parts of the dictionary don't work at all, and the examples
aren't even close to the actual syntax.
I hate to say it, but if it works the same with OS X and you can't
wait for bugfix, maybe StuffIt Deluxe would be a better choice now
that it handles zip archives properly (StuffIt isn't renowned for its
stability, but at least the AS syntax works as advertised).
Here's a copy of my report to maczipit in its current state (couldn't
finish it yet, I'll send it in a few days with example scripts of what
works or doesn't, just ask if you want a copy then).
Objet : Major AppleScript bugs in ZipIt
Date: 28/11/03 10:00
Adressi ` : email@hidden
Hi.
I tried ZipIt 2.2.2 under MacOS 9.2.2 but couldn't use it for my
needs, as
setting the destination folder with AppleScript has impredictable
results.
-- see the "ZipIt - test zip" script for reference.
I tried to workaround the destination bug by getting the disk file
from
the document class, but it appears that the Window and Document
classes
are buggy and won't return that info.
I did some testing so I could provide you examples of what works and
what
doesn't (I didn't test *everything*, mainly the document and window
classes that I needed but couldn't use).
-- see the "ZipIt - what works" script for reference.
By the way, the sample syntax in the help files and the FAQ on your
site
http://www.maczipit.com/faq/applescript.html
is absolutely wrong (maybe it's from some older version of ZipIt?)
-- see the "ZipIt - errors in help" script for reference.
----
VRic
_______________________________________________
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.
_______________________________________________
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.