• 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
how to user formatter class?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to user formatter class?


  • Subject: how to user formatter class?
  • From: Scott Ruda <email@hidden>
  • Date: Tue, 2 Apr 2002 23:16:29 -0800

Does anyone know how to use the 'formatter' class of the Application Suite in AStudio?

I would like to add a text field that contains an HH:MM{AM|PM} formatted string and then access the data in it. I can add a text field to a window and then add a formatter to the text field. When I enter text in the field it correctly formats the user entry into the expected time format (I set the custom format string to %I:%M%p). How do I then access the information? I would prefer to get 'the hour of the text field' or something like that, but if that is not the way it works, if I could at least access the string contents of the text field I could parse it manually. But I get a 'NSReceiverEvaluationScriptError: 3 (1)' error when trying to get the contents of the field Any ideas?

Thanks,
Scott
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Shell script date & time coercions...
  • Next by Date: Reading large texts
  • Previous by thread: Reading large texts
  • Next by thread: Re: closing all but very specific windows
  • Index(es):
    • Date
    • Thread