Mailing Lists: Apple Mailing Lists

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

do shell script FREEZES Finder!!



tell app "Finder"
...
...
...

(* now do the rar command such as
rar a -s -v10M -vn $1 *.mp3
*)
set shell_cmd to "cd " & POSIX_Path & ,
" && /usr/local/bin/rar a -s -v10M -vn " & BaseHostName & ,
" SeanHannity_0423_CommericalFree.mp3 2>&1&"
display dialog "shell_cmd is " & shell_cmd
--do shell script shell_cmd
get shell_cmd
end tell



As you can see, I have tried to put the UNIX command in the background, and yet the Finder still freezes!!!

As I said, the 'rar' takes several minutes to complete, but the Finder freezes ONLY when I execute 'rar' from a do shell script command within an Applescript.

So, it seems to me to be a bug in Applescript. Especially since I also get an Applevent Timeout error from the AppleScript Editor running the applescript itself.
_______________________________________________
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.




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.