• 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: Using class date in BBEdit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using class date in BBEdit


  • Subject: Re: Using class date in BBEdit
  • From: Paul Berkowitz <email@hidden>
  • Date: Mon, 06 Aug 2001 08:25:40 -0700

On 8/6/01 6:01 AM, "David Bergum" <email@hidden> wrote:

> I'm fairly new to applescript and have mostly been using it to
> manipulate text files and data obtained via the web, to build .gif
> files to import into quicken. I recently have needed to manipulate
> dates withing a BBEdit tell block. I was unalbe to coerce a string
> to a date inside BBEdit. I had a statement like:

Setting dates within application blocks runs into that problem. Usually:

tell application "Anything"
--app stuff
tell me to set theDate to date "string date"
end tell

works. 'tell me' tells the script top do it. Very rarely I've found that
when running a script from within an internal application script menu (where
'me' means the application again) you still get a problem. The following
will always work:

tell AppleScript to set theDate to date "string date"

--
Paul Berkowitz


References: 
 >Using class date in BBEdit (From: David Bergum <email@hidden>)

  • Prev by Date: Re: Applescript Editor crashes Mac.
  • Next by Date: Re: RegEx Commands
  • Previous by thread: Using class date in BBEdit
  • Next by thread: Mount network drive (Win2k server)
  • Index(es):
    • Date
    • Thread