• 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: An Applescript Cocktail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: An Applescript Cocktail (From: Andrew Oliver <email@hidden>)

  • Prev by Date: Re: Localized Internals of AppleScript (date Class for example)
  • Next by Date: File Name Change
  • Previous by thread: Re: An Applescript Cocktail
  • Next by thread: Re: An Applescript Cocktail
  • Index(es):
    • Date
    • Thread