• 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: do visual basic
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: do visual basic
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: do visual basic (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: New to AS... What am I doing wrong?
  • Next by Date: Re: do visual basic
  • Previous by thread: Re: do visual basic
  • Next by thread: Re: do visual basic
  • Index(es):
    • Date
    • Thread