• 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: Paul Berkowitz <email@hidden>
  • Date: Wed, 10 Mar 2004 10:23:56 -0800

On 3/10/04 9:55 AM, "Michael Grant" <email@hidden> wrote:

> On Mar 10, 2004, at 10:56 AM, Paul Berkowitz wrote:
>
>> To get a result back, you need to write it to a text file within VB,
>> then
>> read the text file back in AppleScript.
>
>
> I wonder if you could get around the need to actually write a file to
> disk by running everything through the BSD layer via osascript and
> piping the output back into another script. Has anyone tried it that
> way? I've been wanting a script that will fetch a wordcount from a Word
> document for me and store it in FileMaker. (Clients expect Word's
> wordcount and will make a fuss if I use FileMaker's wordcount, which
> tends to be a few percent higher.)

But VB does not have access to the BSD layer! By the time you've used the
Macscript command within 'do Visual Basic', and 'do shell script osascript'
within Macscript, internal quoting is going to look something like this:

vbVariable = '"""\"\"\"\"something\"\"\"\"""'

and will boggle the mind. It's no big deal to write a text file in temporary
items - there are never permissions problems there . It works well- why
would you need to avoid it?

--
Paul Berkowitz
_______________________________________________
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: Michael Grant <email@hidden>
References: 
 >Re: do visual basic (From: Michael Grant <email@hidden>)

  • Prev by Date: Re: do visual basic
  • Next by Date: Re: Basic: scripting OS X System Profiler
  • Previous by thread: Re: do visual basic
  • Next by thread: Re: do visual basic
  • Index(es):
    • Date
    • Thread