Re: do visual basic
Re: do visual basic
- Subject: Re: do visual basic
- From: Andrew Oliver <email@hidden>
- Date: Wed, 10 Mar 2004 09:49:58 -0800
On 3/10/04 9:26 AM, "Paul Berkowitz" <email@hidden> wrote:
>
Don't assume. Try it.
I would if I had any apps to run VB Scripts in (the original poster didn't
show any targetted app).
My point, though, was to show the lack of association between an object name
inside (what looks to AppleScript) a string and the name of an AppleScript
object.
Regardless of whether the VB Script is valid/executable or not, you still
need to assign the result of that script to an AppleScript object if you
want to use that value in your AppleScript. I'm sure better VBScripters than
I can find the right syntax for returning a value.
Andrew
:)
>
>
The result of 'do Visual Basic' is not the VB result, And 'Return x' is not
>
a VB statement anyway. If you try what you suggested:
>
>
tell application "Microsoft Word"
>
set X to do Visual Basic "
>
dim x as string
>
x = 10
>
Return x
>
"
>
display dialog X
>
end tell
>
>
>
VB Editor opens with a big error message "Compile error. Syntax error" and a
>
TempDDE() subroutine highlighting 'Return x'. Then a minute later you get an
>
AppleEvent timed out in Script Editor. Similarly, if you remove 'Return'.
_______________________________________________
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.