• 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: Scripting Excel 2004 macros
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Excel 2004 macros


  • Subject: Re: Scripting Excel 2004 macros
  • From: yvan-koenig <email@hidden>
  • Date: Thu, 3 Feb 2005 12:25:25 +0100


Le 3 févr. 2005 , à 10:32, Paul Berkowitz a écrit :

On 2/2/05 6:14 PM, "Larry McMunn" <email@hidden> wrote:

I need to call several Excel Macros at different times in a script.
if we use what we think is the correct syntax, the macro runs two
times.
…
 Any ideas or
suggestions out there?

I don't know why the () version calls the macro twice,


Hello

This is not simply a feature of Excel.

Testing these two short scripts:

-- [SCRIPT appelant]

set fullPath to false
set p2d to (path to desktop) as text
set theApp to "appelé.app"
if fullPath is true then set theApp to p2d & theApp
run application theApp

-- [/SCRIPT]

-- [SCRIPT appelé.app]
(* saved as application on the desktop *)

tell application "AppleWorks 6"
	activate
	set laVersion to (version as text)
	display dialog laVersion

end tell

-- [/SCRIPT]

I discovered that when using the full path ( set fullPath to true) , the script "appelé.app" run twice.

Complementary problem.
May you explain why I get the error message "Invalid connexion" when the execution ends ?


Yvan KOENIG


_______________________________________________ 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
  • Follow-Ups:
    • Re: Scripting Excel 2004 macros
      • From: Emmanuel <email@hidden>
References: 
 >Re: Scripting Excel 2004 macros (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Getting url variables without a browser
  • Next by Date: Remote Apple Events
  • Previous by thread: Re: Scripting Excel 2004 macros
  • Next by thread: Re: Scripting Excel 2004 macros
  • Index(es):
    • Date
    • Thread