Re: tell application to my_function()?
Re: tell application to my_function()?
- Subject: Re: tell application to my_function()?
- From: "Paul F. Henegan" <email@hidden>
- Date: Thu, 28 Apr 2005 03:26:41 -0400
on 28.04.2005 03:00, Matthew Bogosian at email@hidden wrote:
>I have an application called "my_app" that
> I'm writing in AppleScript using AppleScript Studio. It has a
> subroutine showWeb(a_url) (a_url is a string).
>
> I'm writing another script to try to call my_app's showWeb(...)
> subroutine. Here's what I'm doing in the second script:
>
> tell application "my_app"
> set web_window to window "WebWindow"
> tell web_window to set alpha value to 0.5
> tell web_window to show
> showWeb("http://www.apple.com/")
> end tell
>
> Unfortunately, when I try to run the secondary script, it keeps
> presenting the error: "Can't continue showWeb." (the other commands
> work fine). Incidentally, showWeb(...) calls other subroutines defined
> in my_app (if that makes a difference).
>
Hi Matthew,
Try assigning the value to a variable, such as:
set the_URL to "http://www.apple.com/"
showWeb(the_URL)
Peace,
paul
--
Paul F. Henegan
<email@hidden>
_______________________________________________
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