Re: VB or c++ call in script
Re: VB or c++ call in script
- Subject: Re: VB or c++ call in script
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 19 Sep 2004 10:15:56 -0700
Title: Re: VB or c++ call in script
On 9/16/04 9:18 PM, "Rajeev Kumar" <email@hidden> wrote:
Can I call VB form or C++ programms in my apple script?
No. Except in applications that implement them. There's no straight VB on the Mac. Three of the Microsoft Office apps - Word, Excel and PowerPoint - do implement VBA. The VBA for Office 2001 - the latest available for Mac OS 9, and Office 98, is identical to that of Word, Excel and PPT 97 (VBA 5.0), but without ActiveX controls. In Word you can access all of it via the AppleScript command 'do Visual Basic'. See
http://www.word.mvps.org/MacWordNew/WordAppleScript.htm
You can run macros from AS too. You can do the same in Excel 98 and 2001 via the Evaluate command. You can't in PPT, until you upgrade to OS X and Office X or 2004, where PPT has 'do Visual Basic' as well. (Office 2004 has a huge native AppleScript which can do everything VBA can do, but that's not your question. The 'do Visual Basic' commands still work. In Excel 2004, the command for running macros is now 'run VB macro', as in Word, not Evaluate.) You can't access C++ from normal AppleScript in OS 9. In OS X, you can create AppleScript Studio applications which can access Cocoa (Objective C) and thus C as well. Since Cocoa apps can access C++, it may be possible to do so from Studio as well, but you'd probably be better off just making a regular (Objective C) Cocoa app to do so.
I have a lot of queries but I can never list without such any positive response. Can I call my macperl or perl programms in applescript?
Not in OS 9. In OS X, it's simple: 'do shell script' command can do absolutely any Unix commands and programs. You don't need MacPerl here: regular Perl is built in.
How can I search a special chracters like greek or arrow in any QXD file?
Someone else will have to answer that one. I have no idea what a QXD file is.
I am using OS 9.2 and Quark 4.11. Can somebody guide me please I need all of your support.
OK. Here's my advice and support: Upgrade to OS 10.3. OS 9 is dead. It can't do any of the things you want anyway, and hasn't been developed in 3 now. Don't waste your time in a dead system. Get OS X, then come back. Get "AppleScript: The Definitive Guide" by Matt Neuburg, published by O'Reilly, and read it first. There are also O'Reilly books (Mac OS X for Unix Geeks), for example, which help. Basically, anything you can do in UNIX can be done from AppleScript in OS X.
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden