• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: do shell script FREEZES Finder!!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


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

  • Prev by Date: Re: mount volume errors
  • Next by Date: Re: Alter Script for OSX
  • Previous by thread: Re: do shell script FREEZES Finder!!
  • Next by thread: Re: do shell script FREEZES Finder!!
  • Index(es):
    • Date
    • Thread