Re: Stuffit Deluxe not applescriptable in 10.6.2
Re: Stuffit Deluxe not applescriptable in 10.6.2
- Subject: Re: Stuffit Deluxe not applescriptable in 10.6.2
- From: Matt Deatherage <email@hidden>
- Date: Sun, 7 Feb 2010 14:14:32 -0600
On 2/7/10 at 1:19 AM, John Mitchell <email@hidden> wrote:
> can anyone advise me on how to solve this?
>
> Or a Unix app to substitute?
I don't know what version of StuffIt Deluxe you're using, but
sometime in the past 3-4 releases they dropped the "StuffIt Deluxe"
application in favor of one named "Archive Manager," so I think
you're a few revisions behind. Archive Manager is not scriptable.
If you want to go the Unix route, your StuffIt Deluxe installation
should have both "stuff" and "unstuff" command-line tools, but they
have the same drawback that "do shell script" always does -- you're
making the system launch an entire Unix shell just to run a single
command. If there's a non-shell way to do it, it's probably better.
And there is: DropStuff is scriptable, and a lighter-weight choice if
all you're trying to do is stuff something:
tell application "DropStuff"
stuff {alias OdbDatabasesFolderPath as alias} ¬
to file ("Odb_" & thisMoment & ".sitx")
end tell
Drawback: In StuffIt Deluxe 2010, DropStuff does not accept a
"compression level" parameter to the "stuff" verb (only to "zip" or
"tar"). If you want more control, use DropStuff to create a droplet
with exactly the parameters you want, and then send your folder to
the droplet with the "open" command ("tell droplet to open...").
Or go for the shell commands if that's what you prefer; I *usually*
find that a level of complexity I'd rather avoid in a script if I
can. If a script is already depending on an application, it might as
well depend on a focused droplet than on a command-line tool or a
more general application, IMHO.
--Matt
--
Matt Deatherage <email@hidden>
GCSF, Incorporated <http://www.macjournals.com>
"Human beings are not animals, and I do not want to see sex and
sexual differences treated as casually and amorally as dogs and
other beasts treat them. I believe this could happen under
the E.R.A." -- Ronald Reagan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden