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: Tue, 25 Jan 2005 10:10:53 +0100
- Thread-topic: Tar/gzip is messing up icons
thanks adam for you input,
but my script hangs on the option you gave, it work for 1 folder/file
but I am working with a repeat and loop option ....
I guess I have to wait on martin and jake's answer....and maybe follow the "BomArchive.." option
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
end tell
end repeat
best regards,jan
> ----------
> From: Adam K. Wuellner
> Reply To: Users AppleScript
> Sent: Friday, January 14, 2005 22:43 PM
> To: Jan-Bultereys
> Cc: Users AppleScript
> Subject: Re: Tar/gzip is messing up icons
>
> 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