Re: An Applescript Cocktail
Re: An Applescript Cocktail
- Subject: Re: An Applescript Cocktail
- From: Sander Tekelenburg <email@hidden>
- Date: Mon, 18 Apr 2005 01:25:35 +0200
At 10:47 -0700 UTC, on 2005/04/17, Andrew Oliver wrote:
[...]
>>> repeat with i in actionList
>>> set task_list to task_list & " " & i
>>> end repeat
[...]
> When run and task_list contains one or more periodic scriptnames (e.g.
> "weekly"), the do shell script sees:
>
>> do shell script ("sudo periodicweekly") with administrator privileges [...]
>
> you need a space
> between 'periodic' and the script name to run, so:
Quite right, but that's not an issue here. Look at the repeat loop. It
inserts the required space.
> DO NOT use sudo in 'do shell script'. The 'with administrator
> privileges' takes care of that part for you.
Ah, yes. You're right.
--
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden