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

Re: Script performance and Safari


  • Subject: Re: Script performance and Safari
  • From: Christopher Stone <email@hidden>
  • Date: Sat, 14 Apr 2012 10:10:41 -0500

On Apr 14, 2012, at 07:52, KOENIG Yvan wrote:
Why not :

tell (current date)
return "" & (its month as number) & "/" & its day  & "/" & (its year) mod (((its year) div 1000) * 1000)
end tell
______________________________________________________________________

Hey Yvan,

Yes that's better, but let's simplify a trifle more — and make certain the day is single-digit when available.

tell (current date) to set dateStr to "" & (its month as number) & "/" & (its day as number) & "/" & (its year) mod (((its year) div 1000) * 1000)

This is what I meant in my original post that Nigel no doubt had something better.  At the time I just couldn't remember off the top of my head or find it conveniently, so I made do with the clunky one.

Thanks for jogging my memory.

--
Best Regards,
Chris

 _______________________________________________
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

References: 
 >Script performance and Safari (From: Mark Ratledge <email@hidden>)
 >Re: Script performance and Safari (From: Christopher Stone <email@hidden>)
 >Re: Script performance and Safari (From: Christopher Stone <email@hidden>)
 >Re: Script performance and Safari (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Hard drive sleeping/waking
  • Next by Date: Re: Script performance and Safari
  • Previous by thread: Re: Script performance and Safari
  • Next by thread: Re: Script performance and Safari
  • Index(es):
    • Date
    • Thread