MACSCRPT Archives

February 2007

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
John Delacour <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Wed, 28 Feb 2007 16:19:42 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (30 lines)
At 4:10 pm +0000 28/2/07, John Delacour wrote:

>The same error will occur in any application, not just the Finder. 
>This will run commented but not uncommented with any app name:
>
>         --tell application "Preview"
>         set _date to "22-Feb-2007"
>         date (_date as string)
>         --end tell
>
>Uncommented, the event 'core getd' will be sent

...as follows:

Process("Finder").SendAE "core,getd,'----':obj {form:name, 
want:type(ldt ), seld:Ò22-Feb-2007Ó...



On the other hand there is no problem with this:

         tell application "Finder"
           set _date to "22-Feb-2007"
           run script "date (\"" & _date & "\")"
         end tell

Process("Finder").SendAE "syso,dsct,'----':Òdate ("22-Feb-2007")Ó...

JD

ATOM RSS1 RSS2