• 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: Yvan KOENIG <email@hidden>
  • Date: Sun, 17 Apr 2005 16:16:53 +0200


Le 17 avr. 2005 , à 15:07, Bernard Azancot a écrit :


Le 15 avr. 05, à 13:49, email@hidden a écrit :


I use this:

set actionList to (choose from list {"daily", "weekly", "monthly"} with
prompt "Pick 1 or more tasks to run" with multiple selections allowed)
if actionList ‚ false then -- user didn't cancel
set task_list to ""
repeat with i in actionList
set task_list to task_list & " " & i
end repeat
do shell script ("sudo periodic" & task_list) with administrator privileges
end if



-- Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>

Does not compile ?? Any help ? Thanks.

There is a typo:

if actionList ‚ false then -- user didn't cancel

must be:

if actionList is false then -- user didn't cancel


and, of course,

set actionList to (choose from list {"daily", "weekly", "monthly"} with
prompt "Pick 1 or more tasks to run" with multiple selections allowed)

is a single long line !

Yvan KOENIG

_______________________________________________
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


  • Follow-Ups:
    • Re: An Applescript Cocktail
      • From: Sander Tekelenburg <email@hidden>
    • Re: An Applescript Cocktail
      • From: Emmanuel <email@hidden>
References: 
 >Re: An Applescript Cocktail (From: Bernard Azancot <email@hidden>)

  • Prev by Date: Re: An Applescript Cocktail
  • Next by Date: Re: An Applescript Cocktail
  • Previous by thread: Re: An Applescript Cocktail
  • Next by thread: Re: An Applescript Cocktail
  • Index(es):
    • Date
    • Thread