Re: script BOMArchiveHelper?
Re: script BOMArchiveHelper?
- Subject: Re: script BOMArchiveHelper?
- From: Axel Luttgens <email@hidden>
- Date: Wed, 07 Jan 2004 15:54:10 +0100
Doug Rowe wrote:
In panther we can now use built in archiving from the menu. As
usual? Apple has not made it scriptable as such. I think it uses ditto,
Hmm, not sure; seems to be much more versatile (just a guess after
having had a look at the executable's strings).
which you can call with a doscript BUT then you don't get the user
feedback of whats going on. I would like to script it where I get the
feedback and I am not using stuffit because I need to do large files.
(eg can go > 2 gigs)
Has anyone used UI scripting to make it work? And what would the
syntax for "selecting" the folder to be archived be?
Why not audaciously try the obvious first? ;-)
I mean, if BOMArchiveHelper is a regular application, then it should
understand the "open" event.
So, I tried something along those lines:
set someItem to "path:to:some:fileorfolder"
application "BOMArchiveHelper" to open alias someItem
And... it worked: after having processed 'fileorfolder' (and displayed a
progress dialog), BOMArchiveHelper had created a new 'fileorfolder.cpgz'
file in the same directory as the original file's one.
As a side note, executing following shell command (one line) lead to the
same result:
/System/Library/CoreServices/BOMArchiveHelper.app/
Contents/MacOS/BOMArchiveHelper /unix/path/to/
some/fileorfolder
The resulting .cpgz file seems to decompress well with gunzip and to
provide some kind of bom file (kind of, as I couldn't open it with lsbom).
Anyway, BOMArchiveHelper handles the .cpgz file without any problem.
HTH,
Axel
_______________________________________________
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.