• 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: Crashing Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crashing Script


  • Subject: Re: Crashing Script
  • From: Yvan KOENIG <email@hidden>
  • Date: Fri, 12 Feb 2016 21:03:49 +0100

You may use one of the three versions which I posted and repeat below.

repeat 100 times
-- set newTime to myTime # original instruction
copy myTime to newTime # new one
set time of newTime to random number from 1 to secsInADay
newTime
set TimeAsText to my DateToTimeText(newTime)
set timePair to {newTime, TimeAsText}
set the end of timeList to timePair
end repeat

repeat 100 times
set newTime to myTime # original instruction
set time of newTime to random number from 1 to secsInADay
newTime
set TimeAsText to my DateToTimeText(newTime)
copy {newTime, TimeAsText} to timepair
set the end of timeList to timepair
end repeat

repeat 100 times
set newTime to myTime # original instruction
set time of newTime to random number from 1 to secsInADay
newTime
set TimeAsText to my DateToTimeText(newTime)
set timePair to {newTime, TimeAsText}
copy timePair to end of timeList
end repeat

All of them store dates.


Yvan KOENIG running El Capitan 10.11.3 in French (VALLAURIS, France) vendredi 12 février 2016 21:02:55



 _______________________________________________
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

  • Follow-Ups:
    • Re: Crashing Script
      • From: "Stockly, Ed" <email@hidden>
References: 
 >Crashing Script (From: "Stockly, Ed" <email@hidden>)
 >Re: Crashing Script (From: Steve Mills <email@hidden>)
 >Re: Crashing Script (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: Crashing Script
  • Next by Date: Re: Crashing Script
  • Previous by thread: Re: Crashing Script
  • Next by thread: Re: Crashing Script
  • Index(es):
    • Date
    • Thread