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

Re: AppleScript date


  • Subject: Re: AppleScript date
  • From: Philip Aker <email@hidden>
  • Date: Wed, 28 Jul 2004 06:02:15 -0700

On Monday, Jul 26, 2004, at 03:21 America/Vancouver, Joe Mac wrote:

but when I try and turn the contents of the text field into a date, I get errors. I have tried different as text, as date, as string after the code and nothing seems to work. Here is part what I have in my script that doesn't work.

on clicked theObject
	tell window "main"
1.		set theDay to contents of text field "date"
2.		set theDay2 to date (text returned of theDay)

Try this:

1. set tdate to content of text field "m_date"
2. set ddate to (AppleScript's date tdate)

#1. Although it's probably not necessary in this case, note that "content" is singular.
#2. Making sure to bind 'date' to AppleScript (rather than something a Studio app thinks it owns).


HTH,

Philip Aker
http://www.aker.ca
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


References: 
 >AppleScript date (From: Joe Mac <email@hidden>)

  • Prev by Date: Re: Cocoa app absolute/relative path ?
  • Next by Date: a couple of questions
  • Previous by thread: AppleScript date
  • Next by thread: wchar_t* turned into a char*?
  • Index(es):
    • Date
    • Thread