Re: do shell script FREEZES Finder!!
Re: do shell script FREEZES Finder!!
- Subject: Re: do shell script FREEZES Finder!!
- From: Graff <email@hidden>
- Date: Mon, 26 Apr 2004 11:04:26 -0400
On Apr 26, 2004, at 10:43 AM, Nigel Smith wrote:
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&"
One thing to note, you missed putting the divert character in there so
this will fail. It needs to have a > in front of the file to divert
stdout to:
set shell_cmd to "cd " & POSIX_Path & " && /usr/local/bin/rar a
-s -v10M -vn " & BaseHostName & " SeanHannity_0423_CommericalFree.mp3 >
/dev/null 2>&1&"
- Ken
_______________________________________________
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.