• 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[2]: Alternatives to Word (was: Re: Script problems with B
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re[2]: Alternatives to Word (was: Re: Script problems with B


  • Subject: Re[2]: Alternatives to Word (was: Re: Script problems with B
  • From: email@hidden
  • Date: Tue, 11 Dec 2001 22:41:29 -0500

Is there a difference in versions? I'm using AppleScript 1.5.5, OS 9.1, and MS
Office:mac 2001.

You are right about the missing "End Tell" (closing the 'tell app "Word"' block)
coming before 'tell app "Excel"'.

If the VB script errors, it won't return and the AppleScript will time out. Try
the Visual Basic code in the Visual Basic editor in Word and see if it runs
correctly.

Enter the following into a VB code window.

Sub test()
For Each OLEobject in ActiveDocument.Shapes
If OLEobject.Creator = 1297307460 then
OLEobject.Activate
End If
Next
End Sub

And hit the run button. Debug the VB code there, and when it works, cut it out
(without the Sub...End Sub wrapper) and paste it into the AppleScript.
--
Scott Norton Phone: +1-703-299-1656
DTI Associates, Inc. Fax: +1-703-706-0476
2920 South Glebe Road Internet: email@hidden
Arlington, VA 22206-2768 or email@hidden



____________________Reply Separator____________________
Subject: Re: Alternatives to Word (was: Re: Script problems with BBEd
Author: billp <email@hidden>

  • Prev by Date: Coerce string to record or something like that?
  • Next by Date: PPP
  • Previous by thread: Re: Coerce string to record or something like that?
  • Next by thread: PPP
  • Index(es):
    • Date
    • Thread