Re: do shell script FREEZES Finder!!
Re: do shell script FREEZES Finder!!
- Subject: Re: do shell script FREEZES Finder!!
- From: Nigel Smith <email@hidden>
- Date: Mon, 26 Apr 2004 15:43:05 +0100
On 26/4/04 9:35, "Richard Covert" <email@hidden> wrote:
>
set shell_cmd to "cd " & POSIX_Path & ,
>
" && /usr/local/bin/rar a -s -v10M -vn " & BaseHostName & ,
>
" SeanHannity_0423_CommericalFree.mp3 2>&1&"
>
>
As you can see, I have tried to put the UNIX command in the background,
>
and yet the Finder still freezes!!!
You also need to tell the backgrounded process *where* to put any output:
set shell_cmd to "cd " & POSIX_Path & ,
" && /usr/local/bin/rar a -s -v10M -vn " & BaseHostName & ,
" SeanHannity_0423_CommericalFree.mp3 /file/path 2>&1&"
If you don't want the output, send it to the "bit bucket"
set shell_cmd to "cd " & POSIX_Path & ,
" && /usr/local/bin/rar a -s -v10M -vn " & BaseHostName & ,
" SeanHannity_0423_CommericalFree.mp3 /dev/null 2>&1&"
Read TechNote TN2065
<
http://developer.apple.com/technotes/tn2002/tn2065.html> for a far better
explanation than I can manage :-)
HTH,
Nigel
_______________________________________________
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.