Re: Unzip multiple items Applescript-terminal syntax help!
Re: Unzip multiple items Applescript-terminal syntax help!
- Subject: Re: Unzip multiple items Applescript-terminal syntax help!
- From: "Stockly, Ed" <email@hidden>
- Date: Thu, 29 Oct 2009 10:04:52 -0700
- Thread-topic: Unzip multiple items Applescript-terminal syntax help!
>>tell application "Terminal"
>> do shell script ...
>> end tell
This is wrong, or at least inefficient.
tell application "Terminal"
do script ...
end tell
Or
do shell script ...
--without using the terminal app
"do shell script" is a Standard Additions OSAX command and probably should
not be run within an application tell (even though it may work):
set theResult to do shell script string ¬
as type class ¬
administrator privileges boolean ¬
user name string ¬
password string ¬
altering line endings boolean
"do script" is a command that belongs to the Terminal.app application and
must be run within a terminal shell
tell application "Terminal"
do script string ¬
with command string ¬
in reference
end tell
They are not always interchangeable.
HTH,
ES
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden