Re: Tar/gzip is messing up icons
Re: Tar/gzip is messing up icons
- Subject: Re: Tar/gzip is messing up icons
- From: "Adam K. Wuellner" <email@hidden>
- Date: Fri, 14 Jan 2005 15:43:17 -0600
On Jan 14, 2005, at 3:16 AM, Jan-Bultereys wrote:
the reason why "quit" doesn't work is because when the compression
begins.... you can not quit the terminal, since the compression is
still running.... setting a timer won't do the job because compression
can take several minutes depending on the filesize....
I need something like... 'when compression is done' ....quit
terminal...
Ah, OK. Here's one option, maybe not the prettiest...
set stuffcom to "cd /PATHNAME/STUFFED_FILES;stuff -D " & stuff_name
& ""
Tack this on the end of the stuffcom string:
"; osascript -e 'tell application \"Terminal\" to quit'"
That will wait until the 'stuff' command finishes before executing. In
order to avoid the dialog box that asks you if you really want to quit
in the middle of running processes (login, bash, osascript), you can
set the preference in Terminal > Window Settings... > Processes >
Prompt Before Closing Window > Never. Set it as the default.
Another option might be to send the job to the background, determine
the PID, wait for it to disappear, and then tell Terminal to quit.
FWIW, I tried scripting DropStuff, but I wasn't getting self-extracting
Windows archives despite using the syntax described by the dictionary.
I have an unregistered copy of Standard, which doesn't have the command
line tools.
_______________________________________________
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