Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do shell script FREEZES Finder!!



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.


References: 
 >Re: do shell script FREEZES Finder!! (From: Nigel Smith <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.