Re: Using class date in BBEdit
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