• 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: Why is it?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is it?


  • Subject: Re: Why is it?
  • From: kai <email@hidden>
  • Date: Sat, 21 Oct 2006 16:34:38 +0100


On 20 Oct 2006, at 16:01, Mark J. Reed wrote:

As usual, you can achieve the desired result by using get:

{get year of d, month of d as integer, get day of d} as text
--> "2006-10-20"

You could also achieve similar results (obviously depending on the specific date and the value of AppleScript's text item delimiters) with something like:


---------------
tell {d's year, d's month as integer, d's day} to it as text
--> "20061021"
---------------

On 18 Oct 2006, at 22:43 (and in a separate thread), Mark J. Reed wrote:

You're awfully fond of that tell..it idiom, aren't you? :)

It does come in handy now and then, Mark. ;-)

---
kai


_______________________________________________ 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/mailman//archives/applescript-users

This email sent to email@hidden
References: 
 >Why is it? (From: Michelle Steiner <email@hidden>)
 >Re: Why is it? (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Move files to the right folder.
  • Next by Date: Satisfaction with Satimage
  • Previous by thread: Re: Why is it?
  • Next by thread: Re: Why is it?
  • Index(es):
    • Date
    • Thread