RE: Tar/gzip is messing up icons
RE: Tar/gzip is messing up icons
- Subject: RE: Tar/gzip is messing up icons
- From: "Jan-Bultereys" <email@hidden>
- Date: Fri, 14 Jan 2005 10:16:10 +0100
- Thread-topic: Tar/gzip is messing up icons
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...
To answer to your question if 'dropstuff' is directly scriptable ,
probably yes.... but I thought I had more flexibility doing it from the shell....
any ideas are much appreciated
best regards,jan
> ----------
> From: Adam K. Wuellner
> Reply To: Users AppleScript
> Sent: Thursday, January 13, 2005 20:35 PM
> To: Jan-Bultereys
> Cc: Users AppleScript
> Subject: Re: Tar/gzip is messing up icons
>
>
> On Jan 13, 2005, at 11:20 AM, Jan-Bultereys wrote:
>
> > Yes emmanuel,
> >
> > My first script/option I used the 'dropstuff application'
> > but I ran into the problem that I wasn't able to close the
> > terminal window "after" the compression was done.....
> > [SNIP]
>
> Any reason you can't just script DropStuff directly, rather than using
> the CLI?
>
> tell application "DropStuff"
> stuff alias "PATHNAME:STUFFED_FILES:" extracting Windows into alias
> "PATHNAME:ARCHIVE.sit"
> end tell
>
> (above not tested)
>
> You might have to generate separate archives for Mac and Windows
> clients.
>
> > If anyone knows how to quit/close the Terminal after the compression
> > is done that would also solve my problem.
> >
> > This is what I had:
> >
> > tell application "Finder"
> > set file_list to every item of folder "PATHNAME:STUFFED_FILES:"
> > repeat with temp_file in file_list
> > set temp_name to name of temp_file
> > set stuff_name to quoted form of temp_name
> > set stuffcom to "cd /PATHNAME/STUFFED_FILES;stuff -D " & stuff_name
> > & ""
> > tell application "Terminal"
> > activate
> > do script stuffcom
>
> quit -- would this not work?
>
> > end tell
> > end repeat
> > end tell
>
>
>
_______________________________________________
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